| View previous topic :: View next topic |
| Author |
Message |
Eric Bouer Posted via mailing list.
|
Posted: Tue Aug 11, 2009 3:49 pm Post subject: Maven project dependency |
|
|
Hello.
I'm working with the new NB6.7 and I can't figure out if it supports Maven
project dependency.
I have 2 projects, one is using the second as a library.
I can't make netbeans compile the library when I compile the main
application that is using it.
Is there another way to make netbeans figure out that it has to compile the
library project as well as the main application ?
--
View this message in context: http://www.nabble.com/Maven-project-dependency-tp24920282p24920282.html
Sent from the Netbeans IDE Users mailing list archive at Nabble.com.
|
|
| Back to top |
|
 |
Melongo Annabel Posted via mailing list.
|
Posted: Tue Aug 11, 2009 8:18 pm Post subject: Maven project dependency |
|
|
Eric,
NB67 does support project dependency. The NB68 goes even further by adding the 'exclude' dependency: http://wiki.netbeans.org/NewAndNoteworthyNB68#section-NewAndNoteworthyNB68-Maven
Regarding your issue though, such issues often come when you forget to put the dependent jar file in the dependent project's classpath, have you done so?
From: Eric Bouer <address-removed>
To: address-removed
Sent: Tuesday, August 11, 2009 10:49:18 AM
Subject: [nbusers] Maven project dependency
Hello.
I'm working with the new NB6.7 and I can't figure out if it supports Maven
project dependency.
I have 2 projects, one is using the second as a library.
I can't make netbeans compile the library when I compile the main
application that is using it.
Is there another way to make netbeans figure out that it has to compile the
library project as well as the main application ?
--
View this message in context: http://www.nabble.com/Maven-project-dependency-tp24920282p24920282.html
Sent from the Netbeans IDE Users mailing list archive at Nabble.com.
|
|
| Back to top |
|
 |
Eric Bouer Posted via mailing list.
|
Posted: Tue Aug 11, 2009 10:38 pm Post subject: Maven project dependency |
|
|
Thank you for your reply.
Melongo Annabel wrote:
| Quote: |
Regarding your issue though, such issues often come when you forget to put
the dependent jar file in the dependent project's classpath, have you done
so?
I'm a bit confused.
I didn't do anything except adding the library project as a dependency of
the main application.
Now I have the library mentioned in the POM. Still when I change
something the library and compiling the main application NB wont detect
that it has to recompile the library.
Is this what you mean adding the jar to dependent project's classpath?
Many thanks again.
________________________________
From: Eric Bouer <address-removed>
To: address-removed
Sent: Tuesday, August 11, 2009 10:49:18 AM
Subject: [nbusers] Maven project dependency
Hello.
I'm working with the new NB6.7 and I can't figure out if it supports Maven
project dependency.
I have 2 projects, one is using the second as a library.
I can't make netbeans compile the library when I compile the main
application that is using it.
Is there another way to make netbeans figure out that it has to compile
the
library project as well as the main application ?
--
View this message in context:
http://www.nabble.com/Maven-project-dependency-tp24920282p24920282.html
Sent from the Netbeans IDE Users mailing list archive at Nabble.com.
|
--
View this message in context: http://www.nabble.com/Maven-project-dependency-tp24920282p24927003.html
Sent from the Netbeans IDE Users mailing list archive at Nabble.com.
|
|
| Back to top |
|
 |
Melongo Annabel Posted via mailing list.
|
Posted: Tue Aug 11, 2009 11:08 pm Post subject: Maven project dependency |
|
|
Is your project working fine now?
From: Eric Bouer <address-removed>
To: address-removed
Sent: Tuesday, August 11, 2009 5:37:40 PM
Subject: Re: [nbusers] Maven project dependency
Thank you for your reply.
Melongo Annabel wrote:
| Quote: |
Regarding your issue though, such issues often come when you forget to put
the dependent jar file in the dependent project's classpath, have you done
so?
I'm a bit confused.
I didn't do anything except adding the library project as a dependency of
the main application.
Now I have the library mentioned in the POM. Still when I change
something the library and compiling the main application NB wont detect
that it has to recompile the library.
Is this what you mean adding the jar to dependent project's classpath?
Many thanks again.
________________________________
From: Eric Bouer <address-removed ([email]address-removed[/email])>
To: address-removed ([email]address-removed[/email])
Sent: Tuesday, August 11, 2009 10:49:18 AM
Subject: [nbusers] Maven project dependency
Hello.
I'm working with the new NB6.7 and I can't figure out if it supports Maven
project dependency.
I have 2 projects, one is using the second as a library.
I can't make netbeans compile the library when I compile the main
application that is using it.
Is there another way to make netbeans figure out that it has to compile
the
library project as well as the main application ?
--
View this message in context:
http://www.nabble.com/Maven-project-dependency-tp24920282p24920282.html
Sent from the Netbeans IDE Users mailing list archive at Nabble.com.
|
--
View this message in context: http://www.nabble.com/Maven-project-dependency-tp24920282p24927003.html
Sent from the Netbeans IDE Users mailing list archive at Nabble.com.
|
|
| Back to top |
|
 |
Eric Bouer Posted via mailing list.
|
Posted: Wed Aug 12, 2009 8:48 am Post subject: Maven project dependency |
|
|
I guess you didn't notice my question since it got into the quote in the
mail..here it is again:
I'm a bit confused.
I didn't do anything except adding the library project as a dependency of
the main application.
I have the library listed in the POM but Still when I change
something the library and compiling the main application NB wont detect
that it has to recompile the library.
Is this what you mean adding the jar to dependent project's classpath?
| Quote: | Many thanks again.
|
Melongo Annabel wrote:
| Quote: |
Is your project working fine now?
________________________________
From: Eric Bouer <address-removed>
To: address-removed
Sent: Tuesday, August 11, 2009 5:37:40 PM
Subject: Re: [nbusers] Maven project dependency
Thank you for your reply.
Melongo Annabel wrote:
| Quote: |
Regarding your issue though, such issues often come when you forget to
put
the dependent jar file in the dependent project's classpath, have you
done
so?
I'm a bit confused.
I didn't do anything except adding the library project as a dependency of
the main application.
Now I have the library mentioned in the POM. Still when I change
something the library and compiling the main application NB wont detect
that it has to recompile the library.
Is this what you mean adding the jar to dependent project's classpath?
Many thanks again.
________________________________
From: Eric Bouer <address-removed>
To: address-removed
Sent: Tuesday, August 11, 2009 10:49:18 AM
Subject: [nbusers] Maven project dependency
Hello.
I'm working with the new NB6.7 and I can't figure out if it supports
Maven
project dependency.
I have 2 projects, one is using the second as a library.
I can't make netbeans compile the library when I compile the main
application that is using it.
Is there another way to make netbeans figure out that it has to compile
the
library project as well as the main application ?
--
View this message in context:
http://www.nabble.com/Maven-project-dependency-tp24920282p24920282.html
Sent from the Netbeans IDE Users mailing list archive at Nabble.com.
|
--
View this message in context:
http://www.nabble.com/Maven-project-dependency-tp24920282p24927003.html
Sent from the Netbeans IDE Users mailing list archive at Nabble.com.
|
--
View this message in context: http://www.nabble.com/Maven-project-dependency-tp24920282p24931870.html
Sent from the Netbeans IDE Users mailing list archive at Nabble.com.
|
|
| Back to top |
|
 |
mkleint Posted via mailing list.
|
Posted: Wed Aug 12, 2009 8:59 am Post subject: Maven project dependency |
|
|
Eric Bouer wrote:
| Quote: | Hello.
I'm working with the new NB6.7 and I can't figure out if it supports Maven
project dependency.
I have 2 projects, one is using the second as a library.
I can't make netbeans compile the library when I compile the main
application that is using it.
Is there another way to make netbeans figure out that it has to compile the
library project as well as the main application ?
| you can use the reactor build (bound to the "Build with dependencies"
action on project popup).
However please note there are limitations to the working of that build.
Both the library and the project need to be built together within the
reactor, meaning they have an aggregator pom (usually the parent) which
lists both as <modules>. Then executing the reactor build on the
aggregator pom should build both.
See http://maven.apache.org/plugins/maven-reactor-plugin/ for details.
Otherwise the projects are only connected via the local repository and
when building project, the library needs to be built manually ahead.
on the IDE level, we do connect the projects together, show proper
compilation errors etc. Under condition that the dependency coordinates
match the coordinates of the opened library project.
Milos
|
|
| Back to top |
|
 |
Julia2009
Joined: 12 Aug 2009 Posts: 1
|
Posted: Wed Aug 12, 2009 9:32 am Post subject: |
|
|
| thanks for the information
|
|
| Back to top |
|
 |
surya
Joined: 23 Sep 2009 Posts: 2
|
Posted: Wed Sep 23, 2009 1:34 am Post subject: |
|
|
http://blogs.sun.com/branajam/entry/netbeans_6_7_available
That is exactly why I cannot use Netbeans. It just does not do reactorized projects as does Eclipse and Intellij. I would really like to use Netbeans at work but because of the reasons as posted in the comment I am unable to do so. It seems like it is quite the fundamental requirement to use maven so I am actually surprised as to why it is not implemented in an IDE as capable as Netbeans.
|
|
| Back to top |
|
 |
Fabrizio Giudici Posted via mailing list.
|
Posted: Wed Sep 23, 2009 7:19 am Post subject: Maven project dependency |
|
|
surya wrote:
| Quote: | http://blogs.sun.com/branajam/entry/netbeans_6_7_available
That is exactly why I cannot use Netbeans. It just does not do reactorized projects as does Eclipse and Intellij. I would really like to use Netbeans at work but because of the reasons as posted in the comment I am unable to do so. It seems like it is quite the fundamental requirement to use maven so I am actually surprised as to why it is not implemented in an IDE as capable as Netbeans.
| Can you elaborate with an example?
--
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 |
|
 |
mkleint Posted via mailing list.
|
Posted: Wed Sep 23, 2009 11:01 am Post subject: Maven project dependency |
|
|
quoting from the blog's comment:
"While this is great indeed I cannot use it until it properly figures
out how to load maven reactor projects. Netbeans gets thoroughly
confused unfortunately. I would love to move away from Eclipse but
unfortunately it still is the only ide that does everything I need
to...which is unfortunate because I like Intellij's refactoring, and
netbeans out of the box awesomeness way more than Eclipse."
what exactly is a "reactor maven project"? and what exactly does
"properly load" and "confused" mean?
Milos
Fabrizio Giudici wrote:
| Quote: | surya wrote:
| Quote: | http://blogs.sun.com/branajam/entry/netbeans_6_7_available
That is exactly why I cannot use Netbeans. It just does not do
reactorized projects as does Eclipse and Intellij. I would really
like to use Netbeans at work but because of the reasons as posted in
the comment I am unable to do so. It seems like it is quite the
fundamental requirement to use maven so I am actually surprised as to
why it is not implemented in an IDE as capable as Netbeans.
| Can you elaborate with an example?
|
|
|
| Back to top |
|
 |
surya
Joined: 23 Sep 2009 Posts: 2
|
Posted: Wed Sep 23, 2009 7:19 pm Post subject: |
|
|
http://maven.apache.org/plugins/maven-reactor-plugin/examples.html is the best example I can provide. Basically a project that as a top level pom.xml and then more pom.xmls in modules inside it. Please let me know if that helped in trying to explain the problem. I really am sick and tired of using Eclipse and its really crappy m2eclipse integration. Netbeans will be a desperately awesome breath of fresh air to use. We do ruby development as well so an all in one tool would be much much loved
We are primarily an open source shop and I have been trying to advocate Netbeans all the time and it has gained some traction for example when developing in ruby but I would love for it to deal with these 'reactor' maven projects since thats what we use daily.
Cheers
|
|
| Back to top |
|
 |
Ed Hillmann Posted via mailing list.
|
Posted: Wed Sep 23, 2009 10:14 pm Post subject: Maven project dependency |
|
|
On Thu, Sep 24, 2009 at 5:19 AM, surya <address-removed ([email]address-removed[/email])> wrote:
| Quote: | http://maven.apache.org/plugins/maven-reactor-plugin/examples.html is the best example I can provide. Basically a project that as a top level pom.xml and then more pom.xmls in modules inside it. Please let me know if that helped in trying to explain the problem. I really am sick and tired of using Eclipse and its really crappy m2eclipse integration. Netbeans will be a desperately awesome breath of fresh air to use. We do ruby development as well so an all in one tool would be much much loved
|
I'm not sure what you're trying to say.
|
|
| Back to top |
|
 |
Dafe Simonek Posted via mailing list.
|
Posted: Thu Sep 24, 2009 7:16 am Post subject: Maven project dependency |
|
|
Hi surya,
We would still need more specific example - ideally your multi module
maven project, probably with business internals removed, just a
skeleton, which you have troubles with. And btw, what kind of troubles?
Is Netbeans refusing to load your project, saying "Badly formed Maven
project"? In that case, follow the hint in the tooltip, leading you to
"Show and Resolve problems..." dialog accessible in right click popup
menu of the project.
As a test, I tried to checkout and open "Hibernate Core Aggregator"
myself and it went fine, see attached picture....
Dafe
surya wrote:
| Quote: | http://maven.apache.org/plugins/maven-reactor-plugin/examples.html is the best example I can provide. Basically a project that as a top level pom.xml and then more pom.xmls in modules inside it. Please let me know if that helped in trying to explain the problem. I really am sick and tired of using Eclipse and its really crappy m2eclipse integration. Netbeans will be a desperately awesome breath of fresh air to use. We do ruby development as well so an all in one tool would be much much loved
We are primarily an open source shop and I have been trying to advocate Netbeans all the time and it has gained some traction for example when developing in ruby but I would love for it to deal with these 'reactor' maven projects since thats what we use daily.
Cheers
|
| Description: |
|
| Filesize: |
59.61 KB |
| Viewed: |
3040 Time(s) |

|
|
|
| Back to top |
|
 |
|