Re: Conflicting Spring versions

2011-12-14 Thread Barrie Treloar
On Thu, Dec 15, 2011 at 2:17 PM, scabbage wrote: > I'm including a dependencies section in my parent pom to capture all common > dependencies of my modules. But I agree that I should use the > to management all versions. Its not something I do, and I think its considered bad practice. I think t

Re: Conflicting Spring versions

2011-12-14 Thread scabbage
I'm including a dependencies section in my parent pom to capture all common dependencies of my modules. But I agree that I should use the to management all versions. -- View this message in context: http://maven.40175.n5.nabble.com/Conflicting-Spring-versions-tp5075558p5076442.html Sent from the

Re: Conflicting Spring versions

2011-12-14 Thread Barrie Treloar
On Thu, Dec 15, 2011 at 11:21 AM, scabbage wrote: > Great! Thanks for the suggestions. > > The organization of my project is: > > parent >   - module1 >   - module2 > > > Following your advice, I did: > > parent: > >    test >    parent >    1.0-SNAPSHOT >    pom > >     >        module1 >      

Re: Conflicting Spring versions

2011-12-14 Thread scabbage
Great! Thanks for the suggestions. The organization of my project is: parent - module1 - module2 Following your advice, I did: parent: test parent 1.0-SNAPSHOT pom module1 module2 org.springframework spring-contex

Re: Best way to handle an ssh copy?

2011-12-14 Thread Stephen Connolly
maybe the ship-maven-plugin could help... though if you want to use a wagon that is non-default for the maven version you are using (eg ssh is non default in maven 3.0.3) you will need to either add that wagon as a dependency of *the plugin* or add that wagon as an extension to *the project's build

Best way to handle an ssh copy?

2011-12-14 Thread Tom Masterson
We have several artifacts that we want to copy to remote servers via scp/ssh. I have looked at the wagon plugin but the documentation seems to have issues. When I try to use it as documented I get an error telling me it can't find a plugin descriptor for wagon-ssh. Is there a good way to get

Re: Conflicting Spring versions

2011-12-14 Thread Barrie Treloar
On Thu, Dec 15, 2011 at 10:10 AM, Ansgar Konermann wrote: > Am 14.12.2011 23:49, schrieb Barrie Treloar: >> Use http://maven.apache.org/plugins/maven-dependency-plugin/ >> Either >> mvn dependency:tree >> or >> mvn dependency:list > > Plus: use maven-enforcer-plugin with rule > > http://maven.apa

Re: Conflicting Spring versions

2011-12-14 Thread Ansgar Konermann
Am 14.12.2011 23:49, schrieb Barrie Treloar: > Use http://maven.apache.org/plugins/maven-dependency-plugin/ > Either > mvn dependency:tree > or > mvn dependency:list Plus: use maven-enforcer-plugin with rule http://maven.apache.org/enforcer/enforcer-rules/dependencyConvergence.html Regards An

Re: Conflicting Spring versions

2011-12-14 Thread Barrie Treloar
On Thu, Dec 15, 2011 at 8:21 AM, Ron Wheeler wrote: > On 14/12/2011 3:17 PM, scabbage wrote: >> >> I have a multi-module project with a parent pom and several sub-modules. >> In >> one of the module, I have a dependency that has a transitive dependency of >> spring (2.0.6). How do I go about havin

Re: Multi Module Project Failing - Help Me

2011-12-14 Thread Barrie Treloar
On Thu, Dec 15, 2011 at 8:06 AM, Daivish Shah wrote: > Hi Barrie, > > I got the real problem but still looking for solution. > > module1 is XSD type project means it generates classes file and JAR file > based on XSD information. > > And i am defining module1 project as dependency of module2 proje

Re: Multi Module Project Failing - Help Me

2011-12-14 Thread Ron Wheeler
On 14/12/2011 4:36 PM, Daivish Shah wrote: Hi Barrie, I got the real problem but still looking for solution. module1 is XSD type project means it generates classes file and JAR file based on XSD information. And i am defining module1 project as dependency of module2 project, Still my eclipse i

Re: Conflicting Spring versions

2011-12-14 Thread Ron Wheeler
On 14/12/2011 3:17 PM, scabbage wrote: I have a multi-module project with a parent pom and several sub-modules. In one of the module, I have a dependency that has a transitive dependency of spring (2.0.6). How do I go about having the rest of my project using Spring 3.0.6.RELEASE? You are going

Re: Multi Module Project Failing - Help Me

2011-12-14 Thread Daivish Shah
Hi Barrie, I got the real problem but still looking for solution. module1 is XSD type project means it generates classes file and JAR file based on XSD information. And i am defining module1 project as dependency of module2 project, Still my eclipse is giving compilation error on import statemen

Conflicting Spring versions

2011-12-14 Thread scabbage
I have a multi-module project with a parent pom and several sub-modules. In one of the module, I have a dependency that has a transitive dependency of spring (2.0.6). How do I go about having the rest of my project using Spring 3.0.6.RELEASE? Thanks. -- View this message in context: http://mave

Re: Multi Module Project Failing - Help Me

2011-12-14 Thread Barrie Treloar
On Thu, Dec 15, 2011 at 1:38 AM, Daivish Shah wrote: > There is typo, true but I used some real time project. And names if that > project I changed. As I can't give names of that project. > > But I will tried with ur comments and MainProject pom.xml is working fine. > But it's giving this error on

Re: native-maven-plugin suggested patch to avoid redundant relink

2011-12-14 Thread sintetik
Robert, Done, https://jira.codehaus.org/browse/MOJO-1793. Regards, Sergey. On Wed, Dec 14, 2011 at 9:55 PM, Robert Scholte [via Maven] < ml-node+s40175n5075214...@n5.nabble.com> wrote: > > Could you create a Jira issue[1], together with these patches. This issue > tracking system is a much bet

RE: native-maven-plugin suggested patch to avoid redundant relink

2011-12-14 Thread Robert Scholte
Could you create a Jira issue[1], together with these patches. This issue tracking system is a much better place to keep track of an issue instead of a mailinglist. -Robert [1] https://jira.codehaus.org/browse/MOJO/component/11773 > Date: Wed, 14 Dec 2011 09:12:22 -0800 > From: sintet

Re: Failed to determine Java version for profile jdk* @

2011-12-14 Thread jaybytez
The jdk profile is something I tried to address locally as well by defining my own jdk profiles, but I finally removed them since we are only building against jdk16 and most of the reason I was using the profiles was to fix jdk15 issues. These profiles are gone. The question I have is why do I ge

native-maven-plugin suggested patch to avoid redundant relink

2011-12-14 Thread sintetik
I've been asking a question some time ago about redundant relink in native-maven-plugin: http://maven.40175.n5.nabble.com/c-native-maven-plugin-redundant-linking-at-second-run-problem-td3403291.html Finally we've started actually using native-maven-plugin so I've patched the plugin to avoid relink

Re: Failed to determine Java version for profile jdk* @

2011-12-14 Thread Stephen Connolly
On 14 December 2011 16:06, Daniel Kulp wrote: > On Tuesday, December 13, 2011 7:45:29 PM Benson Margulies wrote: >> On Tue, Dec 13, 2011 at 7:39 PM, Stephen Connolly >> >> wrote: >> > describe the problem better and point me to some sample code and i will >> > have a think. >> > >> > but profiles

Re: Failed to determine Java version for profile jdk* @

2011-12-14 Thread Daniel Kulp
On Tuesday, December 13, 2011 7:45:29 PM Benson Margulies wrote: > On Tue, Dec 13, 2011 at 7:39 PM, Stephen Connolly > > wrote: > > describe the problem better and point me to some sample code and i will > > have a think. > > > > but profiles containing (compile or runtime scope) deps activated

Re: Multi Module Project Failing - Help Me

2011-12-14 Thread Daivish Shah
There is typo, true but I used some real time project. And names if that project I changed. As I can't give names of that project. But I will tried with ur comments and MainProject pom.xml is working fine. But it's giving this error on execution of module2 so is it like that I have to published mo

Re: Building 2 dependent modules

2011-12-14 Thread Amit Bhargava
Thanks again folks. Much appreciated! I'll probably specify this in my parent pom then -- View this message in context: http://maven.40175.n5.nabble.com/Building-2-dependent-modules-tp5068822p5074678.html Sent from the Maven - Users mailing list archive at Nabble.com. ---

Re: How to set JAVA_HOME for maven?

2011-12-14 Thread fredand44
Hello Guys! Thanks for your replies! I installed jdk 1.7 and reset the JAVA_HOME to that folder. The output of mvn --version now give: Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100) Maven home: /home/fredrik/Applications/apache-maven-3.0.3 Java version: 1.7.0_02, vendor: Oracle Corpora

Re: Odd failure with maven-checkstyle-plugin in pluginManagement

2011-12-14 Thread Andreas Sewe
Stephen Connolly wrote: > Are you sure you know how to spell checkstyle? oops, my bad. :-( I thought I had copy-and-pasted the coordinates from search.maven.org throughout my POMs. Apparently, I missed one occurrence. Sorry. Best wishes, Andreas -

Re: Odd failure with maven-checkstyle-plugin in pluginManagement

2011-12-14 Thread Stephen Connolly
Are you sure you know how to spell checkstyle? On 14 December 2011 09:54, Andreas Sewe wrote: > Hi, > > I have encountered a very odd failure when adding the > maven-checkstyle-plugin to my pluginManagement section. Below is the > simplest POM that triggers this error (both under Maven 3.0.3 and

Use mvnsh with already installed Maven - how?

2011-12-14 Thread Lewis, Eric
Hi I'm looking into mvnsh right now, after having installed Maven 3.0.3 Is there a way to let mvnsh use the installed Maven instead of its own bundled version 3.0.2? Best regards Eric - To unsubscribe, e-mail: users-unsubscr..

Odd failure with maven-checkstyle-plugin in pluginManagement

2011-12-14 Thread Andreas Sewe
Hi, I have encountered a very odd failure when adding the maven-checkstyle-plugin to my pluginManagement section. Below is the simplest POM that triggers this error (both under Maven 3.0.3 and 3.0.4-RC3): > > 4.0.0 > org.example > example > 0.0.1-SNAPSHOT > > > >

Re: How to set JAVA_HOME for maven?

2011-12-14 Thread Jörg Schaible
Hi Frederic, fredand44 wrote: > Hello! > > I have just reinstalled my computer to Ubuntu. > I have also installed maven 3.0.3.. > > I set JAVA_HOME in my .bashrc like: > > JAVA_HOME=/usr/lib/jvm/java-6-openjdk > export JAVA_HOME > > If I print it out with printenv I get: > JAVA_HOME=/usr/lib/