NetBeans Forums

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

Maven nbm

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



Joined: 15 Oct 2009
Posts: 55

PostPosted: Tue Oct 20, 2009 6:27 pm    Post subject: Maven nbm Reply with quote

i'm tring to make a maven based netbeans platform application, but im having a very hard time figuring out how modules access each other.

I'v added one module to the pom of another module as a dependancy, but i get the following error:
Code:
Private classes referenced from module: [long list of classes goes here]
[ERROR]Project depends on packages not accessible at runtime in module com.saic.gnsa.client:GNSAClientCore:nbm:1.0-SNAPSHOT
Error for project: GNSAClient ObjectBrowser (during install)


my ObjectBrowser is trying to access classes in Core. what am i missing?
Back to top
Fabrizio Giudici
Posted via mailing list.





PostPosted: Tue Oct 20, 2009 6:42 pm    Post subject: Maven nbm Reply with quote

heidtmare wrote:
Quote:
i'm tring to make a maven based netbeans platform application, but im having a very hard time figuring out how modules access each other.



I'v added one module to the pom of another module as a dependancy, but i get the following error:


Code:
Private classes referenced from module: [long list of classes goes here]

[ERROR]Project depends on packages not accessible at runtime in module com.saic.gnsa.client:GNSAClientCore:nbm:1.0-SNAPSHOT

Error for project: GNSAClient ObjectBrowser (during install)


my ObjectBrowser is trying to access classes in Core. what am i missing?

There's a problem in the declaration of public packages in Core. Can you
share the involved POMs?


--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
address-removed - mobile: +39 348.150.6941
Back to top
heidtmare



Joined: 15 Oct 2009
Posts: 55

PostPosted: Tue Oct 20, 2009 6:51 pm    Post subject: Reply with quote

ahh, ok in the non-maven netbeans platform app id go to the module properties and add classes to the public api.

In the maven version i need to define the public api in the pom?
do i add
Code:
<public-packages>
                <package>class</package>
to the pom?

I think im missing some docs on this step.
Back to top
Fabrizio Giudici
Posted via mailing list.





PostPosted: Tue Oct 20, 2009 7:21 pm    Post subject: Maven nbm Reply with quote

heidtmare wrote:
Quote:
ahh, ok in the non-maven netbeans platform app id go to the module properties and add classes to the public api.



In the maven version i need to define the public api in the pom?

do i add
Code:
<public-packages>

<package>class</package>

to the pom?


Yes.

I can say we have a FLOSS, Maven-based NetBeans Platform application:

http://forceten.kenai.com

Still doing some clean up, but I think it could be useful as a reference.

--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
address-removed - mobile: +39 348.150.6941
Back to top
heidtmare



Joined: 15 Oct 2009
Posts: 55

PostPosted: Tue Oct 20, 2009 9:48 pm    Post subject: Reply with quote

I'm using WorldWindJava is my app as well and i was wondering how i tell maven to put the jogl and gluegen dll/so into the correct place when it builds
Back to top
Fabrizio Giudici
Posted via mailing list.





PostPosted: Tue Oct 20, 2009 9:58 pm    Post subject: Maven nbm Reply with quote

heidtmare wrote:
Quote:
I'm using WorldWindJava is my app as well and i was wondering how i tell maven to put the jogl and gluegen dll/so into the correct place when it builds

Use the NetBeans JOGL Pack by Michael Bien and it will solve you a lot
of troubles.

--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
address-removed - mobile: +39 348.150.6941
Back to top
Korunks



Joined: 10 Oct 2008
Posts: 7

PostPosted: Tue Aug 24, 2010 11:42 am    Post subject: I've run into this too Reply with quote

I have a Maven Netbeans Application that currently has 2 modules, lets call them A and B. Module B has a dependency on Module A, so in Module B's pom I have the following:

Code:
<dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>ds</artifactId>
            <version>${project.version}</version>
</dependency>


and When I compile I get the following:

Code:
[ERROR]Project depends on packages not accessible at runtime in module


Looking at this post I figure that I probably need to have the classes in Module A declared as public, but I am having difficulty finding documentation to figure out how to do that. Anyone have a link or a code snippet?
Back to top
Milos Kleint
Posted via mailing list.





PostPosted: Sat Aug 28, 2010 10:27 am    Post subject: [platform-dev] Re: Maven nbm Reply with quote

http://mojo.codehaus.org/nbm-maven-plugin/manifest-mojo.html#publicPackages

Milos

On Tue, Aug 24, 2010 at 1:43 PM, Korunks <address-removed ([email]address-removed[/email])> wrote:
Quote:
I have a Maven Netbeans Application that currently has 2 modules, lets call them A and B.  Module B has a dependency on Module A, so in Module B's pom I have the following:


Code:
<dependency>
           <groupId>${project.groupId}</groupId>
           <artifactId>ds</artifactId>
           <version>${project.version}</version>
</dependency>




and When I compile I get the following:


Code:
[ERROR]Project depends on packages not accessible at runtime in module



Looking at this post I figure that I probably need to have the classes in Module A declared as public, but I am having difficulty finding documentation to figure out how to do that.  Anyone have a link or a code snippet?




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