NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Module dependency has friend dependency

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
gcameo



Joined: 21 Apr 2010
Posts: 21

PostPosted: Thu Apr 22, 2010 10:04 pm    Post subject: Module dependency has friend dependency Reply with quote

Hi All,
I am unable to build my platform maven application.

Each time I try to build, the build fails with



Code:
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
Code:

        <dependency>
            <groupId>org.netbeans.modules</groupId>
            <artifactId>org-netbeans-modules-xml-text</artifactId>
            <version>RELEASE68</version>
        </dependency>


And this to my module.xml
Code:

<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
Back to top
Milos Kleint
Posted via mailing list.





PostPosted: Fri Apr 23, 2010 5:43 am    Post subject: [platform-dev] Re: Module dependency has friend dependency Reply with quote

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 ([email]address-removed[/email])> wrote:
Quote:
Hi All,
I am unable to build my platform maven application.

Each time I try to build, the build fails with




Code:
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

Code:

       <dependency>
           <groupId>org.netbeans.modules</groupId>
           <artifactId>org-netbeans-modules-xml-text</artifactId>
           <version>RELEASE68</version>
       </dependency>




And this to my module.xml

Code:

<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




Back to top
gcameo



Joined: 21 Apr 2010
Posts: 21

PostPosted: Fri Apr 23, 2010 10:39 am    Post subject: Re: [platform-dev] Re: Module dependency has friend dependency Reply with quote

Hi 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.

Kind regards

Milos Kleint wrote:
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 ([email]address-removed[/email])> wrote:
Quote:
Hi All,
I am unable to build my platform maven application.

Each time I try to build, the build fails with




Code:
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

Code:

       <dependency>
           <groupId>org.netbeans.modules</groupId>
           <artifactId>org-netbeans-modules-xml-text</artifactId>
           <version>RELEASE68</version>
       </dependency>




And this to my module.xml

Code:

<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




Back to top
Milos Kleint
Posted via mailing list.





PostPosted: Fri Apr 23, 2010 11:13 am    Post subject: [platform-dev] Re: Module dependency has friend dependency Reply with quote

On Fri, Apr 23, 2010 at 12:40 PM, gcameo <address-removed ([email]address-removed[/email])> wrote:
Quote:
Hi 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
 
Quote:

Kind regards


Milos Kleint wrote:
Quote:
you either have declare implementation dependency <explicitValue> xxx = yyy</explicitValue>
or you have to ask someone to be added as friend.


Milos



Quote:
On Fri, Apr 23, 2010 at 12:04 AM, gcameo <address-removed (address-removed)> wrote:

Quote:
 Hi All,
I am unable to build my platform maven application.

Each time I try to build, the build fails with




Code:
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

Code:

       <dependency>
           <groupId>org.netbeans.modules</groupId>
           <artifactId>org-netbeans-modules-xml-text</artifactId>
           <version>RELEASE68</version>
       </dependency>




And this to my module.xml

Code:

<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













Back to top
gcameo



Joined: 21 Apr 2010
Posts: 21

PostPosted: Fri Apr 23, 2010 12:54 pm    Post subject: Re: [platform-dev] Re: Module dependency has friend dependency Reply with quote

Hi,
Tha has resolved the issue. for anyone who comes looking for a solution, I added this
Code:

        <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


Code:

Private classes referenced in module: [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

Milos Kleint wrote:
On Fri, Apr 23, 2010 at 12:40 PM, gcameo <address-removed ([email]address-removed[/email])> wrote:
Quote:
Hi 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
 
Quote:

Kind regards


Milos Kleint wrote:
Quote:
you either have declare implementation dependency <explicitValue> xxx = yyy</explicitValue>
or you have to ask someone to be added as friend.


Milos



Quote:
On Fri, Apr 23, 2010 at 12:04 AM, gcameo <address-removed (address-removed)> wrote:

Quote:
 Hi All,
I am unable to build my platform maven application.

Each time I try to build, the build fails with




Code:
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

Code:

       <dependency>
           <groupId>org.netbeans.modules</groupId>
           <artifactId>org-netbeans-modules-xml-text</artifactId>
           <version>RELEASE68</version>
       </dependency>




And this to my module.xml

Code:

<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













Back to top
Milos Kleint
Posted via mailing list.





PostPosted: Fri Apr 23, 2010 2:12 pm    Post subject: [platform-dev] Re: Module dependency has friend dependency Reply with quote

check the nbm-plugin parameter for ignoring validation errors.. the validation was not made to recognize custom explicit values.. feel free to file as bug or sumbit a patch.

Milos

On Fri, Apr 23, 2010 at 2:55 PM, gcameo <address-removed ([email]address-removed[/email])> wrote:
Quote:
Hi,
Tha has resolved the issue. for anyone who comes looking for  a solution, I added this

Code:

       <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



Code:

Private classes referenced in module: [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


Milos Kleint wrote:
Quote:
On Fri, Apr 23, 2010 at 12:40 PM, gcameo <address-removed (address-removed)> wrote:

Quote:
 Hi 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
 

Quote:

Kind regards


Milos Kleint wrote:

Quote:
you either have declare implementation dependency <explicitValue> xxx = yyy</explicitValue>
or you have to ask someone to be added as friend.


Milos





Quote:
On Fri, Apr 23, 2010 at 12:04 AM, gcameo <address-removed (address-removed)> wrote:




Quote:
Quote:
Quote:
Quote:
 Hi All,
I am unable to build my platform maven application.

Each time I try to build, the build fails with




Code:
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

Code:

       <dependency>
           <groupId>org.netbeans.modules</groupId>
           <artifactId>org-netbeans-modules-xml-text</artifactId>
           <version>RELEASE68</version>
       </dependency>




And this to my module.xml

Code:

<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
























Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo