Clean up of pom files
Hi all, We have a multitude of components and projects all build with maven and we want to enforce some standard layout for the pom files, like the ordering of the elements(like the ordering in the schema) and forbidding some elements (like company and url, there are already set in the company pom). So 2 questions: - Is there a maven/eclipse/netbeans plugin which can sort pom (xml) files based on their schema? - Is there an enforcer plugin who can enforce the ordering of the elements and forbidding some elements. Hope someone can help, Nick Stolwijk ~Java Developer~ IPROFS BV. Claus Sluterweg 125 2012 WS Haarlem http://www.iprofs.nl - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Clean up of pom files
not for netbeans. AFAIK the maven pom schema doesn't enforce ordering. you could write such enforcer rule yourself I guess. Milos On Wed, Feb 24, 2010 at 10:30 AM, Nick Stolwijk nick.stolw...@gmail.comwrote: Hi all, We have a multitude of components and projects all build with maven and we want to enforce some standard layout for the pom files, like the ordering of the elements(like the ordering in the schema) and forbidding some elements (like company and url, there are already set in the company pom). So 2 questions: - Is there a maven/eclipse/netbeans plugin which can sort pom (xml) files based on their schema? - Is there an enforcer plugin who can enforce the ordering of the elements and forbidding some elements. Hope someone can help, Nick Stolwijk ~Java Developer~ IPROFS BV. Claus Sluterweg 125 2012 WS Haarlem http://www.iprofs.nl - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
idea integration with maven
i am using inteli idea for java development.I have created a application using maven.How do i open it with Idea..??? i tried it lot mvn idea:idea -- View this message in context: http://old.nabble.com/idea-integration-with-maven-tp27714145p27714145.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Clean up of pom files
You might want to use this plugin: http://code.google.com/p/sortpom/ /Anders On Wed, Feb 24, 2010 at 10:30, Nick Stolwijk nick.stolw...@gmail.comwrote: Hi all, We have a multitude of components and projects all build with maven and we want to enforce some standard layout for the pom files, like the ordering of the elements(like the ordering in the schema) and forbidding some elements (like company and url, there are already set in the company pom). So 2 questions: - Is there a maven/eclipse/netbeans plugin which can sort pom (xml) files based on their schema? - Is there an enforcer plugin who can enforce the ordering of the elements and forbidding some elements. Hope someone can help, Nick Stolwijk ~Java Developer~ IPROFS BV. Claus Sluterweg 125 2012 WS Haarlem http://www.iprofs.nl - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Site generation questions
Hi, I have a multi-module project I want to generate a site for in Hudson. 1) Do I have to do mvn clean install site-deploy, or is it enough to do mvn clean site-deploy? 2) How is the Maven 3 site generation coming along? Is there a way to use Maven 3 to generate a site at the moment, or do I need to use Maven 2 still? 3) Is there a way to use Maven 3 in Hudson now with the full integration, or do I need to execute it as a command-line build still? If the integration is not available, are there any plans to get it working in the near future? 4) If I do mvn clean install site-deploy, I get all my projects rebuilt several times during site-generation. Is this normal? I'm using Maven 2 in this case. Thanks, Lóránt - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Clean up of pom files
Thanks, that plugin looks promising! Only their default ordering is not my preferable ordering, but I can see it is configurable. :) Thanks, Nick Stolwijk ~Java Developer~ IPROFS BV. Claus Sluterweg 125 2012 WS Haarlem http://www.iprofs.nl On Wed, Feb 24, 2010 at 10:48 AM, Anders Hammar and...@hammar.net wrote: You might want to use this plugin: http://code.google.com/p/sortpom/ /Anders On Wed, Feb 24, 2010 at 10:30, Nick Stolwijk nick.stolw...@gmail.comwrote: Hi all, We have a multitude of components and projects all build with maven and we want to enforce some standard layout for the pom files, like the ordering of the elements(like the ordering in the schema) and forbidding some elements (like company and url, there are already set in the company pom). So 2 questions: - Is there a maven/eclipse/netbeans plugin which can sort pom (xml) files based on their schema? - Is there an enforcer plugin who can enforce the ordering of the elements and forbidding some elements. Hope someone can help, Nick Stolwijk ~Java Developer~ IPROFS BV. Claus Sluterweg 125 2012 WS Haarlem http://www.iprofs.nl - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Generics 5 - unexpected type, found: java.lang.Object expected: reference
Hi guys, I have a strange problem with one generics code found in one GWT library. This compile fine with java 6 but not with java 5. In fact I can compile it in eclipse with java 5, so this problem appears only when compiling with maven. I reproduced this error with this code: class: --- public class DogBean { transient protected Object bean; public X X getBean() { return (X) bean; } public void setBean(Object bean) { this.bean = bean; } } Call to this class (simplified): -- DogBean stack = new DogBean(); stack.setBean(My doggie); if(stack.getBean() instanceof String) { System.out.println(GermanShepherd); } I get this error on: if(stack.getBean() instanceof String) - [INFO] Compilation failure /home/milan/projects/eclipse/workspace2/Generics/src/main/java/main/SomeClass.java:[24,32] unexpected type found : java.lang.Object required: reference -- This is my pom.xml - only one plugin. pom.xml: --- ... build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin /plugins /build ... Maven version: Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200) --- maven command used mvn clean install When I build it with jdk6 I can compile it without problem. But when I use jdk5 when building, I get that error. Problem is our build server use runs on jdk5, as some of our customers do use jre 5. I can cast this code like this: if((Object)stack.getBean() instanceof String) Then it compiles OK both with jdk5 and jdk6. but this is both ugly and dirty But where is the problem? I don't get this error under eclipse(neither under jd5 or jdk6) only when building with maven Any clues? Just ask for more info. Regards, Milan Chudík - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: idea integration with maven
Hi Eshan, in your current working directory you should find the IDEA project files - just open them from within IntelliF Siegfried Goeschl On 24.02.10 10:47, eshan sudharaka wrote: i am using inteli idea for java development.I have created a application using maven.How do i open it with Idea..??? i tried it lot mvn idea:idea - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: idea integration with maven
from intellij 7 onwards, when you go to the file|open project menu just select the pom.xml file and intellij will work out the rest for you... no need for idea:idea On 24 February 2010 09:47, eshan sudharaka esudhar...@gmail.com wrote: i am using inteli idea for java development.I have created a application using maven.How do i open it with Idea..??? i tried it lot mvn idea:idea -- View this message in context: http://old.nabble.com/idea-integration-with-maven-tp27714145p27714145.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: idea integration with maven
Assuming you have M2 integration installed ... :-) On 24.02.10 11:24, Stephen Connolly wrote: from intellij 7 onwards, when you go to the file|open project menu just select the pom.xml file and intellij will work out the rest for you... no need for idea:idea On 24 February 2010 09:47, eshan sudharakaesudhar...@gmail.com wrote: i am using inteli idea for java development.I have created a application using maven.How do i open it with Idea..??? i tried it lot mvn idea:idea -- View this message in context: http://old.nabble.com/idea-integration-with-maven-tp27714145p27714145.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to resolve this javax.transaction:jta:jar:1.0.1B error
Ajoo123 wrote: [...] org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing: -- 1) javax.transaction:jta:jar:1.0.1B You don't need to upload jta to your own repository. jta is available from Java.net Maven2 repository at http://download.java.net/maven/2/javax/transaction/jta/ Put this in your pom.xml (or even better in your settings.xml): repository idmaven2-repository.dev.java.net/id nameJava.net Repository for Maven 2/name urlhttp://download.java.net/maven/2/url releases enabledtrue/enabled /releases snapshots enabledfalse/enabled /snapshots /repository -- View this message in context: http://n2.nabble.com/How-to-resolve-this-javax-transaction-jta-jar-1-0-1B-error-tp4623495p4625005.html Sent from the maven users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to resolve this javax.transaction:jta:jar:1.0.1B error
Nooo!!! Friends don't let friends use the java.net maven repositories. -Stephen On 24 February 2010 10:58, rsaddey r...@saddey.net wrote: Ajoo123 wrote: [...] org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing: -- 1) javax.transaction:jta:jar:1.0.1B You don't need to upload jta to your own repository. jta is available from Java.net Maven2 repository at http://download.java.net/maven/2/javax/transaction/jta/ Put this in your pom.xml (or even better in your settings.xml): repository idmaven2-repository.dev.java.net/id nameJava.net Repository for Maven 2/name urlhttp://download.java.net/maven/2/url releases enabledtrue/enabled /releases snapshots enabledfalse/enabled /snapshots /repository -- View this message in context: http://n2.nabble.com/How-to-resolve-this-javax-transaction-jta-jar-1-0-1B-error-tp4623495p4625005.html Sent from the maven users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to resolve this javax.transaction:jta:jar:1.0.1B error
At the very least stick a repository manager in front and only allow through known good artifacts On 24 February 2010 11:07, Stephen Connolly stephen.alan.conno...@gmail.com wrote: Nooo!!! Friends don't let friends use the java.net maven repositories. -Stephen On 24 February 2010 10:58, rsaddey r...@saddey.net wrote: Ajoo123 wrote: [...] org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing: -- 1) javax.transaction:jta:jar:1.0.1B You don't need to upload jta to your own repository. jta is available from Java.net Maven2 repository at http://download.java.net/maven/2/javax/transaction/jta/ Put this in your pom.xml (or even better in your settings.xml): repository idmaven2-repository.dev.java.net/id nameJava.net Repository for Maven 2/name urlhttp://download.java.net/maven/2/url releases enabledtrue/enabled /releases snapshots enabledfalse/enabled /snapshots /repository -- View this message in context: http://n2.nabble.com/How-to-resolve-this-javax-transaction-jta-jar-1-0-1B-error-tp4623495p4625005.html Sent from the maven users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to resolve this javax.transaction:jta:jar:1.0.1B error
stephenconnolly wrote: At the very least stick a repository manager in front and only allow through known good artifacts On 24 February 2010 11:07, Stephen Connolly stephen.alan.conno...@gmail.com wrote: Nooo!!! Friends don't let friends use the java.net maven repositories. -Stephen On 24 February 2010 10:58, rsaddey r...@saddey.net wrote: Ajoo123 wrote: [...] org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing: -- 1) javax.transaction:jta:jar:1.0.1B You don't need to upload jta to your own repository. jta is available from Java.net Maven2 repository at http://download.java.net/maven/2/javax/transaction/jta/ Put this in your pom.xml (or even better in your settings.xml): repository idmaven2-repository.dev.java.net/id nameJava.net Repository for Maven 2/name [...] Oops, I wasn't aware of java.net repos causing that much trouble and yes we have a Nexus and the java.net is at somewhere down end of public group. Thanks gain, I'll immediately remove my post... -- View this message in context: http://n2.nabble.com/How-to-resolve-this-javax-transaction-jta-jar-1-0-1B-error-tp4623495p4625125.html Sent from the maven users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to resolve this javax.transaction:jta:jar:1.0.1B error
On 24 February 2010 11:25, rsaddey r...@saddey.net wrote: stephenconnolly wrote: At the very least stick a repository manager in front and only allow through known good artifacts On 24 February 2010 11:07, Stephen Connolly stephen.alan.conno...@gmail.com wrote: Nooo!!! Friends don't let friends use the java.net maven repositories. -Stephen On 24 February 2010 10:58, rsaddey r...@saddey.net wrote: Ajoo123 wrote: [...] org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing: -- 1) javax.transaction:jta:jar:1.0.1B You don't need to upload jta to your own repository. jta is available from Java.net Maven2 repository at http://download.java.net/maven/2/javax/transaction/jta/ Put this in your pom.xml (or even better in your settings.xml): repository idmaven2-repository.dev.java.net/id nameJava.net Repository for Maven 2/name [...] Oops, I wasn't aware of java.net repos causing that much trouble and yes we have a Nexus and the java.net is at somewhere down end of public group. Thanks gain, I'll immediately remove my post... Well they break a few of the cardinal rules of maven repositories: 1, They have artifacts with the same GAV coordinates as central and different content (e.g. JAX-WS) 2. They have been known to delete artifacts and redeploy _the same version_ quite some time after the original was deployed 3. They mix -SNAPSHOT with releases so that the metadata can completely screw up range resolution There's more... but IMHO the above 3 should be reason enough not to use the java.net repositories unless you have a strict repository manager with filtering sitting in front of them. -Stephen -- View this message in context: http://n2.nabble.com/How-to-resolve-this-javax-transaction-jta-jar-1-0-1B-error-tp4623495p4625125.html Sent from the maven users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: XML Files in Maven Jar
Files that do not get compiled, but still need to be put in the jar should be put in src/main/resources. vasm wrote: Hi All, I am new to maven. I have created a new maven project to create a jar file. I have a few xml files in classpath as well. When i build the project only the java files (i.e. class files) get included in jar. The xml files are excluded. Can anyone please help. How to include these xml files in jar as well. Any kind of help is appreciated. Thanx. -- View this message in context: http://old.nabble.com/XML-Files-in-Maven-Jar-tp27714119p27714175.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: File name filtering in maven-archetype plugin
Thanks for help :) Aleksey. 19.02.2010 17:34, Adam Leggett (UPCO) пишет: I blogged about how to do this here: http://blogs.mikeci.com/2010/01/14/working-with-custom-maven-archetypes-part-1/ See step four - filtering a file name. Cheers Adam On Fri, 2010-02-19 at 17:27 +0400, Aleksey Didik wrote: Hello all, I have some properties files in my maven archetype and I want to name it in real project as /artifactId.properties/ Is it possible to do? Create /${archetypeId}.properties /file in archetype project and use resourcesrc/main/properties/${artifactId}.properties/resource in archetype.xml is not work, as expected. May be anybody know solution? Thanks and best regards, Aleksey Didik. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: XML Files in Maven Jar
Thanx a lot. It worked for me. djrobo wrote: Files that do not get compiled, but still need to be put in the jar should be put in src/main/resources. vasm wrote: Hi All, I am new to maven. I have created a new maven project to create a jar file. I have a few xml files in classpath as well. When i build the project only the java files (i.e. class files) get included in jar. The xml files are excluded. Can anyone please help. How to include these xml files in jar as well. Any kind of help is appreciated. Thanx. -- View this message in context: http://old.nabble.com/XML-Files-in-Maven-Jar-tp27714119p27714177.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: XML Files in Maven Jar
On Qua, 24 Fev 2010, Thomas Sundberg wrote: Hi! Where are the xml files located in your project? They will be included automatically if you place them in src/main/resources He's probably converting an existing project to use Maven, and so it's not layed out in Maven's preferred structure. -- Little else matters than to write good code. -- Karl Lehenbauer Eduardo M KALINOWSKI edua...@kalinowski.com.br - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Generics 5 - unexpected type, found: java.lang.Object expected: reference
milan chudik wrote at Mittwoch, 24. Februar 2010 11:13: Hi guys, I have a strange problem with one generics code found in one GWT library. This compile fine with java 6 but not with java 5. In fact I can compile it in eclipse with java 5, so this problem appears only when compiling with maven. [snip] No, it appears when you compile with the Sun compiler. Eclipse uses *never* the compiler of the configured JDK. Simply compile from commandline with javac yourself and you'll see. The Eclipse compiler is too smart regarding generics. - Jörg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re : Clean up of pom files
Hi, I have the same need and I have opened a Sonar feature request: http://jira.codehaus.org/browse/SONAR-1399 Read the comments to see the proposals. You can also look at http://maven.apache.org/developers/conventions/code.html#POM_Code_Convention to see Maven POM element ordering convention. Regards, Julien - Message d'origine De : Nick Stolwijk nick.stolw...@gmail.com À : Maven Users List users@maven.apache.org Envoyé le : Mer 24 Février 2010, 11 h 08 min 05 s Objet : Re: Clean up of pom files Thanks, that plugin looks promising! Only their default ordering is not my preferable ordering, but I can see it is configurable. :) Thanks, Nick Stolwijk ~Java Developer~ IPROFS BV. Claus Sluterweg 125 2012 WS Haarlem http://www.iprofs.nl On Wed, Feb 24, 2010 at 10:48 AM, Anders Hammar wrote: You might want to use this plugin: http://code.google.com/p/sortpom/ /Anders On Wed, Feb 24, 2010 at 10:30, Nick Stolwijk wrote: Hi all, We have a multitude of components and projects all build with maven and we want to enforce some standard layout for the pom files, like the ordering of the elements(like the ordering in the schema) and forbidding some elements (like company and url, there are already set in the company pom). So 2 questions: - Is there a maven/eclipse/netbeans plugin which can sort pom (xml) files based on their schema? - Is there an enforcer plugin who can enforce the ordering of the elements and forbidding some elements. Hope someone can help, Nick Stolwijk ~Java Developer~ IPROFS BV. Claus Sluterweg 125 2012 WS Haarlem http://www.iprofs.nl - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: idea integration with maven
Because we have lots of devs using IDEA we configure all our poms with the idea plugin so devs can open/create IDEA projects both ways; i.e. via the command line and via Project Open. The former is configured to auto download sources/javadocs. -Dave On Wed, Feb 24, 2010 at 3:45 AM, Siegfried Goeschl siegfried.goes...@it20one.at wrote: Assuming you have M2 integration installed ... :-) On 24.02.10 11:24, Stephen Connolly wrote: from intellij 7 onwards, when you go to the file|open project menu just select the pom.xml file and intellij will work out the rest for you... no need for idea:idea On 24 February 2010 09:47, eshan sudharakaesudhar...@gmail.com wrote: i am using inteli idea for java development.I have created a application using maven.How do i open it with Idea..??? i tried it lot mvn idea:idea -- View this message in context: http://old.nabble.com/idea-integration-with-maven-tp27714145p27714145.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: assembly and including a test-jar
Hi, i assume your problem is due to the includes you have defined... Edderd wrote: includecom.comcast.vodauto:vodmain/include includecom.comcast.vodauto:vodtest/include http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/including-and-excluding-artifacts.html You could use includegroupId:artifactId:type:classifier/include format to include a particular type... may be includecom.comcast.vodauto:vodtest:*:test/include instead would help ? Kind regards Karl Heinz Marbaise -- View this message in context: http://old.nabble.com/assembly-and-including-a-test-jar-tp27712959p27714192.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: File name filtering in maven-archetype plugin
On Fri, Feb 19, 2010 at 7:34 AM, Adam Leggett (UPCO) adam.legg...@upco.co.uk wrote: I blogged about how to do this here: http://blogs.mikeci.com/2010/01/14/working-with-custom-maven-archetypes-part-1/ See step four - filtering a file name. awesome, here's a chance to talk about the bug I logged: Allow archetypes to declare minimum version of maven-archetype-plugin they need http://jira.codehaus.org/browse/ARCHETYPE-276 if you use the file/directory name filtering feature you mentioned, your archetype hopes the consumer is using at least version 2.0-alpha-4 of the maven-archetype-plugin http://jira.codehaus.org/browse/ARCHETYPE-191 if this case, if they are using an older version, you'll get files/directories with names including the underscores, and your consumers will assume your archetype is messed up - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to skip src.jar html-documentation.jar in release:perform
Thanks, i could do it using mvn clean release:clean release:prepare release:perform -Dgoals=deploy -Parchiva.mosaic_repo -DuseReleaseProfile=false -B Olivier Lamy wrote: http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html#useReleaseProfile 2010/2/23 pawan gandhi pawan.gan...@dowjones.com: Hi Folks, I need to skip the generation of project-src.jar and project-doc.jar and want to upload only binary to maven repository. Following deploy runs be default when run command release:perform. mvn deploy --no-plugin-updates --batch-mode -DperformRelease=true -f pom.xml How can i achieve this. Thanks Pawan -- View this message in context: http://old.nabble.com/How-to-skip-src.jar-html-documentation.jar-in-release%3Aperform-tp27710396p27710396.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Olivier http://twitter.com/olamy http://fr.linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://old.nabble.com/How-to-skip-src.jar-html-documentation.jar-in-release%3Aperform-tp27710396p27714224.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Passing system property
I'm using the combination Spring 2.5.6 TestContext Framework, JUnit 4.4. I need to pass a system property so Spring can resolve it during it's property resolver fase. I can start my IDE with a -D (e.g. -Duser.name=myname) option and when executing the JUnit test from within my IDE everything goes fine. When running this same test using Maven 2 surefire plugin the test fails even when specifying -Duser.name=myname on the maven cmd line. What am I doing wrong ? How should I get this system property passed to the JVM in which the JUnit test is actually execution ? Thanks, EDH - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven with Java and non-Java projects
We currently have Maven setup for managing many projects. We would like to add modules to some of the projects which are C#-based. What is the best practice for accomplishing this?
RE: Maven with Java and non-Java projects
There are some non-java compilers: http://maven.apache.org/plugins/maven-compiler-plugin/non-javac-compilers.ht ml -Original Message- From: wds wds [mailto:work.dev.st...@gmail.com] Sent: Wednesday, February 24, 2010 5:45 PM To: users@maven.apache.org Subject: Maven with Java and non-Java projects We currently have Maven setup for managing many projects. We would like to add modules to some of the projects which are C#-based. What is the best practice for accomplishing this? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Maven with Java and non-Java projects
For C# in particular we are using the NMaven project: http://www.codeplex.com/nmaven/ The problem with that one is that it has not received any attention in over a year. I'm not sure what the current status of that project is. The plugin tends to be a bit flaky though. A project that gets far more attention is the NPanday project: http://www.codeplex.com/npanday I have not looked at it in a while (other than to know it gets more attention), but last I looked at it, it was more geared to making Maven work within Visual Studio. That may have changed/improved. You should definitely look at it though as it gets more attention. Good luck! -Jim -Original Message- From: wds wds [mailto:work.dev.st...@gmail.com] Sent: Wednesday, February 24, 2010 8:45 AM To: users@maven.apache.org Subject: Maven with Java and non-Java projects We currently have Maven setup for managing many projects. We would like to add modules to some of the projects which are C#-based. What is the best practice for accomplishing this? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Passing system property
The surefire doc should answer this: http://maven.apache.org/plugins/maven-surefire-plugin/examples/system-properties.html /Anders On Wed, Feb 24, 2010 at 16:00, Dhondt, Edwin edwin.dho...@hp.com wrote: I'm using the combination Spring 2.5.6 TestContext Framework, JUnit 4.4. I need to pass a system property so Spring can resolve it during it's property resolver fase. I can start my IDE with a -D (e.g. -Duser.name=myname) option and when executing the JUnit test from within my IDE everything goes fine. When running this same test using Maven 2 surefire plugin the test fails even when specifying -Duser.name=myname on the maven cmd line. What am I doing wrong ? How should I get this system property passed to the JVM in which the JUnit test is actually execution ? Thanks, EDH - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Generics 5 - unexpected type, found: java.lang.Object expected: reference
In fact I can compile it in eclipse with java 5, so this problem appears only when compiling with maven. ... I don't get this error under eclipse(neither under jd5 or jdk6) only when building with maven Maven uses the compiler in your JDK while Eclipse uses its own compiler. This is not a Maven issue but rather a difference between the Eclipse compiler and Sun's compiler. if((Object)stack.getBean() instanceof String) Then it compiles OK both with jdk5 and jdk6. but this is both ugly and dirty I'd do this if it works. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven with Java and non-Java projects
Hi, i'm working on a C++/Java mixture which i'm trying to reach with Maven. Currently nar plugin (http://github.com/duns/maven-nar-plugin) http://mojo.codehaus.org/maven-native/native-maven-plugin/ etc. RPM plugin etc. But what about C# i don't know...may be other plugin's can be adopted to use for C#... http://incubator.apache.org/nmaven/ but there seemed to be not many activies over a long time... Kind regards Karl Heinz Marbaise -- SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893 Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029 Hauptstrasse 177 USt.IdNr: DE191347579 52146 Würselen http://www.soebes.de - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Site generation questions
2010/2/24 Lóránt Pintér lorant.pin...@gmail.com 2) How is the Maven 3 site generation coming along? Is there a way to use Maven 3 to generate a site at the moment, or do I need to use Maven 2 still? Hi Lóránt, are you aware of this information? http://cwiki.apache.org/MAVEN/maven-3x-and-site-plugin.html There are some changes in Maven 3 regarding the site generation. CU, Jochen
Java Cup Integration
I have a project that I'm working on and we have been using the following code to get the java_cup package: dependency groupIdjava_cup/groupId artifactIdcup/artifactId version11/version /dependency Unfortunately, this does not appear to be in any of the following repositories: central (http://repo1.maven.org/maven2), maven2-repository.dev.java.net (http://download.java.net/maven/2), maven-repository.dev.java.net (http://download.java.net/maven/1) I did find a repository that had what I thought was the same jar: repository idnuxeo/id nameNuxeo Repository/name urlhttp://svn.nuxeo.org/maven/repo/url /repository dependency groupIdcup/groupId artifactIdjava-cup/artifactId version0.11a/version /dependency However, when I attempted to use it I get the following compile error: /home/stsmitz/projects/itos_trunk/src/Record/record_framework/src/main/java/gov/nasa/gsfc/itos/record/parse/CustomSymbol.java:[33,2] cannot find symbol symbol : constructor Symbol(int,java_cup.runtime.Symbol,java_cup.runtime.Symbol) location: class java_cup.runtime.Symbol /home/stsmitz/projects/itos_trunk/src/Record/record_framework/src/main/java/gov/nasa/gsfc/itos/record/parse/CUPGrammarParser.java:[23,25] cannot find symbol symbol : constructor GrammarParser(gov.nasa.gsfc.itos.record.parse.Yylex,gov.nasa.gsfc.itos.record.parse.CustomSymbolFactory) location: class gov.nasa.gsfc.itos.record.parse.GrammarParser [INFO] [INFO] Trace org.apache.maven.BuildFailureException: Compilation failure at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516) at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) ... 17 more [INFO] [INFO] Total time: 3 seconds [INFO] Finished at: Wed Feb 24 14:24:14 EST 2010 [INFO] Final Memory: 14M/35M [INFO] make[1]: *** [maven-plugin] Error 1 make[1]: Leaving directory `/home/stsmitz/projects/itos_trunk/src/Record' make: *** [all-recursive] Error 1 So this version of java_cup does not have the class Symbol defined. Can someone point me to where the correct jar file is being stored or do we need to transition to something else? Thank you in advance, --- Sean Smitz
Re: Java Cup Integration
This is probably a better question for a Java Cup mailing list. Justin On Feb 24, 2010, at 3:13 PM, Sean Smitz sean.sm...@gmail.com wrote: I have a project that I'm working on and we have been using the following code to get the java_cup package: dependency groupIdjava_cup/groupId artifactIdcup/artifactId version11/version /dependency Unfortunately, this does not appear to be in any of the following repositories: central (http://repo1.maven.org/maven2), maven2-repository.dev.java.net (http://download.java.net/maven/2), maven-repository.dev.java.net (http://download.java.net/maven/1) I did find a repository that had what I thought was the same jar: repository idnuxeo/id nameNuxeo Repository/name urlhttp://svn.nuxeo.org/maven/repo/url /repository dependency groupIdcup/groupId artifactIdjava-cup/artifactId version0.11a/version /dependency However, when I attempted to use it I get the following compile error: /home/stsmitz/projects/itos_trunk/src/Record/record_framework/src/ main/java/gov/nasa/gsfc/itos/record/parse/CustomSymbol.java:[33,2] cannot find symbol symbol : constructor Symbol (int,java_cup.runtime.Symbol,java_cup.runtime.Symbol) location: class java_cup.runtime.Symbol /home/stsmitz/projects/itos_trunk/src/Record/record_framework/src/ main/java/gov/nasa/gsfc/itos/record/parse/CUPGrammarParser.java: [23,25] cannot find symbol symbol : constructor GrammarParser (gov.nasa.gsfc.itos.record.parse.Yylex, gov.nasa.gsfc.itos.record.parse.CustomSymbolFactory) location: class gov.nasa.gsfc.itos.record.parse.GrammarParser [INFO] --- - [INFO] Trace org.apache.maven.BuildFailureException: Compilation failure at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (DefaultLifecycleExecutor.java:715) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle( DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal (DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures( DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute (DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: 328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main (CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced (Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode (Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure at org.apache.maven.plugin.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:516) at org.apache.maven.plugin.CompilerMojo.execute (CompilerMojo.java:114) at org.apache.maven.plugin.DefaultPluginManager.executeMojo (DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (DefaultLifecycleExecutor.java:694) ... 17 more [INFO] --- - [INFO] Total time: 3 seconds [INFO] Finished at: Wed Feb 24 14:24:14 EST 2010 [INFO] Final Memory: 14M/35M [INFO] --- - make[1]: *** [maven-plugin] Error 1 make[1]: Leaving directory `/home/stsmitz/projects/itos_trunk/src/ Record' make: *** [all-recursive] Error 1 So this version of java_cup does not have the class Symbol defined. Can someone point me to where the correct jar file is being stored or do we need to transition to something else? Thank you in advance, --- Sean Smitz - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Restrictions on naming pattern of artifactId
It looks like there are some restrictions on the character that can be included the the artifact ID of the GAV. For example, a if a pom includes a dependency of: dependency groupIdorg.redhat/groupId artifactIdcompat-libstdc++/artifactId version296-2.96-138.i386/version /dependency You get this error: 'dependencies.dependency.artifactId' with value 'compat-libstdc++' does not match a valid id pattern. Any know why such a restriction is in place? Interestingly enough, Nexus does not complain about uploading such an artifact and creating the pom with ++ in the artifactId. --- Todd Thiessen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
having problems with the scm plugin
As far as I can tell my configuration is correct, using Maven 2.2.1, scm 1.3 and OS X 10.6.2. The relevant parts of my POM file are included. The tags are in my parent POM file so I expect the child project to inherit. I don't really understand the difference between connection and developerConnection so I set them both. scm connection scm:svn:https://10.6.22.11/svn/icfdev/NE-FIMS/trunk /connection developerConnection scm:svn:https://10.6.22.11/svn/icfdev/NE-FIMS/trunk /developerConnection /scm plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.3/version configuration username${svn.username}/username password${svn.password}/password /configuration /plugin /plugins When I try to run mvn scm:checkout on a child project I observe the error shown below from the plug-in. I also tried adding connectionUrl in the configuration for the plugin but that didn't help, same error. Anyone have some ideas? I'm not having any problems with command-line svn, only the Maven svn integration. Thanks. Grant STACK TRACE org.apache.maven.lifecycle.LifecycleExecutionException: Cannot run checkout command : at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot run checkout command : at org.apache.maven.scm.plugin.CheckoutMojo.checkout(CheckoutMojo.java:134) at org.apache.maven.scm.plugin.CheckoutMojo.execute(CheckoutMojo.java:93) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) ... 17 more Caused by: org.apache.maven.scm.ScmException: Can't load the scm provider. at org.apache.maven.scm.plugin.AbstractScmMojo.getScmRepository(AbstractScmMojo.java:334) at org.apache.maven.scm.plugin.CheckoutMojo.checkout(CheckoutMojo.java:112) ... 20 more Caused by: java.lang.NullPointerException: You need to define a connectionUrl parameter at org.apache.maven.scm.plugin.AbstractScmMojo.getConnectionUrl(AbstractScmMojo.java:222) at org.apache.maven.scm.plugin.AbstractScmMojo.getScmRepository(AbstractScmMojo.java:271) ... 21 more /STACK TRACE - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: having problems with the scm plugin
Grant Lewis schrieb: As far as I can tell my configuration is correct, using Maven 2.2.1, scm 1.3 and OS X 10.6.2. The relevant parts of my POM file are included. The tags are in my parent POM file so I expect the child project to inherit. I don't really understand the difference between connection and developerConnection so I set them both. When I try to run mvn scm:checkout on a child project I observe the error shown below from the plug-in. I also tried adding connectionUrl in the configuration for the plugin but that didn't help, same error. Anyone have some ideas? I'm not having any problems with command-line svn, only the Maven svn integration. Thanks. are these line breaks also in your pom, or just in this mail ? i remember i've got problems once with a similar situation, just cannot remember if it was with a scm connection url. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Ant , maven , antrun , ddlutils
Hello everyone I have posted this on the ant forum. The reason for this post on maven forum is that I am not sure where the problem is originating from. I am trying to use ddlutils with maven. No ready ddlutils plugin available for maven. So I am working with ant-run plugin. When I run the maven pom file, I get the following output. You can notice here that the echo statement echoes the driver value from the properties file first time and then after that it does not. I am not sure why this is happening. Could somebody throw somelight on this. Thanks Venkat My config: property file=./resources/ddlutils/Database.properties prefix=db / echo${db.driver}/echo taskdef classname=org.apache.ddlutils.task.DatabaseToDdlTask name=databaseToDdl classpathref=maven.compile.classpath / databaseToDdl usedelimitedsqlidentifiers=true modelname=lean verbosity=DEBUG database driverclassname=org.postgresql.Driver url=${db.url} username=${db.username} password=${db.password} / writeschematofile outputfile=./resources/database/schema-lean.xml / /databaseToDdl Error Stack Trace: ven...@ubuntu:~/leanpm/implementation$ sudo mvn -e install + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] LeanPM [INFO] Applications [INFO] LeanPM parent [INFO] LeanPMJAR [INFO] LeanPMWAR [INFO] LeanPMEAR [INFO] AllModules [INFO] BuildTools [INFO] Delivery [INFO] [INFO] Building LeanPM [INFO]task-segment: [install] [INFO] [INFO] [antrun:run {execution: ddlutils-compile}] [INFO] Executing tasks [echo] org.postgresql.Driver Borrowed connection org.apache.commons.dbcp.poolableconnect...@19abd2b from data source Returning connection org.apache.commons.dbcp.poolableconnect...@19abd2b to data source. Remaining connections: None Written schema to /home/venkat/leanpm/implementation/resources/database/schema-lean.xml [INFO] Executed tasks [INFO] [site:attach-descriptor] [INFO] [install:install] [INFO] Installing /home/venkat/leanpm/implementation/pom.xml to /.m2/repository/com/oniryx/leanPM/LeanPM/0.1-SNAPSHOT/LeanPM-0.1-SNAPSHOT.pom [INFO] [INFO] Building Applications [INFO]task-segment: [install] [INFO] [INFO] [antrun:run {execution: ddlutils-compile}] [INFO] Executing tasks [echo] ${db.driver} [INFO] [ERROR] BUILD ERROR [INFO] [INFO] An Ant BuildException has occured: Could not read the schema from the specified database: Could not get a connection from the datasource No suitable driver [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: An Ant BuildException has occured: Could not read the schema from the specified database: Could not get a connection from the datasource at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by:
Re: having problems with the scm plugin
The line breaks aren't the problem. I made some progress. I'm still a little confused by connectionUrl versus developerConnectionUrl but the following in my parent POM file finally worked for me. I never got developerConnectionUrl to work and I'm honestly not sure how the property is used by the plugin. plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.3/version configuration connectionUrlscm:svn:https://10.6.22.11/svn/icfdev/NE-FIMS/trunk/${project.artifactId}/connectionUrl username${svn.username}/username password${svn.password}/password /configuration /plugin /plugins On Feb 24, 2010, at 6:51 PM, Bastian Spanneberg wrote: Grant Lewis schrieb: As far as I can tell my configuration is correct, using Maven 2.2.1, scm 1.3 and OS X 10.6.2. The relevant parts of my POM file are included. The tags are in my parent POM file so I expect the child project to inherit. I don't really understand the difference between connection and developerConnection so I set them both. When I try to run mvn scm:checkout on a child project I observe the error shown below from the plug-in. I also tried adding connectionUrl in the configuration for the plugin but that didn't help, same error. Anyone have some ideas? I'm not having any problems with command-line svn, only the Maven svn integration. Thanks. are these line breaks also in your pom, or just in this mail ? i remember i've got problems once with a similar situation, just cannot remember if it was with a scm connection url. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Clean up of pom files
On Wed, Feb 24, 2010 at 8:00 PM, Nick Stolwijk nick.stolw...@gmail.com wrote: Hi all, We have a multitude of components and projects all build with maven and we want to enforce some standard layout for the pom files, like the ordering of the elements(like the ordering in the schema) and forbidding some elements (like company and url, there are already set in the company pom). So 2 questions: - Is there a maven/eclipse/netbeans plugin which can sort pom (xml) files based on their schema? - Is there an enforcer plugin who can enforce the ordering of the elements and forbidding some elements. You can also attempt to use http://maven.apache.org/enforcer/enforcer-rules/index.html But that might not be quite what you are after. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Ant , maven , antrun , ddlutils
please try with maven 3.0-alpha-6. maven 2's plugin classloader only loads a plugin once during a reactor build, so if you try to change the plugin's dependencies mid reactor, it will blow up in your face... which _could_ look similar to your issue... this would be the quickest way to confirm (maven 3 has fixed it IIRC) if your build works with 3.0-a-6 and fails with 2.2.1 then this is the problem and we can tell you how to fix it... otherwise it's a different problem, and we can ask you more questions Sent from my [rhymes with tryPod] ;-) On 25 Feb 2010, at 00:30, venkatRAM venkatram.akkin...@gmail.com wrote: Hello everyone I have posted this on the ant forum. The reason for this post on maven forum is that I am not sure where the problem is originating from. I am trying to use ddlutils with maven. No ready ddlutils plugin available for maven. So I am working with ant-run plugin. When I run the maven pom file, I get the following output. You can notice here that the echo statement echoes the driver value from the properties file first time and then after that it does not. I am not sure why this is happening. Could somebody throw somelight on this. Thanks Venkat My config: property file=./resources/ddlutils/Database.properties prefix=db / echo${db.driver}/echo taskdef classname=org.apache.ddlutils.task.DatabaseToDdlTask name=databaseToDdl classpathref=maven.compile.classpath / databaseToDdl usedelimitedsqlidentifiers=true modelname=lean verbosity=DEBUG database driverclassname=org.postgresql.Driver url=${db.url} username=${db.username} password=${db.password} / writeschematofile outputfile=./resources/database/schema-lean.xml / /databaseToDdl Error Stack Trace: ven...@ubuntu:~/leanpm/implementation$ sudo mvn -e install + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] LeanPM [INFO] Applications [INFO] LeanPM parent [INFO] LeanPMJAR [INFO] LeanPMWAR [INFO] LeanPMEAR [INFO] AllModules [INFO] BuildTools [INFO] Delivery [INFO] --- - [INFO] Building LeanPM [INFO]task-segment: [install] [INFO] --- - [INFO] [antrun:run {execution: ddlutils-compile}] [INFO] Executing tasks [echo] org.postgresql.Driver Borrowed connection org.apache.commons.dbcp.poolableconnect...@19abd2b from data source Returning connection org.apache.commons.dbcp.poolableconnect...@19abd2b to data source. Remaining connections: None Written schema to /home/venkat/leanpm/implementation/resources/database/schema-lean.xml [INFO] Executed tasks [INFO] [site:attach-descriptor] [INFO] [install:install] [INFO] Installing /home/venkat/leanpm/implementation/pom.xml to /.m2/repository/com/oniryx/leanPM/LeanPM/0.1-SNAPSHOT/LeanPM-0.1- SNAPSHOT.pom [INFO] --- - [INFO] Building Applications [INFO]task-segment: [install] [INFO] --- - [INFO] [antrun:run {execution: ddlutils-compile}] [INFO] Executing tasks [echo] ${db.driver} [INFO] --- - [ERROR] BUILD ERROR [INFO] --- - [INFO] An Ant BuildException has occured: Could not read the schema from the specified database: Could not get a connection from the datasource No suitable driver [INFO] --- - [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: An Ant BuildException has occured: Could not read the schema from the specified database: Could not get a connection from the datasource at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (DefaultLifecycleExecutor.java:583) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle( DefaultLifecycleExecutor.java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal (DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures( DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute (DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: 336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at
Release notification
Hi, Is there a way to add notifications (email, RSS, etc.) when a release is performed ? Yan Langlois.