Re: Maven release plugin and J2EE projects
Configure you release plugin to make install to you local repository first, then release:prepare success. maven-release-plugin true clean install - markku Randy L. Ringeisen wrote: Hi. I have a question about the release plugin (Maven 2 release plug-in 2.0 beta 4). I have a multi-level project as follows Parent - artifact type is POM -- Ejb - creates an EJB JAR -- Ear - creates an EAR that includes the EJB jar The Ear project depends on the Ejb jar that is created (because it has to include it in the ear). This works great until I run mvn release:prepare. The problem is that the release plugin modifies the version number in the POM files from the snapshot version (e.g. 1.0-SNAPSHOT) to the release version (e.g. 1.0). It then builds the EJB project but does not install it into the local repository (which makes sense, since this is the prepare step). Then it tries to build the EAR project and fails because the EJB jar which it depends on is not found. The workaround I have been using is to run "mvn release:prepare" until it fails By that time it has modified the version number in the POM files. Then I run "mvn install" to get the Ejb jar into the local repository. Then I can run "mvn release:prepare" again. It will pick up where it left off and finish successfully. After that I can run "mvn release:perform" and all is right with the world. Does anyone have a more elegant way to solve this problem? Randy Ringeisen PS. Have only been using Maven for a few months and it is great. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Thanks for Maven 2
Franz Garsombke wrote: I know that most of the time people post to ask questions or report problems. I would like to give thanks to the Maven team for producing some much needed forward-thinking software that really does revolutionize how we build componentized software. I know that working on open source is difficult and takes quite an amount of time. Franz Garsombke - Everyone is raving about the all-new Yahoo! Mail beta. I too would like to thank the Maven2 team. It has greatly improved the reliability of my build process and the confidence I will produce yet another build time after time. Yes there are glitches, problems and occasional frustrations but I find the maven way much more productive and extensible than the ant way. I'm positive the maven team will work on getting as many bugs out and improve the process even more and I guess IDE support should get better and better with time. Can we make this a positive feedback thread? There have been too many negative backlashes. THANK YOU ALL MAVEN (+PLUGINS) HACKERS! Srgjan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I use a war as dependency?
Thanks for the help - Maruf Niels Gylling wrote: Have both the war and the ejb depend on the common code, it will then be bundled in WEB-INF/lib in the war. Aleo ensure that the ejb has a classpath entry to the commmon code like org.apache.maven.plugins maven-ejb-plugin true At some point you will need to deploy the ejb to a container. The j2ee way of doing so is an ear file. /Niels Maruf Aytekin wrote: The common code needs to into war file too. How could I do that without using two copies of the common code? Thanks Maruf Niels Gylling wrote: ejbs can only depend on jars, so create a shared module artifact containing common code. /Niels Maruf Aytekin wrote: Hi I have a multi module project as below: main/pom - |war/ pom | ejb/pom ejb and war project are the subprojects for main. some classes in ejb depends on the classes in war project. Since packaging is war for this project howshould i define this dependency? Is there a standart way to do this? Many thanks in advance Maruf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maven2, eclipse and hierarchical layout
parent pom: ..\child1 child pom: parent parent-pom 1 ../parent/pom.xml child1 parent From: Marco Mistroni [mailto:[EMAIL PROTECTED] Sent: Saturday, January 27, 2007 8:11 AM To: Morgovsky, Alexander (US - Glen Mills) Subject: Re: maven2, eclipse and hierarchical layout Hi Alexander, would you mind posting a simple pom.xml of the children? because i was using ../ in the tag of the parent, it is working fine from commandline but in eclipse is screwing up every time i try to build childrens... thanx and regards marco On 1/27/07, Morgovsky, Alexander (US - Glen Mills) <[EMAIL PROTECTED] > wrote: I use a flat structure where the children reference the parent as ..\(name of parent). Thanks. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
Re: maven2, eclipse and hierarchical layout
On 1/27/07, Marco Mistroni <[EMAIL PROTECTED]> wrote: child pom: > > > parent > parent-pom > 1 > ../parent/pom.xml > > there you go!! thanx a lot Alexander... this was what i was missing.. thanx a lot!!! regards Marco child1 > parent > -- > *From:* Marco Mistroni [mailto:[EMAIL PROTECTED] > *Sent:* Saturday, January 27, 2007 8:11 AM > *To:* Morgovsky, Alexander (US - Glen Mills) > *Subject:* Re: maven2, eclipse and hierarchical layout > > Hi Alexander, > would you mind posting a simple pom.xml of the children? > because i was using ../ in the tag of the parent, it is > working fine from commandline but in eclipse is > screwing up every time i try to build childrens... > > thanx and regards > marco > > On 1/27/07, Morgovsky, Alexander (US - Glen Mills) <[EMAIL PROTECTED] > > wrote: > > > > I use a flat structure where the children reference the parent as > > ..\(name of parent). Thanks. > > > > > > This message (including any attachments) contains confidential > > information intended for a specific individual and purpose, and is protected > > by law. If you are not the intended recipient, you should delete this > > message. > > > > Any disclosure, copying, or distribution of this message, or the > > taking of any action based on it, is strictly prohibited. [v.E.1] > > > >
CONTINUUMUSER
Just curious, but why is http://docs.codehaus.org/display/CONTINUUMUSER/Home password-protected but MAVENUSER and ARCHIVAUSER are not? It would be much easier for the casual continuum user to browse the info there if the restriction was removed. -- Robert Dale
Re: maven2, eclipse and hierarchical layout
I personally use a completely different approach when the parent + child modules are really a self-contained project (and you always want to work on all of them). * I open the parent project in Eclipse. All the child modules show up as sub-folders * I add each main and test source and resource folder to Eclipse build path as source folders and customize their target directories appropriately. I do this for each child module too. * I use the Maven2 eclipse plugin to automatically add all the dependencies to the classpath. * I commit to version control the .project and .classpath files I end up with a single classpath in Eclipse across all sub-modules. When I add new dependencies to pom.xml, the Maven2 plugin updates my classpath. Tim Alexander Sack-3 wrote: > > http://maven.apache.org/plugins/maven-eclipse-plugin/reactor.html > > -aps > > On 1/26/07, Marco Mistroni <[EMAIL PROTECTED]> wrote: >> >> hi all, >> i still havent' managed to use maven2 with eclipse where i have a >> parent >> project and few children project >> >> has anyone managed to have that setup working correctly in eclipse? >> >> any hints on how to make it work will be greatly appreciated >> >> regards >> marco >> >> > > > -- > "What lies behind us and what lies in front of us is of little concern to > what lies within us." -Ralph Waldo Emerson > > -- View this message in context: http://www.nabble.com/maven2%2C-eclipse-and-hierarchical-layout-tf3123649s177.html#a8668829 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
two 500 errors
I'm running the latest svn as of today - 500580. If I try to retrieve a file from the local repository I get this error: exception javax.servlet.ServletException: Unable to lookup role [null] hint [basic] root cause org.codehaus.plexus.component.repository.exception.ComponentLookupException: Component descriptor cannot be found in the component repository: nullbasic (lookup realm: ClassRealm[plexus.xwork, parent: null]). Then using /proxy as the way to access the actual proxy as described by others on this list, I get this error: exception There is no Action mapped for namespace / and action name proxy. Check if there is such an action name with such namespace defined in the xwork.xml and also if such an action class exists. Check also the log to see if the action class is successfully loaded. - [unknown location] There is no proxy mapping in xwork.xml. Any ideas? Thanks, -- Robert Dale
Re: Build Status Dashboard Project
None that I'm aware of currently exist for M2 (in any formally released fashion, at least) but I know there was a Dashboard plugin for M1 and there has been some recent disussion of a similar nature for M2 on this list. Keep your eyes peeled. I imagine this is on its way. Wayne On 1/26/07, Morgovsky, Alexander (US - Glen Mills) <[EMAIL PROTECTED]> wrote: Hello. I have multiple builds being deployed to multiple servers. My system works on Subversion, Continuum and Maven 2. Is there a dashboard which has red lights(failure), yellow(in progress) and green (success) which displays the status of the builds and their destination servers? Thank you. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven 2.0 Plugin for ZIP Archive
I am looking for a Maven 2.0 plugin that would help me prepare a ZIP archive. >From Maven 2.0.4 documentation, it appears that .zip archives are not supported. Regards, /U - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven 2.0 Plugin for ZIP Archive
On 1/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I am looking for a Maven 2.0 plugin that would help me prepare a ZIP archive. maven-assembly-plugin -- How fast can a year go? As fast as your childs first year. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to skip all tests but still run explicitly
I want to turn off all tests for a project but still be able to force a run for all tests in a single class file by using a param on the mvn command line but can not figure out how to do this. I edited the pom.xml and specified to turn off all tests, however when I type: mvn -Dtest=BootStrapTest clean test the test does not run. I explicitly told it to run all tests in BootStrapTest, but apparently this does not override all the true attrib. Is there a way to override the while running maven from the command line? Here is my section org.apache.maven.plugins maven-surefire-plugin true false any help would be greatly appreciated. Lisa -- View this message in context: http://www.nabble.com/how-to-skip-all-tests-but-still-run-explicitly-tf3129739s177.html#a8671878 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Java Plugin Framework Support
I am not too experienced with Maven yet but I have created a simple JAR project POM.XML and I would like to build a zip file as follows; ../ ../plugin.xml ../classes ../classes/*.class This directory structure can be explained in more detail here; http://jpf.sourceforge.net/ Does Maven support this type of target... and if so, how do I use it? Thanks. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to skip all tests but still run explicitly
Have you tried -Dmaven.test.skip=false? Not sure it will work, but there's a good chance it will. But then I think it will run all tests. Probably you shouldn't use config-skip if you actually want to run some test(s)... Instead I'd use profiles to specify the exact test or set of tests you want to run. Wayne On 1/27/07, Lisa <[EMAIL PROTECTED]> wrote: I want to turn off all tests for a project but still be able to force a run for all tests in a single class file by using a param on the mvn command line but can not figure out how to do this. I edited the pom.xml and specified to turn off all tests, however when I type: mvn -Dtest=BootStrapTest clean test the test does not run. I explicitly told it to run all tests in BootStrapTest, but apparently this does not override all the true attrib. Is there a way to override the while running maven from the command line? Here is my section org.apache.maven.plugins maven-surefire-plugin true false any help would be greatly appreciated. Lisa -- View this message in context: http://www.nabble.com/how-to-skip-all-tests-but-still-run-explicitly-tf3129739s177.html#a8671878 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to skip all tests but still run explicitly
On 1/27/07, Lisa <[EMAIL PROTECTED]> wrote: I want to turn off all tests for a project but still be able to force a run for all tests in a single class file by using a param on the mvn command line but can not figure out how to do this. Try putting the "skip" config in a profile that is activated by the absence of a system property. Then if you do supply the property, the profile will not be active. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Java Plugin Framework Support
Maven does not support this JPF file format specifically that I'm aware of -- someone might have made a plugin -- but there's nothing stopping you from creating a zip file in this format using the assembly plugin. http://maven.apache.org/plugins/maven-assembly-plugin/ Wayne On 1/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I am not too experienced with Maven yet but I have created a simple JAR project POM.XML and I would like to build a zip file as follows; ../ ../plugin.xml ../classes ../classes/*.class This directory structure can be explained in more detail here; http://jpf.sourceforge.net/ Does Maven support this type of target... and if so, how do I use it? Thanks. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to skip all tests but still run explicitly
Thanks, I am new to Maven and not sure I understand profiles completely yet, but will do some research on exactly how to do this. Lisa Wendy Smoak-3 wrote: > > On 1/27/07, Lisa <[EMAIL PROTECTED]> wrote: > >> I want to turn off all tests for a project but still be able to force a >> run >> for all tests in a single class file by using a param on the mvn command >> line but can not figure out how to do this. > > Try putting the "skip" config in a profile that is activated by the > absence of a system property. Then if you do supply the property, the > profile will not be active. > > -- > Wendy > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/how-to-skip-all-tests-but-still-run-explicitly-tf3129739s177.html#a8673213 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to skip all tests but still run explicitly
yes, I am familiar with this, but what I want is: 1. a pom file that excludes all tests by default 2. the ability to force all tests with a specific class by using -D switch Currently I have not figured out how to do this. I know how to use the skip tag and exclude by pattern but then if I do that I can not force a specific class to run on demand because it gets filtered or skipped. The tests in question run some database insertion code, so I want all tests to be ignored by default if someone comes into the directory and runs a build. I do not want it mucking up the database, but I do want to provide the ability to run some specific tests for those people who know what they are doing and know the magic command to type. Lisa Wayne Fay wrote: > > Have you tried -Dmaven.test.skip=false? Not sure it will work, but > there's a good chance it will. But then I think it will run all tests. > > Probably you shouldn't use config-skip if you actually want to run > some test(s)... Instead I'd use profiles to specify the exact test or > set of tests you want to run. > > Wayne > > On 1/27/07, Lisa <[EMAIL PROTECTED]> wrote: >> >> I want to turn off all tests for a project but still be able to force a >> run >> for all tests in a single class file by using a param on the mvn command >> line but can not figure out how to do this. >> >> I edited the pom.xml and specified to turn off all tests, however when I >> type: >> >> >> mvn -Dtest=BootStrapTest clean test >> >> the test does not run. I explicitly told it to run all tests in >> BootStrapTest, but apparently this does not override all the >> true attrib. >> >> Is there a way to override the while running maven from the >> command >> line? >> >> Here is my section >> >> >> >> org.apache.maven.plugins >> maven-surefire-plugin >> >> true >> false >> >> >> >> >> >> any help would be greatly appreciated. >> >> >> Lisa >> -- >> View this message in context: >> http://www.nabble.com/how-to-skip-all-tests-but-still-run-explicitly-tf3129739s177.html#a8671878 >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/how-to-skip-all-tests-but-still-run-explicitly-tf3129739s177.html#a8673310 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to skip all tests but still run explicitly
so I have this in my pom.xml to skip all tests: org.apache.maven.plugins maven-surefire-plugin true false BUT, I want to run a test explicitly and thought this would work (and override the pom file settings but apparently the command line options DO NOT override the pom file settings mvn -Dmaven.test.skip=false -Dtest=DeleteDatabaseTableTest clean test So I want to make it difficult to run the tests and all tests are excluded by default but the pom filter (skip = true) should not override any command line options. Is this the default behaviour of Maven ? (pom file overrides any command line switches?) Thanks Lisa Wayne Fay wrote: > > Have you tried -Dmaven.test.skip=false? Not sure it will work, but > there's a good chance it will. But then I think it will run all tests. > > Probably you shouldn't use config-skip if you actually want to run > some test(s)... Instead I'd use profiles to specify the exact test or > set of tests you want to run. > > Wayne > > On 1/27/07, Lisa <[EMAIL PROTECTED]> wrote: >> >> I want to turn off all tests for a project but still be able to force a >> run >> for all tests in a single class file by using a param on the mvn command >> line but can not figure out how to do this. >> >> I edited the pom.xml and specified to turn off all tests, however when I >> type: >> >> >> mvn -Dtest=BootStrapTest clean test >> >> the test does not run. I explicitly told it to run all tests in >> BootStrapTest, but apparently this does not override all the >> true attrib. >> >> Is there a way to override the while running maven from the >> command >> line? >> >> Here is my section >> >> >> >> org.apache.maven.plugins >> maven-surefire-plugin >> >> true >> false >> >> >> >> >> >> any help would be greatly appreciated. >> >> >> Lisa >> -- >> View this message in context: >> http://www.nabble.com/how-to-skip-all-tests-but-still-run-explicitly-tf3129739s177.html#a8671878 >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/how-to-skip-all-tests-but-still-run-explicitly-tf3129739s177.html#a8673329 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to skip all tests but still run explicitly
If you have examples of how to create a profile (inside the pom itself) and specify this profile on the command line, it would be greatly appreciated. I am pouring over the documentation and looking for something that is applicable. Thanks Lisa Wayne Fay wrote: > > Have you tried -Dmaven.test.skip=false? Not sure it will work, but > there's a good chance it will. But then I think it will run all tests. > > Probably you shouldn't use config-skip if you actually want to run > some test(s)... Instead I'd use profiles to specify the exact test or > set of tests you want to run. > > Wayne > > On 1/27/07, Lisa <[EMAIL PROTECTED]> wrote: >> >> I want to turn off all tests for a project but still be able to force a >> run >> for all tests in a single class file by using a param on the mvn command >> line but can not figure out how to do this. >> >> I edited the pom.xml and specified to turn off all tests, however when I >> type: >> >> >> mvn -Dtest=BootStrapTest clean test >> >> the test does not run. I explicitly told it to run all tests in >> BootStrapTest, but apparently this does not override all the >> true attrib. >> >> Is there a way to override the while running maven from the >> command >> line? >> >> Here is my section >> >> >> >> org.apache.maven.plugins >> maven-surefire-plugin >> >> true >> false >> >> >> >> >> >> any help would be greatly appreciated. >> >> >> Lisa >> -- >> View this message in context: >> http://www.nabble.com/how-to-skip-all-tests-but-still-run-explicitly-tf3129739s177.html#a8671878 >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/how-to-skip-all-tests-but-still-run-explicitly-tf3129739s177.html#a8673335 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]