Re: [mevenide-user] Using NBM and JAR artifact in NBM maven projects
"Milos Kleint" <[email protected]> Tue, 5 Feb 2008 10:56:35 +0100
| Newsgroups | gmane.comp.jakarta.turbine.maven.mevenide.user |
|---|---|
| Message-ID | <[email protected]> |
it should work as far as I can tell. the built artifact of a project with <packaging>nbm</packaging> is just the module jar. So from other projects you can reference it as dependency of <type>jar</type> and it should find it just fine. Actually I'm doing something like that myself. I have a command line tool in a project that references the some of my netbeans module artifacts and calls them. the resulting nbm file is only used for creation of the update center. For compilation etc. just the module jar is used. since 2.7-SNAPSHOT of the nbm-maven-plugin the nbm file gets also deployed to the remote repository (if built). So in general I don't see why it wouldn't work. You might need to add some runtime dependencies to your non-netbeans project (stuff like masterfs or preferences module come to mind) Regards Milos On Feb 5, 2008 10:43 AM, Emilian Bold <[email protected]> wrote: > Hy, > > I was wondering if it's possible to use the NBM-maven-plugin and have > two artifacts: the NBM file and the JAR file. > > The problem being that I want to reference the maven artifacts from 2 > different places (think EJBs). Does that work ? > > If not, what do you recommend ? > > Thanks, > Emilian > > -- > Emilian Bold > +40 740235562 > http://www.emilianbold.ro > > Java and NetBeans Platform-loving consulting services from Timisoara, Romania. > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email