| View previous topic :: View next topic |
| Author |
Message |
heidtmare
Joined: 15 Oct 2009 Posts: 55
|
Posted: Tue Oct 20, 2009 6:27 pm Post subject: Maven nbm |
|
|
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.
|
Posted: Tue Oct 20, 2009 6:42 pm Post subject: Maven nbm |
|
|
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
|
Posted: Tue Oct 20, 2009 6:51 pm Post subject: |
|
|
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.
|
Posted: Tue Oct 20, 2009 7:21 pm Post subject: Maven nbm |
|
|
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
|
Posted: Tue Oct 20, 2009 9:48 pm Post subject: |
|
|
| 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.
|
Posted: Tue Oct 20, 2009 9:58 pm Post subject: Maven nbm |
|
|
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
|
Posted: Tue Aug 24, 2010 11:42 am Post subject: I've run into this too |
|
|
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.
|
Posted: Sat Aug 28, 2010 10:27 am Post subject: [platform-dev] Re: Maven nbm |
|
|
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 |
|
 |
|