complained too early (after hours of searching), but i still have a problem:
A good documentation is:
[platform-dev] Re: [platform-devtyutryyttTTtRTtrtrTrttre] Re: Build
issue with NBM module migrating from 2.6?t
Follows my module.xml. This allows to build the module and project,
but at runtime I get the followoing exception:
java.lang.IllegalArgumentException: java.lang.NumberFormatException:
For input string: "1but"
at org.openide.modules.Dependency.checkCodeName(Dependency.java:194)
at org.openide.modules.Dependency.create(Dependency.java:293)
at org.netbeans.Module.initDeps(Module.java:674)
at org.netbeans.Module.parseManifest(Module.java:456)
Caused: org.netbeans.InvalidException: While parsing
com.mysimpatico.MemoPlatform.Editor a dependency attribute
at org.netbeans.Module.parseManifest(Module.java:458)
at org.netbeans.StandardModule.<init>(StandardModule.java:137)
at org.netbeans.ModuleFactory.create(ModuleFactory.java:69)
at org.netbeans.ModuleManager.create(ModuleManager.java:517)
at org.netbeans.core.startup.ModuleList$ReadInitial.run(ModuleList.java:1593)
at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:125)
at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:542)
at org.netbeans.core.startup.ModuleList.readInitial(ModuleList.java:168)
at org.netbeans.core.startup.ModuleSystem.readList(ModuleSystem.java:272)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:171)
at org.netbeans.core.startup.Main.start(Main.java:302)
at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:114)
[catch] at java.lang.Thread.run(Thread.java:637)
Could this be a bug?
<?xml version="1.0" encoding="UTF-8"?>
<nbm>
<!--<moduleType>autoload</moduleType>-->
<!--<codeNameBase>com.mysimpatico.memoplatformeditor/1</codeNameBase>-->
<licenseName>Apache License, Version 2.0</licenseName>
<licenseFile>license.txt</licenseFile>
<dependencies>
<dependency>
<id>org.netbeans.modules:org-netbeans-modules-editor-settings-storage</id>
<type>spec</type>
<explicitValue>org.netbeans.modules.editor.settings.storage/1but =
7.38.1</explicitValue>
</dependency>
</dependencies>
</nbm>
I'm having the same problem with Module dependency has friend
dependency on org.netbeans.modules.editor.settings.storage/1but is not
listed as friend, but I'm not sure how and where to declare the friend
dependency in the maven project.
I've added the following to the pom.xml (of the module) but
explicitTag is not recognized as a valid tag.
I've added it to module.xml, and yet the same.
I didn't come across any documentation on how to declare this friend
dependency in maven. Please advise on how to fix this problem.
<dependency>
<id>org.netbeans.modules:org-netbeans-modules-editor-settings-storage</id>
<type>spec</type>
<explicitValue>org.netbeans.modules.editor.settings.storage/1but =
5</explicitValue>
</dependency>
Post by gcameoHi,
Tha has resolved the issue. for anyone who comes looking for a solution,
I
added this
<dependency>
<id>org.netbeans.modules:org-netbeans-modules-xml-text</id>
<type>spec</type>
<explicitValue>org.netbeans.modules.xml.text/2 =
5</explicitValue>
</dependency>
But that only led to another issue with this as the error message
[org.netbeans.modules.xml.schema.completion.CompletionResultItem,
org.netbeans.modules.xml.schema.completion.CompletionQuery]
[ERROR]Project depends on packages not accessible at runtime in module
org.netbeans.api:org-netbeans-modules-xml-schema-completion:jar:RELEASE68
Does that mean that I cannot use these classes in my project.
Regards
On Fri, Apr 23, 2010 at 12:40 PM, gcameo <address-removed
Post by gcameoHi Thanks.
Can you give an example on how this implementation dependency is done in
a maven based application.
I was thinking that is what I have done in my module.xml.
unlikely.. the pattern for impl dependencies is XXX = IMPL_VERSION
where XXX is the codenamebase and IMPL_VERSION is the implementation
version from the module's manifest..
Milos
Post by gcameoKind regards
you either have declare implementation dependency <explicitValue> xxx
= yyy</explicitValue>
or you have to ask someone to be added as friend.
Milos
On Fri, Apr 23, 2010 at 12:04 AM, gcameo <address-removed
Post by gcameoHi All,
I am unable to build my platform maven application.
Each time I try to build, the build fails with
Module dependency has friend dependency on
org.netbeans.modules.xml.text/2but is not listed as friend.
I have added this declaration to my pom.xml
<dependency>
<groupId>org.netbeans.modules</groupId>
<artifactId>org-netbeans-modules-xml-text</artifactId>
<version>RELEASE68</version>
</dependency>
And this to my module.xml
<dependencies>
<dependency>
<id>org.netbeans.modules:org-netbeans-modules-xml-text</id>
<type>spec</type>
<explicitValue>org.netbeans.modules.xml.text/2 >
1.26</explicitValue>
</dependency>
</dependencies>
But it still doesn't work.
Any form of help will be very much appreciated.
Regards
Farouk A
--
Regards,
K. Gabriele
--- unchanged since 25/1/10 ---
P.S. Unless a notification (LON), please reply either with an answer
OR with " ACK" appended to this subject within 48 hours. Otherwise, I
might resend.
In(LON, this) ∨ In(48h, TimeNow) ∨ ∃x. In(x, MyInbox) ∧ IsAnswerTo(x,
this) ∨ (In(subject(this), subject(x)) ∧ In(ACK, subject(x)) ∧
¬IsAnswerTo(x,this)) ⇒ ¬IResend(this).
Also note that correspondence may be received only from specified a
priori senders, or if the subject of this email ends with a code, eg.
-LICHT01X, then also from senders whose reply contains it.
∀x. In(x, MyInbox) ⇒ In(senderAddress(x), MySafeSenderList) ∨ (∃y.
In(y, subject(this) ) ∧ In(y,x) ∧ isCodeLike(y, -LICHT01X) ).
--
Regards,
K. Gabriele
--- unchanged since 25/1/10 ---
P.S. Unless a notification (LON), please reply either with an answer
OR with " ACK" appended to this subject within 48 hours. Otherwise, I
might resend.
In(LON, this) ∨ In(48h, TimeNow) ∨ ∃x. In(x, MyInbox) ∧ IsAnswerTo(x,
this) ∨ (In(subject(this), subject(x)) ∧ In(ACK, subject(x)) ∧
¬IsAnswerTo(x,this)) ⇒ ¬IResend(this).
Also note that correspondence may be received only from specified a
priori senders, or if the subject of this email ends with a code, eg.
-LICHT01X, then also from senders whose reply contains it.
∀x. In(x, MyInbox) ⇒ In(senderAddress(x), MySafeSenderList) ∨ (∃y.
In(y, subject(this) ) ∧ In(y,x) ∧ isCodeLike(y, -LICHT01X) ).