Re: Site documentation format choosing
On Wed, 29 Jul 2009 10:44:28 +0200 Lukas Theussl wrote: > turn it also lacks in flexibility and misses advanced functionality, eg (from > the > top of my head): > > - no advanced formatting and layout (eg tables) Wrong, tables are easily possible. > - no meta-information What do you mean? You can include date, author and document title. Stefan - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: More one phase for the execution's plugin
In addition to that, there is a section outside the section. If you have only these two invocations, this is also an option. Stefan Rémy Sanlaville wrote: In order to share your configurations plugins, have a look to the pluginManagment cf. http://blogs.sonatype.com/brian/2008/05/26/1211857049779.html HTH, Rémy -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running all tests ignoring failures
Hi, what always worked was: mvn ... -Dmaven.test.failure.ignore=true Stefan Balasubramanian, Ravi Shankar wrote: Hi all, I need a way in maven (using the surefire-plugin) to run all tests in a project ignoring any test failures that might occur. All my tests are independent of each other and i want all the tests to be run ignoring any failures that might happen in the middle. Note: 1. I tried using the configuration "true" for the surefire plugin and it does not run all the tests. 2. I dont see any consistent behavior as well. Sometimes, it skips all the tests after 5 failures and sometimes it skips all the tests after 6-7 failures. I am not able to observe any consistent behavior. Thanks, Ravi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Include resources from other module in .jar
Hi, one option is to extract the B jar using the dependency plugin: maven-dependency-plugin 2.1-SNAPSHOT expand common JSP fragments unpack-dependencies generate-resources your.group.id yourArtifactId true **/*.xml ${project.build.directory}/generated-resources adapt this a bit, add a dependency to the artifact your.group.id:yourArtifactId (where your shared resources are placed in src/main/resources) and off you go. HTH, Stefan Aiko85 wrote: Hi! Is it possible to directly include in a jar (lets call it A.jar) class/resource files from other module (lets call it B.jar). ? What I have is 5 jars/modules that need to have exactly the same property/xml files inside them, so I would like to keep the resources in a separate module, in one place, and just include them in 5 jars. Thanks for any help, Anne PS. Please don't be cryptic, I'm very new to maven ;) -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Include resources from other module in .jar
You're welcome. You need to declare the pom in which the plugin is defined ("root pom") as in all the poms that should inherit the plugin execution. As I posted it it works like that for Maven 2.0.8. regards, Stefan Aiko85 wrote: Thanks Stefan :-) So far I've added the part to each of the including jar's poms and it works. Is it possible to configure it so the plugin configuration is in one place ? Didn't work out when i placed it in root pom. Anne VUB Stefan Seidel wrote: Hi, one option is to extract the B jar using the dependency plugin: maven-dependency-plugin 2.1-SNAPSHOT expand common JSP fragments unpack-dependencies generate-resources your.group.id yourArtifactId true **/*.xml ${project.build.directory}/generated-resources adapt this a bit, add a dependency to the artifact your.group.id:yourArtifactId (where your shared resources are placed in src/main/resources) and off you go. HTH, Stefan Aiko85 wrote: Hi! Is it possible to directly include in a jar (lets call it A.jar) class/resource files from other module (lets call it B.jar). ? What I have is 5 jars/modules that need to have exactly the same property/xml files inside them, so I would like to keep the resources in a separate module, in one place, and just include them in 5 jars. Thanks for any help, Anne PS. Please don't be cryptic, I'm very new to maven ;) -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven2+Jboss support(what's the future of jboss with maven2)
Could it be you're looking for Cargo? http://cargo.codehaus.org/Maven2+plugin Stefan Renu Gupta wrote: Hi, Can any one tell me that Does maven2 supports jboss plugin? Because none of my jboss goals are working in maven2. When I execute mvn jboss:start it gives successful status but server is not actually started Same is the case with other goals of jboss plugin I m giving the link when it says that future distributions of maven won't support jboss http://maven.apache.org/maven-1.x/plugins/jboss/ Is it true - Renu "Beauty is eternity gazing at itself in mirror." -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven2+Jboss support(what's the future of jboss with maven2)
You're welcome. You need to add the start and stop executions to the plugin definition: start-container generate-test-resources start stop-container post-integration-test stop The s may need to be adapted to your needs. Stefan Renu Gupta wrote: Hey thanx a lot Stefan.. Its working. But there is one more problem with the plugin.. It only deploys my application in the container. But doesn't explicitly starts and stops the container. Why so Here is my pom configuration: org.codehaus.cargo cargo-maven2-plugin 0.3 jboss4x E:\Softwares\jboss-4.0.5.GA existing E:\Softwares\jboss-4.0.5.GA\server\default Cheers! Renu -Original Message----- From: Stefan Seidel [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2008 2:59 PM To: Maven Users List Subject: Re: Maven2+Jboss support(what's the future of jboss with maven2) Could it be you're looking for Cargo? http://cargo.codehaus.org/Maven2+plugin Stefan Renu Gupta wrote: Hi, Can any one tell me that Does maven2 supports jboss plugin? Because none of my jboss goals are working in maven2. When I execute mvn jboss:start it gives successful status but server is not actually started Same is the case with other goals of jboss plugin I m giving the link when it says that future distributions of maven won't support jboss http://maven.apache.org/maven-1.x/plugins/jboss/ Is it true - Renu "Beauty is eternity gazing at itself in mirror....." -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - 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] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven2+Jboss support(what's the future of jboss with maven2)
cutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) -Original Message- From: Stefan Seidel [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2008 2:07 PM To: Maven Users List Subject: Re: Maven2+Jboss support(what's the future of jboss with maven2) You're welcome. You need to add the start and stop executions to the plugin definition: start-container generate-test-resources start stop-container post-integration-test stop The s may need to be adapted to your needs. Stefan Renu Gupta wrote: Hey thanx a lot Stefan.. Its working. But there is one more problem with the plugin.. It only deploys my application in the container. But doesn't explicitly starts and stops the container. Why so Here is my pom configuration: org.codehaus.cargo cargo-maven2-plugin 0.3 jboss4x E:\Softwares\jboss-4.0.5.GA existing E:\Softwares\jboss-4.0.5.GA\server\default Cheers! Renu -----Original Message- From: Stefan Seidel [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2008 2:59 PM To: Maven Users List Subject: Re: Maven2+Jboss support(what's the future of jboss with maven2) Could it be you're looking for Cargo? http://cargo.codehaus.org/Maven2+plugin Stefan Renu Gupta wrote: Hi, Can any one tell me that Does maven2 supports jboss plugin? Because none of my jboss goals are working in maven2. When I execute mvn jboss:start it gives successful status but server is not actually started Same is the case with other goals of jboss plugin I m giving the link when it says that future distributions of maven won't support jboss http://maven.apache.org/maven-1.x/plugins/jboss/ Is it true - Renu "Beauty is eternity gazing at itself in mirror....." -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - 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] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - 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: problem installing the oracle library ojdbc14.jar
hi, the problem seems to be your -X. Try without -e and without -X. Stefan María Isabel López Sánchez-Huete wrote: Hí, I'm a beginner in this matter, and I'm lost. I expect somebody can help me. I´m trying to install dspace 1.5 on Solaris 10 in a SPARC computer. I read the installation documentation, and follow the steps. My problems is about installing the oracle library ojdbc14.jar. I put in my current directory the ojdbc14.jar file, but when I run mvn -e -X install:install-file -Dfile=ojdbc14.jar -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.2.0 -Dpackaging=jar -DgeneratePom=true The following error appears (I reproduce only the first lines): + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: ' -X install'. [INFO] org.apache.maven.plugins: checking for updates from central [INFO] org.codehaus.mojo: checking for updates from central [INFO] artifact org.apache.maven.plugins:maven- -X install-plugin: checking for updates from central [WARNING] POM for 'org.apache.maven.plugins:maven- -X install-plugin:pom:LATEST' is invalid. It will be ignored for artifact resolution. Reason: Failed to validate POM for project org.apache.maven.plugins:maven- -X install-plugin at Artifact [org.apache.maven.plugins:maven- -X install-plugin:pom:LATEST] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.maven.plugins ArtifactId: maven- -X install-plugin Version: LATEST Reason: Unable to determine the latest version org.apache.maven.plugins:maven- -X install-plugin:pom:LATEST [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build project information for plugin 'org.apache.maven.plugins:maven- -X install-plugin': POM 'org.apache.maven.plugins:maven- -X install-plugin' not found in repository: Unable to determine the latest version org.apache.maven.plugins:maven- -X install-plugin:pom:LATEST (...) Any idea? Thanks in advance. -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem installing the oracle library ojdbc14.jar
Ok, it just seemed to be because the output is very weird: >>> [INFO] Searching repository for plugin with prefix: ' -X install'. >>> [INFO] org.apache.maven.plugins: checking for updates from central >>> [INFO] org.codehaus.mojo: checking for updates from central >>> [INFO] artifact org.apache.maven.plugins:maven- -X install-plugin: >>> checking for updates from central >>> [WARNING] POM for 'org.apache.maven.plugins:maven- -X >>> install-plugin:pom:LATEST' is invalid. It will be ignored for >>> artifact resolution. Reason: Failed to validate POM for project >>> org.apache.maven.plugins:maven- -X install-plugin at Artifact >>> [org.apache.maven.plugins:maven- -X install-plugin:pom:LATEST] Do you see all the "-X"? it seemed to search for a "maven- -X install-plugin" and it surely won't find that. Stefan María Isabel López Sánchez-Huete wrote: Thank you, for your rapid answer. I guess it´s not the problem. These options only shows a more detailled error message. The build error is the same without these options. Any other idea? Stefan Seidel escribió: hi, the problem seems to be your -X. Try without -e and without -X. Stefan María Isabel López Sánchez-Huete wrote: Hí, I'm a beginner in this matter, and I'm lost. I expect somebody can help me. I´m trying to install dspace 1.5 on Solaris 10 in a SPARC computer. I read the installation documentation, and follow the steps. My problems is about installing the oracle library ojdbc14.jar. I put in my current directory the ojdbc14.jar file, but when I run mvn -e -X install:install-file -Dfile=ojdbc14.jar -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.2.0 -Dpackaging=jar -DgeneratePom=true The following error appears (I reproduce only the first lines): + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: ' -X install'. [INFO] org.apache.maven.plugins: checking for updates from central [INFO] org.codehaus.mojo: checking for updates from central [INFO] artifact org.apache.maven.plugins:maven- -X install-plugin: checking for updates from central [WARNING] POM for 'org.apache.maven.plugins:maven- -X install-plugin:pom:LATEST' is invalid. It will be ignored for artifact resolution. Reason: Failed to validate POM for project org.apache.maven.plugins:maven- -X install-plugin at Artifact [org.apache.maven.plugins:maven- -X install-plugin:pom:LATEST] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.maven.plugins ArtifactId: maven- -X install-plugin Version: LATEST Reason: Unable to determine the latest version org.apache.maven.plugins:maven- -X install-plugin:pom:LATEST [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build project information for plugin 'org.apache.maven.plugins:maven- -X install-plugin': POM 'org.apache.maven.plugins:maven- -X install-plugin' not found in repository: Unable to determine the latest version org.apache.maven.plugins:maven- -X install-plugin:pom:LATEST (...) Any idea? Thanks in advance. - 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: simple zip/tar packaging
Henri Gomez wrote: Hi to all, I'd like to package some files (no code just html/css/images) into a tar.gz or zip file. What's the consensus, solution for this ? The status is not clear from what I could see in http://jira.codehaus.org/browse/MNG-1683 Wow, what a discussion. Why not use the maven assembly plugin[0] that does all that? Stefan [0] http://maven.apache.org/plugins/maven-assembly-plugin/ -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A question about maven site and the created JavaDocs
erm, maybe you should look here: http://java.sun.com/j2se/javadoc/ Stefan thomas2004 wrote: Hi Marco, You are right. But where can I find information about the order of such parameter settings? I use Eclipse. After I type the @ and Ctrl-space, I get a context menu with a list of paramaters such as @reture, @see etc. I wonder there should be something like @comments. Regards Thomas Marco Huber wrote: Hi Thomas, I think you don't use the javadoc correctly. You comment must be followed by the @param tags: /** * My comments: This function sets ... * * @param i Percentage */ See also http://java.sun.com/j2se/javadoc/writingdoccomments/ Regards Marco thomas2004 wrote: A class looks as follow: /** * * @author Thomas * */ public class PriceIncrease { /** Logger for this class and subclasses */ protected final Log logger = LogFactory.getLog(getClass()); private int percentage; /** * * @param i Percentage * My comments: This function sets ... */ public void setPercentage(int i) { percentage = i; logger.info("Percentage set to " + i); } ... } After I used maven site, the JavaDocs are generated. But as I open this class in javadocs, I see the followings: setPercentage public void setPercentage(int i)Parameters: i - Percentage I can't see the text of MyComments, why? - 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: Deploy a site generated by mvn site with FTP
Hi, ftp should work. If not, look through the issues in JIRA[0]. Stefan [0] http://jira.codehaus.org Alexandre Touret wrote: Hello is there a way to deploy a website generated with mvn site by FTP ? According to the documentation I only saw file & scp. Do you know an other way ? thanks in advance for your help regards, Alexandre -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multi Inheritance
It is not needed to have a parent pom just for dependencies. You just need an artifact of packaging pom where you declare your dependencies, and then add a dependency to this artifact. As normal dependencies are transitive, this lets you combine several dependency sets. If there are special needs, you may also have a look at the 'import' scope introduced in Maven 2.0.9, although in general I would recommend the "old" way. Stefan Raffaele wrote: Hi all, I have the following short question: should be possibile define a pom with two or more parent pom? A practical utilization: It would be useful having a pom which specifies db specific dependencies and a pom which specifies web specific dependencies, and my app could be child of both those pom(s). Thanks in advance, best regards Raffaele -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven cobetura plugin 2.2 not working [C1]
Try to start here: http://mojo.codehaus.org/cobertura-maven-plugin/mail-lists.html and look here: http://jira.codehaus.org/browse/MCOBERTURA In general, reducing your projects complexity in order to find the error usually helps a) to find the mistake (if it is yours) b) to report a bug (if it is one) Stefan -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how maven run its plugin goals through java API????
Firstly, please do use normal English sentences, it helps you to be understood and increases your chances to get a reply. You will need the Maven Embedder[0] if your really want to run Maven goals. If you just want to execute the _logic_ of Maven goals, have a look if there is a normal way of doing it. For example, dbUnit can be run as Maven plugin, but is also available as Java API[1]. Especially, starting an instance of JBoss could be done via Cargo[2], or the JBoss Microcontainer[3], or the Embedded EJB3 Container[4]. Stefan [0] http://maven.apache.org/guides/mini/guide-embedding-m2.html [1] http://www.dbunit.org/howto.html [2] http://cargo.codehaus.org/Quick+start [3] http://www.jboss.com/products/jbossmc [4] http://docs.jboss.org/ejb3/embedded/embedded.html Renu Gupta wrote: Hey will b of grt help..:) Can u plz send the contents Thanx Cheers! Renu -Original Message- From: Vikramaditya Garg [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2008 11:09 AM To: Maven Users List Subject: RE: how maven run its plugin goals through java API I did that some time back.I will send u the xml contents what I did. Thanks Vikramaditya Garg STS Infosys Technologies Limited. -Original Message- From: Renu Gupta [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2008 10:58 AM To: Maven Users List Subject: how maven run its plugin goals through java API Hi, Can we write our own common java code to run plugin goals?// Like if I wanna run a goal mvn jboss:start Now can I code a java class to run this goal instead of using "mvn jboss:start" Any suggestions.,comments or help shall b appreciable. :) Cheers! Renu CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS End of Disclaimer INFOSYS*** - 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] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to use ear plugin? Am I stupid??
It is really very easy, you add the artifacts you want to include in the EAR as dependencies to the pom.xml. "Modules" refers not to Maven modules, but to the WARs and EJB-JARs that are included in the EAR. If "dependencies" and "packaging" are relatively new for you, I recommend reading one of [0], [1] or especially [2]. Stefan [0] http://maven.apache.org/guides/introduction/introduction-to-the-pom.html [1] http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html [2] http://www.exist.com/download/BetterBuildsWithMaven.pdf Kent Närling wrote: Can anyone please enlighten me how to use the EAR plugin? The documentation is (as usual) a bit cryptic... In the documentation it almost seems like the EAR project packaging can contain sub-modules, but if I try to declare modules inside t I just get errors?!? (aggregator projects require 'pom' as packaging) But the configuration refers to "modules" (like ejb3 etc) ? Also each EAR module refer to groupId and artifactId, from where? I tried to build & install a separate jar project and then refer to it in the EAR project, but nothing gets packaged? Please anyone give me a few pointers... Best regards, //Kent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Continuum and Archiva mail address.
I know for continuum it is the VERY unintuitive file continuum/apps/continuum/webapp/WEB-INF/classes/META-INF/plexus/application.xml where there is a from-mailbox and from-name tag. Stefan Magne Nordtveit wrote: Hi! I have just set up Archiva and Continuum on the same Tomcat server, and its working beautifully (After setting the users-db to different directories... Doh!). Only one thing remaining now, to make Archiva's mailing address be [EMAIL PROTECTED] and give it a name i.e "Archiva Repository Manager", and the same with Continuum. But I can't find out how to configure the sender... -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to use ear plugin? Am I stupid??
Kent Närling wrote: I do understand the dependency and packaging concepts, but I failed to get it working by refering to another artifact even though i ran "mvn install" on the dependent artifact. (ok, it only installed it in my local repository, but that shouldn't matter?) But this is the way it is supposed to work apparently? This is the way maven in general works, what did you expect? So, the EAR packaging is actually just an artifact packaging a bunch of other artifacts into an EAR package? Yes. Are you sure you understand what EAR means? See [0]. Again, what did you expect? The documentation for the EAR plugin describes this badly... also, what packaging types should the referred packages have? I assume jar? In a normal Enterprise Application, it is common to have at least one EJB and one WAR. Thus, the dependent projects should have packaging ejb and war, respectively. IMHO the EAR plugin doc is not perfect, but clear enough iff you know what an EAR is and what it is used for. So actually, to get you started, your EAR pom could look something like this: ... ear ... ... ejb ... war ... ... This should be all that is needed for starters. If you need to configure special things the application.xml, you can add: maven-ear-plugin ... /myWebApp ... ... true ... regards, Stefan [0] http://en.wikipedia.org/wiki/EAR_(file_format) -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Remove inherited config
Hi, I'm afraid this isn't easy. I could find the JIRA entry for that, but overriding/disabling plugins/executions/configurations is somewhat tricky/impossible. Have a look at http://jira.codehaus.org/browse/MNG-3193 - I used phase "none" to disable plugin execution. In your case, it's not possible because you use the builtin execution, which cannot be overridden. So I guess it's down to one of: - solving by different inheritance levels - writing a MANIFEST.MF to include it - having a dummy MANIFEST.MF, and adding another execution of the jar plugin in order to build the correct MANIFEST.MF - filing an issue in JIRA Stefan Jérôme Waibel wrote: Hi, I'm having a project with some 15 or so modules. All those modules have a manifest file which is provided by the developers. So I put some config for the jar plugin in the parent pom to include that manifest for all modules: org.apache.maven.plugins maven-jar-plugin path/to/MANIFEST.MF OK, this is working, so far, so good. Now I have one other modul which doesn't have a manifest file. Maven complains about the missing manifest which is configured in the parent. How can I unset the manifestFile configuration so the jar-plugin will go back to it's default behaviour and create one? My naive approach was this plugin configuration in the module's pom: org.apache.maven.plugins maven-jar-plugin which I thought might the the plugin make forget the manifestFile config from the parent, but that doesn't work. What would be the correct solution for this problem? Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: packaging wars
Hi, I think we have two cases that are similar: Firstly, EJBs where only deployment descriptors are different. For this we use + parent +- generic +- specific1 +- specific2 All the sources are in generic/src/main/java. parent has pom and ../generic/src/main/java specific1 and 2 have src/main/resources and different artifactIds. The other one is about sharing JSP fragments between WARs, and we use the dependency plugin for that: + common + war-parent +- war1 +- war2 +- war3 In war-parent we have: common provided and maven-dependency-plugin 2.1-SNAPSHOT expand common JSP fragments unpack-dependencies generate-test-resources group.id common true **/*.jsp* ${project.build.directory}/webapp Likewise, you could unpack your resources to ${project.build.directory}/generates-resources and ${project.build.directory}/generated-sources. HTH, Stefan Jean-Paul Vallée wrote: Thanks, Jeff and manuel I think i will have a look at overlays, your explainations seem to be what i want to do. But, is there a smarter way to do what i want, ie merge generic and specific artifact when building the specific artifact. -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: surefire doesn't detect failed tests. (forkMode = always and jdk1.4)
I have sometimes experienced this when a test did System.exit(), thus shutting down the Surefire JVM. Stefan Benoit Decherf wrote: Hi When I execute mvn deploy (from continuum), The surefire reports show that there are errors, but the execution doesn't fail : In the output I have: Results : Failed tests: Tests in error: Tests run: 212, Failures: 24, Errors: 8, Skipped: 0 [INFO] [jar:jar] That's strange. It show that some tests fails, but it doesn't show which tests fails and it doesn't fails the execution. The exact command is : mvn clean deploy -e --batch-mode The configuration to reproduce it is forkMode=always and jdk1.4. If I use jdk1.6, it works and if I use forkMode=once it also works. (but the list of failed tests is still missing). Can I open a bug in this ? Benoit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Specific version/dependency resolving in maven
You should use version ranges[0] and/or the release plugin[1]. Stefan [0] http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution#DependencyMediationandConflictResolution-DependencyVersionRanges [1] http://maven.apache.org/plugins/maven-release-plugin/ Victor Tsoukanov wrote: I would like to use versioning based on JSR-277. They use the following format: major[.minor[.micro[.update]]][-qualifier]. Some extraxt from spec 1. Major version number should be incremented for making changes that are not backward compatible. 2. Minor version number should be incremented for making medium or minor changes that the software remains largely backward compatible, although minor incompatibilities might be possible. For example I have 3 modules: m1, m2 and m3 (m2 and m3 depends on m1). But m2 depends on m1 with version 1.0.0.0 and m3 depends on 1.1.0.0. As you see the changes in m1 are "largely backward compatible" - it means I can compile m2 and m3 with m1(1.1.0.0). When I try to compile it in maven m3 was compiled with m1(1.1.0.0) and m2 was compiled with m1(1.0.0.0) since they declared such dependencies, but I would like that maven compile both modules with last version of m1(1.1.0.0). As I know for this cases maven suggests to use snapshot, but I would like to have version history in my repository. Could somebody help me how could I implement such behavior in maven. Thanks - 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: maven release:perform get java.lang.OutOfMemoryError
Nick Stolwijk wrote: documentation page [1] and then especially the additionalJOption Doesn't even need to. There is a maxmemory option. Stefan [1] http://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Wed, Aug 20, 2008 at 9:13 AM, hackaton <[EMAIL PROTECTED]> wrote: Hi, When I try to release:perform I got java.lang.OutOfMemoryError javadoc: java.lang.OutOfMemoryError: Please increase memory. For example, on the Sun Classic or HotSpot VMs, add the option -J-Xmx such as -J-Xmx32m. How can I increase the heap size for the javadoc? -- View this message in context: http://www.nabble.com/maven-release%3Aperform-get-java.lang.OutOfMemoryError-tp19064014p19064014.html 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] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simplest possible http repo setup?
Hi, do you really need HTTP PUT for your repo? Can you not do scp or even file? Also, maybe you want to use maven-proxy, which is old, but very lightweight, stable and and can serve from a custom repository plus acts as a cache for repo1 (central), which saves you bandwidth and time. Also, it is very easy to configure. Stefan Todor Boev wrote: Hello, I'm a maven uber-newby. Been playing with it since 2 days ago :) Currently I need to set up an HTTP visible maven repo on a resource constrained box. It has some linux - don't know the distro, and an old Apache 1.3 web server. I tried to simply designate a directory to be the repo and made it accessible via the apache (enabled indexing for the dir). As expected maven could download from that directory but could not put jars back into into it (HTTP PUT doesn't work). I need to know if it is possible to just tweak apaches config a bit more to make the repo fully functional. I hope I don't need to deploy something like Nexus - it doesn't leave enough resources for the elaborate Ant-based build system that also lives on the linux box (pentium III, 512 mb ram, 8gb hdd) Cheers, Todor - 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: Dependency report fails
I added a comment to the bug showing how to disable the dependencies report. HTH, Stefan On Wed, 12 Nov 2008 07:14:46 -0500 "EJ Ciramella" <[EMAIL PROTECTED]> wrote: > Can the dependency report be configured to skip a series of > depenencies? > > If it can, I don't see a way... > > -Original Message- > From: EJ Ciramella [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 11, 2008 4:35 PM > To: users@maven.apache.org > Subject: Dependency report fails > > http://jira.codehaus.org/browse/MPIR-142 > > Any movement on this particular bug at all (or suggested workaround)? > > - > 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: Running ALL tests and fail at the END
"mvn test --fail-at-end" or "mvn test -fae" "mvn -h" also helps regards, Stefan On Tue, 10 Feb 2009 01:35:48 -0800 (PST) Peter Meier wrote: > > In my Maven project I have several modules which all have tests. If I run the > tests and one module fails, then the execution is cancelled. But I want that > the tests of ALL modules are executed and then at the end I want a > notification that some tests have failed. > > I have tried it with setting the "testFailureIgnore" option on my pom.xml: > > >true > > > But in this case "mvn test" will return successfully: > [...] > [INFO] > [INFO] > > [INFO] Reactor Summary: > [INFO] > > [INFO] Module A .. SUCCESS > [4.520s] > [INFO] Module B ... SUCCESS > [4:06.863s] > [INFO] Module C . SUCCESS > [14.553s] > [INFO] Module D . SUCCESS > [10.785s] > [INFO] > > [INFO] > > [INFO] BUILD SUCCESSFUL > [INFO] > > [INFO] Total time: 4 minutes 28 seconds > [INFO] Finished at: Tue Feb 10 09:15:56 CET 2009 > [INFO] Final Memory: 36M/69M > [INFO] > > > All module tests return "success" even though for example "Module B" failed. > (without setting "testFailureIgnore" option only tests of "Module B" are > executed) > > Is there any other option to achieve that all tests are executed with a fail > notification at the end? > (I have also played around with 'maven.test.haltafterfailure' but it seemed > not to have any effect) > > Thanks for any help! -- Mit freundlichen Grüßen, Stefan Seidel Software-Entwickler VUB Printmedia GmbH Chopinstraße 4, 04103 Leipzig tel.+49 (341) 9 60 50 93 fax.+49 (341) 9 60 50 92 mail. ssei...@vub.de web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven Integration for Eclipse - does it support modules?
You have to do: right click on project -> Maven -> Enable nested modules HTH, Stefan On Wed, 18 Feb 2009 00:45:11 + sebb wrote: > I tried enabling Maven Dependency Management on a project with modules > (Surefire 2.4.3) and the dependencies from the top-level project were > added OK, but none of the dependencies for any of the modules were > added. > > Is this the expected behaviour? Or is it a bug? > > If if is expected, how can one use the plugin with modules? > > [Using version 0.0.12.20071107-2300 in Eclipse 3.4.1] > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > -- best regards Stefan Seidel Software Developer VUB Printmedia GmbH Chopinstraße 4, D-04103 Leipzig tel.+49 (341) 9 60 50 93 fax.+49 (341) 9 60 50 92 mail. ssei...@vub.de web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Recursive Dependency versions problem ?
You should look at the tag for dependencies[1]. Using this, you can exclude commons-collections from the ZK framework dependency. Stefan [1] http://maven.apache.org/pom.html#Exclusions On Wed, 18 Feb 2009 14:55:21 +0900 Ashika Umanga Umangiliya wrote: > Greetings all, > > > Here is the scenario: > > I have two projects > > 1) homology : uses Velocty 1.5 as a dependency in POM. (Velocity 1.5 has > **commons-collections-3.1** in dependency list) > > 2) Mysizouka (a web application) : Has ZK webframework in dependency (ZK has > **commons-collections-2.1 in dependency list > > : Mysizouka uses 'homology' > as a dependency. > > First, when I build WAR, 'lib' folder contained the > 'commons-collections-2.1' which comes from ZK.So application gave a > java.lang.NoClassDefFoundError: org/apache/commons/collections/map/LRUMap, > because Velocity needs 3.1. > > Then in Mysizouka POM I added 'commons-collections-3.1' in the dependency > list. > Now when I build the WAR is contains both 'commons-collections-3.1' and > 'commons-collections-2.1' ?? > How to resolve this? I only need 1.3 ? > -- > Here an illustration to show the scenario: > > > homology --> needs Velocity 1.5 ->uses commons-collections-3.1 > > MySizouka --> needs ZK framework ---> uses commons-collections-2.1 > | -> needs 'homology' ~~~Velocity~~> need commons-collections-3.1 -- Mit freundlichen Grüßen, Stefan Seidel Software-Entwickler VUB Printmedia GmbH Chopinstraße 4, 04103 Leipzig tel.+49 (341) 9 60 50 93 fax.+49 (341) 9 60 50 92 mail. ssei...@vub.de web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Exclude properties in certain situations
Just use a profile[1]. There is tons of information & posts out there about the possibilities :) Stefan [1] http://maven.apache.org/pom.html#Profiles On Fri, 20 Feb 2009 01:18:09 -0800 (PST) "Mathias P.W Nilsson" wrote: > > Hi, > > I'm using Spring, Eclipse and maven2 as build tool. In my development > environment I use a Spring property overrider to set certain properties for > my computer whereas my co-workers use their. > > The problem is when we do mvn clean:clean install. The my.properties is > included and will of course override spring. If I alter the pom file > > > false > src/main/resources > > **/my.properties > > > > The war file will be ok but when deployed with eclipse on tomcat the > my.properties will be exluded. Is there a way to include, exclude this file > in certain situations. Is pretty annoing to go back and comment out lines in > the pom for deployment. -- Mit freundlichen Grüßen, Stefan Seidel Software-Entwickler VUB Printmedia GmbH Chopinstraße 4, 04103 Leipzig tel.+49 (341) 9 60 50 93 fax.+49 (341) 9 60 50 92 mail. ssei...@vub.de web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to add a jar file to a ear with Maven?
Hi, you setup is a bit weird. To correct way to implement this is to set up an extra pom.xml (module) which has ear and a dependency to my_child_project. Then the EAR will build correctly because it complies with the Maven rule: one pom.xml, project, module, whatever you call it, produces one output file (artifact). HTH, Stefan On Fri, 6 Mar 2009 07:05:23 + Fredrik Andersson wrote: > > How to add a jar file to a ear with Maven > Hello! > > I have a small ejb-app in a project (my_child_project). > But when I try to build the ear I do not manage to get it inside. > Bellow is my pom.xml > > http://maven.apache.org/POM/4.0.0"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/xsd/maven-4.0.0.xsd";> > > home > my_parent_project > 1.0 > ../my_parent_project/pom.xml > > > 4.0.0 > home > my_child_project > jar > 1.0 > my_child_project > http://maven.apache.org > > > junit > junit > 3.8.1 > test > > > > home > my_other_child_project > 1.0 > > > > > > > org.apache.maven.plugins > maven-compiler-plugin > 2.0.2 > > 1.5 > 1.5 > > > > org.apache.maven.plugins > maven-ejb-plugin > > 3.0 > my_child_project_jar_server > > ${project.build.outputDirectory} > true > > > > maven-ear-plugin > > my_child_project_ear_server > > > home > my_child_project > > > > > > > > > > > When I run: > mvn clean install > ...I get: > my_child_project.jar > > When I run: > mvn ejb:ejb > ...I get: > my_child_project_jar_server.jar > my_child_project_jar_server-cleint.jar > > > But when I try: > mvn ear:generate-application-xml > ...or... > mvn ear:ear > > I get an error about > [INFO] Artifact[jar:home:my_child_project] is not a dependency of the project. > > It seems like Maven does not like to put the project it self into the ear? > > Any comments is most welcome! > Best regards > Fredrik > > _ > Drag n’ drop—Get easy photo sharing with Windows Live™ Photos. > > http://www.microsoft.com/windows/windowslive/products/photos.aspx - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven-copy-plugin
Hi, for Maven artifacts, we use the dependency plugin. For plain files, we use the antrun plugin and the copy task. For deployment we use a deploymentRepository with file:/// or scp:// location. Stefan On Fri, 6 Mar 2009 15:39:10 +0530 Vishal Pahwa wrote: > > Hi All > > Just wanted to know is maven-copy-plugin still exist in maven repositories or > it has been obsolete. > > If not then can anyone please tell me what other plugin can be used to copy > some files from one location to other. > > Regards > > Vishal > -- Mit freundlichen Grüßen, Stefan Seidel Software-Entwickler VUB Printmedia GmbH Chopinstraße 4, 04103 Leipzig tel.+49 (341) 9 60 50 93 fax.+49 (341) 9 60 50 92 mail. ssei...@vub.de web.www.vub.de VUB Printmedia GmbH HRB Köln 24015 GF Dr. A. Preuss Neudorf, Dr. C. Preuss Neudorf - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to perform a deploy only
I don't really see the problem here. mvn clean install && mvn deploy:deploy I'm sure there is an equivalent if you're building under Windows. Stefan On Wed, 25 Mar 2009 21:37:29 -0500 Jim McCaskey wrote: > I have a whole bunch of components that are mostly interrelated but > consumable individually by downstream builds. If I run deploy it basically > starts deploying as it goes, so if a downstream component breaks for some > reason then I am left with half of the components updated in the maven repo > and half not. That's not really what we want. > > So ideally, we would run a build/test, make sure it all gets through > completely, then deploy the resulting artifacts. > > -Jim > > -Original Message- > From: Brian E. Fox [mailto:bri...@reply.infinity.nu] > Sent: Wednesday, March 25, 2009 9:20 PM > To: Maven Users List > Subject: RE: How to perform a deploy only > > This really isn't a supported use case. Deploy is a phase and by > definition all earlier phases run before the one you've asked for. Why > would you not want to build before you deploy? > > -Original Message- > From: Jim McCaskey [mailto:jim.mccas...@pervasive.com] > Sent: Wednesday, March 25, 2009 10:17 PM > To: 'users@maven.apache.org' > Subject: How to perform a deploy only > > Hello all, > > I have several components all built from a top level pom. This works > great for accelerating users to be able to build a lot of stuff quickly > but is giving me some fits when trying to deploy. Up to this point I > have been using deploy:deploy-file to get built components into our > local repository after a full build is successful, but this is labor > intensive. > > I would like to be able to run some variation of "mvn deploy" from the > top level. I have figured out how to skip things using the FAQ here: > > http://maven.apache.org/plugins/maven-deploy-plugin/faq.html#skip > > But I do NOT want it to do anything other than deploy. I have googled > for this but have not turned up anything useful. I was surprised that > the documentation does not suggest how to do this. This is the correct > deploy documentation I think. > > http://maven.apache.org/plugins/maven-deploy-plugin/ > > Anyway, any help would be appreciated. > > Thanks! > > -Jim > > > - > 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 > -- Mit freundlichen Grüßen, Stefan Seidel Software-Entwickler VUB Printmedia GmbH Chopinstraße 4, 04103 Leipzig tel.+49 (341) 9 60 50 93 fax.+49 (341) 9 60 50 92 mail. ssei...@vub.de web.www.vub.de VUB Printmedia GmbH HRB Köln 24015 GF Dr. A. Preuss Neudorf, Dr. C. Preuss Neudorf - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to perform a deploy only
y=true deploy > > > > That would be about perfect. :) > > > > Would this even be consider for an enhancement request if I opened it? > > Perhaps I am the only one interested in such a thing. > > > > Thanks! > > > > -Jim > > > > -Original Message- > > From: Edelson, Justin [mailto:justin.edel...@mtvstaff.com] > > Sent: Wednesday, March 25, 2009 9:55 PM > > To: Maven Users List > > Subject: RE: How to perform a deploy only > > > > Brian can pitch his own stuff far better than I can, but this kind of > > transactional deployment can be done with Nexus' Staging feature. > > > > I realized after I sent my deploy:deploy suggestion that it probably > > wouldn't work without running at least the package phase, sorry to give > > you bad info. I'm reasonably confident with some light hacking you could > > write a plugin that essentially faked the build, but if the below is > > your use case and you can afford Nexus Pro, it's probably a better > > solution. > > > > Justin > > > > > > > > > > From: Jim McCaskey [mailto:jim.mccas...@pervasive.com] > > Sent: Wed 3/25/2009 10:37 PM > > To: 'Maven Users List' > > Subject: RE: How to perform a deploy only > > > > > > > > I have a whole bunch of components that are mostly interrelated but > > consumable individually by downstream builds. If I run deploy it > > basically starts deploying as it goes, so if a downstream component > > breaks for some reason then I am left with half of the components > > updated in the maven repo and half not. That's not really what we want. > > > > So ideally, we would run a build/test, make sure it all gets through > > completely, then deploy the resulting artifacts. > > > > -Jim > > > > -Original Message- > > From: Brian E. Fox [mailto:bri...@reply.infinity.nu] > > Sent: Wednesday, March 25, 2009 9:20 PM > > To: Maven Users List > > Subject: RE: How to perform a deploy only > > > > This really isn't a supported use case. Deploy is a phase and by > > definition all earlier phases run before the one you've asked for. Why > > would you not want to build before you deploy? > > > > -Original Message- > > From: Jim McCaskey [mailto:jim.mccas...@pervasive.com] > > Sent: Wednesday, March 25, 2009 10:17 PM > > To: 'users@maven.apache.org' > > Subject: How to perform a deploy only > > > > Hello all, > > > > I have several components all built from a top level pom. This works > > great for accelerating users to be able to build a lot of stuff quickly > > but is giving me some fits when trying to deploy. Up to this point I > > have been using deploy:deploy-file to get built components into our > > local repository after a full build is successful, but this is labor > > intensive. > > > > I would like to be able to run some variation of "mvn deploy" from the > > top level. I have figured out how to skip things using the FAQ here: > > > > http://maven.apache.org/plugins/maven-deploy-plugin/faq.html#skip > > > > But I do NOT want it to do anything other than deploy. I have googled > > for this but have not turned up anything useful. I was surprised that > > the documentation does not suggest how to do this. This is the correct > > deploy documentation I think. > > > > http://maven.apache.org/plugins/maven-deploy-plugin/ > > > > Anyway, any help would be appreciated. > > > > Thanks! > > > > -Jim > > > > > > - > > 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 > > > > > > > > > > > > - > > 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 > > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > -- Mit freundlichen Grüßen, Stefan Seidel Software-Entwickler VUB Printmedia GmbH Chopinstraße 4, 04103 Leipzig tel.+49 (341) 9 60 50 93 fax.+49 (341) 9 60 50 92 mail. ssei...@vub.de web.www.vub.de VUB Printmedia GmbH HRB Köln 24015 GF Dr. A. Preuss Neudorf, Dr. C. Preuss Neudorf - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Multiple projects -> one artifact
On Sun, 03 Oct 2010 17:09:54 +0200 Dirk Reske wrote: > Hello, > > this was, what I'm looking for. > Is something like this also possible for my api (normal jar files) and > ejb projects? Usually, you would want to add all the EJBs and JARs into an EAR file, so there is no reason for merging them into one file. Also, every war file usually deploys to a different context path, so again no reason to merge them together, that is exactly what EAR was invented for. Everything else is just bad design. Maven helps you in this way that when you build the EAR, it will download the dependent JARs/EJBs from the repository. Stefan > > thanks > Dirk > > Am 03.10.2010 16:55, schrieb Justin Edelson: > > Yes, you can do this with war overlays (see the docs for maven-war-plugin) > > and/or the assembly plugin. > > > > On Oct 3, 2010, at 10:27 AM, Dirk Reske wrote: > > > >> Hello, > >> > >> so I will get a separation by project type (web, ejb, ear). > >> But want I want, is a separation by functionality. > >> > >> Lets take a webshop example. > >> I have the core module, which includes the main web.xml in the web > >> sub-module, some core services in the api/impl sub-modules. > >> Than I have the admin module, which includes the webpages for the shop > >> administrators in the web submodule and the needed services in api/impl. > >> etc. > >> > >> In the end a super-web module should merge the contents of core/web, > >> admin/web, etc to one webapp. > >> A super impl module should merge the contents of the core/impl and > >> admin/impl to one ejb module > >> > >> And than a ear module should build an ear out of these thwo artifacts. > >> > >> So it should be possible that a developer only checks out the admin module > >> from the scm an have all webpages, services, entities needed by the admin > >> functionalities in the sub-modules. > >> > >> Dirk > >> Am 03.10.2010 16:07, schrieb Martin Gainty: > >>> Dirk- > >>> > >>> i would configure a separate war-artifact pom.xml in MyProject folder > >>> something like > >>>war-artifact > >>> groupId.. > >>> version.. > >>> > >>> > >>> > >>> > >>> > >>> > >>> core-web > >>> users-web > >>> admin-web > >>> > >>> > >>> for building the ear ..follow antonios advice > >>> > >>> Viel Gluck! > >>> Martin Gainty > >>> __ > >>> Verzicht und Vertraulichkeitanmerkung > >>> > >>> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene > >>> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede > >>> unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese > >>> Nachricht dient lediglich dem Austausch von Informationen und entfaltet > >>> keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit > >>> von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > >>> > >>> > >>>> Date: Sun, 3 Oct 2010 15:48:04 +0200 > >>>> Subject: Re: Multiple projects -> one artifact > >>>> From: antonio.petre...@gmail.com > >>>> To: users@maven.apache.org > >>>> > >>>> 2010/10/3 Dirk Reske: > >>>>> is it possible to build one artifact out of multiple projects. > >>>>> We are trying to modularize the development. > >>>>> > >>>>> Example: > >>>>> > >>>>> MyProject > >>>>> |-- core > >>>>> | |--api > >>>>> | |--impl > >>>>> | |--web > >>>>> |-- users > >>>>> | |--api > >>>>> | |--impl > >>>>> | |--web > >>>>> |-- admin > >>>>> | |--api > >>>>> | |--impl > >>>>> | |--web > >>>>> > >>>>> this should results in the following ear file > >>>>> myproject.ear > >>>>> |--lib/myproject-api.jar (the entity classes, service interfaces, etc) > >>>>> |--myproject-impl.ear (the ejb module) > >>>>> |--myproject-web.ear (the web module) > >>>>> > >>>>> So, if I add a module MyProject/myproject-web, is there a configuration, > >>>>> so that this war module merges the contents of the existing "*/web" > >>>>> modules to one war file? > >>>> I think that this link might answer all your questions about JEE > >>>> development with Maven: > >>>> http://docs.codehaus.org/display/MAVENUSER/Developing+JEE+projects+with+Maven > >>>> > >>>> Antonio > >>>> > >>>> - > >>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > >>>> For additional commands, e-mail: users-h...@maven.apache.org > >>>> > > -- Mit freundlichen Grüßen, Stefan Seidel Software-Entwickler VUB Printmedia GmbH Chopinstraße 4, 04103 Leipzig tel.+49 (341) 9 60 50 93 fax.+49 (341) 9 60 50 92 mail. ssei...@vub.de web.www.vub.de VUB Printmedia GmbH HRB Köln 24015 GF Dr. A. Preuss Neudorf, Dr. C. Preuss Neudorf - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to download transitive dependencies
On Fri, 3 Dec 2010 17:39:23 +0530 amaresh mourya wrote: > No, running dependency:go-offline didn't do the job. It just downloads > plug-ins and immediate dependencies. It downloads all dependencies, these are not dependencies. > > And this maven-utils-parent-1.0.pom (in my local repository) has few > > dependencies in . Is it possible to download these You should read http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Management which says "the dependency management section is a mechanism for centralizing dependency information." So, to make it more clear: these are NOT dependencies. That's why they're not downloaded with the above command. > > [...] Is there any other command which can download all dependencies > > including below ones.. Yes declare them as dependencies in your own pom.xml - because of the dependencyManagement entries, you will only need groupId, artifactId and maybe type. Stefan -- Mit freundlichen Grüßen, Stefan Seidel Software-Entwickler VUB Printmedia GmbH Chopinstraße 4, 04103 Leipzig tel.+49 (341) 9 60 50 93 fax.+49 (341) 9 60 50 92 mail. ssei...@vub.de web.www.vub.de VUB Printmedia GmbH HRB Köln 24015 GF Dr. A. Preuss Neudorf, Dr. C. Preuss Neudorf - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Limiting dependency resolution depth
Hi Mate, you can, as a workaround, download the pom.xml of your dependency and copy those dependencies into your own pom.xml (or another one which only contains those). Then change/add the "scope" of all those dependencies to "provided", which should effectively disable deeper dependency resolution. Stefan On Fri, 10 Dec 2010 12:56:49 + Mate Varga wrote: > Hello Tamas, > > 1) Sources are checked out from SVN to the local drive. > 2) Yes, missing dependencies. The problems stem from things like > missing maven-metadata files in the public repos. (I've checked that, > the repo maintainers do know about the inconsistencies, but they > refuse to fix it.) > 3) I've done all of that, and I've manually checked the online repos > -- the dependency chain is broken, -U, :purge-local-repository does > not help, and my network connection is all right. > > I could go and fetch all the required jars/wars/etc. manually and > deploy them into my internal repo, but I want to avoid that if it's > possible. > > Udv, > Mate > > > 2010/12/10 Tamás Cservenák : > > Hi, > > > > Okay, but to be able to help, we need more: > > > > 1) where are the sources you try to build? (especially POM) > > 2) what is the failure? "dependency resolution fails" as missing a > > dependency or what? > > 3) check for network failures on your side, and repeat builds with -U to > > force maven to try again (the fact that a dep was not found is cached) > > > > > > Thanks, > > ~t~ > > > > On Fri, Dec 10, 2010 at 1:22 PM, Mate Varga wrote: > > > >> Hi, > >> > >> I'm pretty new to Java and Maven, so my question may be very naive > >> and/or stupid, apologies for that. > >> I'm trying to compile an open-source project (if that matters, it's > >> https://plugins.atlassian.com/plugin/details/4832 ), which is supposed > >> to be built with Maven. I've got Maven 3 installed (Apache Maven 3.0.1 > >> (r1038046; 2010-11-23 10:58:32+)). This pretty small project > >> depends on a larger one (Atlassian JIRA), which has some Maven > >> support, but the public repos are not well maintained, and there are a > >> lot of broken dependencies, therefore the dependency resolution > >> process fails. > >> However, I have all of the first level (direct) dependencies resolved. > >> As far as my knowledge goes, it's enough to have the first level > >> dependencies to compile a Java project, and that's exactly what I > >> want. Is there a way to tell Maven to stop resolving >2 level > >> dependencies, and just try compiling the project? I tried to Google > >> for this, no luck; and the guides on mvn dependency resolution don't > >> help either. > >> > >> Thanks, > >> Mate > >> > >> - > >> 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 > -- Mit freundlichen Grüßen, Stefan Seidel Software-Entwickler VUB Printmedia GmbH Chopinstraße 4, 04103 Leipzig tel.+49 (341) 9 60 50 93 fax.+49 (341) 9 60 50 92 mail. ssei...@vub.de web.www.vub.de VUB Printmedia GmbH HRB Köln 24015 GF Dr. A. Preuss Neudorf, Dr. C. Preuss Neudorf - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Corrupt surefire booter?
Hi, Caused by: java.util.zip.ZipException: error reading zip file this is most likely because of a corrupt filesystem, or (more common) because another process updated the jar file at the same time. So for example, if you have two maven processes starting at the same time, and deciding it is time to re-download the jar, this can happen if they access the same .m2/repository. Stefan - On Tuesday 02 February 2016 14:28:17 Stefan Seidel wrote: > Hello Apache Maven community, > > In a Maven 3.3.3 and surefire 2.19 build I got this build failure on a CI > server: > > error 02-Feb-2016 01:20:27java.lang.NoClassDefFoundError: > org/apache/maven/surefire/report/LegacyPojoStackTraceWriter > error 02-Feb-2016 01:20:27at > org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:133) > error 02-Feb-2016 01:20:27Caused by: > java.lang.ClassNotFoundException: > org.apache.maven.surefire.report.LegacyPojoStackTraceWriter > error 02-Feb-2016 01:20:27at > java.net.URLClassLoader$1.run(URLClassLoader.java:370) > error 02-Feb-2016 01:20:27at > java.net.URLClassLoader$1.run(URLClassLoader.java:362) > error 02-Feb-2016 01:20:27at > java.security.AccessController.doPrivileged(Native Method) > error 02-Feb-2016 01:20:27at > java.net.URLClassLoader.findClass(URLClassLoader.java:361) > error 02-Feb-2016 01:20:27at > java.lang.ClassLoader.loadClass(ClassLoader.java:424) > error 02-Feb-2016 01:20:27at > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) > error 02-Feb-2016 01:20:27at > java.lang.ClassLoader.loadClass(ClassLoader.java:357) > error 02-Feb-2016 01:20:27... 1 more > error 02-Feb-2016 01:20:27Caused by: java.util.zip.ZipException: > error reading zip file > error 02-Feb-2016 01:20:27at java.util.zip.ZipFile.read(Native > Method) > error 02-Feb-2016 01:20:27at > java.util.zip.ZipFile.access$1400(ZipFile.java:61) > error 02-Feb-2016 01:20:27at > java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:717) > error 02-Feb-2016 01:20:27at > java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:420) > error 02-Feb-2016 01:20:27at > java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) > error 02-Feb-2016 01:20:27at sun.misc.Resource.getBytes(Resource.java:124) > error 02-Feb-2016 01:20:27at > java.net.URLClassLoader.defineClass(URLClassLoader.java:462) > error 02-Feb-2016 01:20:27at > java.net.URLClassLoader.access$100(URLClassLoader.java:73) > error 02-Feb-2016 01:20:27at > java.net.URLClassLoader$1.run(URLClassLoader.java:368) > error 02-Feb-2016 01:20:27... 7 more > error 02-Feb-2016 01:20:27Exception in thread "main" > java.lang.NoClassDefFoundError: > org/apache/maven/surefire/booter/ForkedBooter$5 > error 02-Feb-2016 01:20:27at > org.apache.maven.surefire.booter.ForkedBooter.exit(ForkedBooter.java:217) > error 02-Feb-2016 01:20:27at > org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:150) > error 02-Feb-2016 01:20:27Caused by: > java.lang.ClassNotFoundException: > org.apache.maven.surefire.booter.ForkedBooter$5 > error 02-Feb-2016 01:20:27at > java.net.URLClassLoader$1.run(URLClassLoader.java:370) > error 02-Feb-2016 01:20:27at > java.net.URLClassLoader$1.run(URLClassLoader.java:362) > error 02-Feb-2016 01:20:27at > java.security.AccessController.doPrivileged(Native Method) > error 02-Feb-2016 01:20:27at > java.net.URLClassLoader.findClass(URLClassLoader.java:361) > error 02-Feb-2016 01:20:27at > java.lang.ClassLoader.loadClass(ClassLoader.java:424) > error 02-Feb-2016 01:20:27at > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) > error 02-Feb-2016 01:20:27at > java.lang.ClassLoader.loadClass(ClassLoader.java:357) > error 02-Feb-2016 01:20:27... 2 more > error 02-Feb-2016 01:20:27Caused by: java.util.zip.ZipException: > error reading zip file > error 02-Feb-2016 01:20:27at java.util.zip.ZipFile.read(Native > Method) > error 02-Feb-2016 01:20:27at > java.util.zip.ZipFile.access$1400(ZipFile.java:61) > error 02-Feb-2016 01:20:27at > java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:717) > error 02-Feb-2016 01:20:27at > java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:420) > error 02-Feb-2016 01:20:27at > java.util.zip.InflaterInputStream.read(Inflat
Re: Building WAR files with/without EAR context
Hi, you don't usually depend on EJBs in your WARs. You should depend on ejb- client. IIRC you'll have to explicitely configure your EJB project to create an ejb-client artifact. I just tried that though, and the ejb-client JAR is still kept inside the WAR. Are you planning to deploy your WAR files also in a servlet container? Because if not, you could mark the ejb/ejb-client dependency as provided. That's how we solved that. Stefan - On Thursday 17 November 2016 15:07:31 Stefan Seidel wrote: > On 17 Nov 2016, Clemens von Musil wrote: > > We pushed a very minimal example project to a public github repo located > > here: > > > > https://github.com/kr1schan/mavenToy > > > > The project consists of an ear, two war modules, one ejb module and one > > plain jar artifact. > > Both war modules depend on the ejbmodule as well as on the jar artifact. > > SkinnyWar is enabled and configured in all conscience. > > > > After 'mvn clean package', the resulting ear shows correct handling of the > > jar dependency. > > The ejb dependency remains in both war files. > > Good to have a minimal example showing the problem! I confirm that I can > reproduce the buggy (?) behavior. > > Unfortunately I can reproduce it and can't see the error when looking > into it for 5 minutes. Don't have time for a close look right now, sorry. > > - martin
Re: How to arrange dependency management for maven reactor if child modules are versioned independently?
Hi, > So the release of submodule because of this reason is nothing significant > from the point of view of the whole platform and all the internal > dependencies should continue with the highest snapshot versions with as > small effort as possible. I hope this does makes sense. If I understand this correctly, wouldn't using version ranges solve this? We also update micro-projects often and so we use limites version ranges within major releases, so [2,3) will resolve to the latest snapshot or release of the dependency unless it had received a major upgrade from, say, 2.8 to 3.0 or even 3.0-SNAPSHOT. Regards, Stefan > > František > http://calavera.info > > Původní zpráva > Od: Ron Wheeler > Odesláno: středa, 1. července 2015 17:14 > Komu: users@maven.apache.org > Odpovědět: Maven Users List > Předmět: Re: How to arrange dependency management for maven reactor if child > modules are versioned independently? > > What is the relationship between the "independent" modules? > If a child module gets a new version, should that trigger a change for > other modules that depend on it? > It seems to me from your description, that you do care when a child > module releases a new version. > If this should trigger a change in the dependant modules, then it seems > reasonable that the parent pom should change to make this explicit. > > I would take a few seconds to think about how you want SNAPSHOTs to be > handled. > If A depends on B and B goes from 1.2.3 to 1.2.4-SNAPSHOT, do you want A > to start to depend on the SNAPSHOT immediately or to continue to use > 1.2.3 until 1.2.4 is released? > You may need to separate the dependency versions from the artifact > version if you want to keep A depending on the released version of B. > > 1.2.4-SNAPSHOT > 1.2.3 > > > This will also allow the developer of B to test the impact on module A > by setting B.current.release.version to 1.2.4-SNAPSHOT to build and test > A prior to releasing B. > > Ron > > On 01/07/2015 6:35 AM, František Řezáč wrote: > > Hi, > > I have asked a question on stackoverflow about what I thought should be a > > relatively common scenario but I didn't get an answer even though I put a > > bounty on it and published it through my social networks to wide audience. > > Since it's still unanswered after a long time, I'm sending it here as a > > last hope for solution or expert insight. > > > > http://stackoverflow.com/questions/30253133/how-to-arrange-dependency-mana > > gement-for-maven-reactor-if-child-modules-are-vers > > > > We have a reactor pom whose child modules are versioned independently, ie. > > child module declares it's own version that is independent of the version > > of the main pom. There is however a dependency between two child modules. > > How should be this dependency configured to always use the version that is > > declared by the actual module of the reactor pom? > > > > I would expect that I can set up dependency management in the root pom and > > use some implicit properties to determine the version of child modules, > > but > > the best such option I can find : > > > > ${session.projectDependencyGraph.sortedProjects[0].version} > > > > or simply > > > > ${reactorProjects[0].version} > > > > looks unreliable because the reactor order may change when new modules or > > dependencies are added. > > > > Maybe this usage scenario is discouraged by design and then I would like > > to > > know why. > > > > As is suggested in comments in original stackoverflow post, declaring a > > global properties with child versions in parent POM may be an option for > > newer versions of Maven. I would however like to see some analysis with > > respect to wider consequences like workflow, releasing, directory and > > repository settings, some plugins usage (e.g. version plugin) etc. For > > example I think that direct consequence of this approach is that I would > > have to release parent module whenever any of child modules are released. > > Although this is doable, it would impact the original idea of having an > > independent versioning. -- Stefan Seidel Projektleiter IT ___ vub | Wissen mit System | Chopinstraße 4, 04103 Leipzig tel.+49 341 99 99 00 15 mail. ssei...@vub.de web.www.vub.de HRB Köln 24015 | Dr.C.Preuss-Neudorf
Multi-Module and differing artifactId
Hi, I guess this has been asked before, but is there any way to gracefully handle situations in a multi-level modular project where the artifactId does not always correspond to the folder name of the module? It's especially about the scm url and connection. So my folder structure is like this: +/ = org.test:parent ++/childA = org.test.parent:childA ++/childB = org.test.parent:childWithOtherName Now the scm url for childWithOtherName will always be the one from the parent with "/childWithOtherName" appended, and there is no way I can force it to use "/childB", unless I specify the whole path, which is tedious with large projects. I even tried to use ${project.parent.scm.connection}, which evaluates fine with help:evaluate, but will not expand when used in the scm connection. Any help? Stefan -- best regards, Stefan Seidel Software developer VUB Printmedia GmbH Chopinstraße 4, 04103 Leipzig tel.+49 (341) 9 60 50 93 fax.+49 (341) 9 60 50 92 mail. ssei...@vub.de web.www.vub.de VUB Printmedia GmbH HRB Köln 24015 GF Dr. A. Preuss Neudorf, Dr. C. Preuss Neudorf - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Multi-Module and differing artifactId
On Thu, 18 Aug 2011 14:00:26 -0500 Wayne Fay wrote: > > I guess this has been asked before, but is there any way to > > gracefully handle situations in a multi-level modular project where > > the artifactId does not always correspond to the folder name of the > > module? > > Maven operates under certain conventions. This is not the convention, > thus it is not well supported. > > > parent with "/childWithOtherName" appended, and there is no way I > > can force it to use "/childB", unless I specify the whole path, > > which is tedious with large projects. > > This is the "not well supported" aspect. I'm not even sure how good of > an idea this is. Why can't you just change the artifactId or the > module name?? Well, I'll resort to this, but it is quite cumbersome. On artifact level, groupId+artifactId is a unique id, but effectively, only artifactId needs to be unique (resulting filenames are only constructed from the artifactId). So I could have +/ = org.test:parent +/ejb= org.test.parent:ejb +/ejb/common = org.test.parent.ejb:common-ejbs +/war= org.test.parent:war +/war/common = org.test.parent.war:common-wars but I really am forced to use the unique artifactId in the directory as well: +/= org.test:parent +/ejb = org.test.parent:ejb +/ejb/common-ejbs = org.test.parent.ejb:common-ejbs +/war = org.test.parent:war +/war/common-wars = org.test.parent.war:common-wars This is just duplicate information and strange, but that's like it with conventions... Thanks for your comments, Stefan > > Wayne > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- best regards, Stefan Seidel Software developer VUB Printmedia GmbH Chopinstraße 4, 04103 Leipzig tel.+49 (341) 9 60 50 93 fax.+49 (341) 9 60 50 92 mail. ssei...@vub.de web.www.vub.de VUB Printmedia GmbH HRB Köln 24015 GF Dr. A. Preuss Neudorf, Dr. C. Preuss Neudorf - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Multi-module site, why must I do "mvn clean install site"?
Hi, contrary to MSITE-171, I would say that this is not a bug. mvn site is for building the site, not the code. If you want fresh code coverage reports/surefire tests, of course you will have to run mvn install before - it's not a bug. Any standard site build will work just as fine without. It's mainly a question of understanding how maven works. Stefan Paul G wrote: Why do I have to run install to get a multi-module project to work correctly? Is this a bug? -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven 2 + cargo plugin
Hi, in your parent project, define the pluginManagement: org.codehaus.cargo cargo-maven2-plugin ... (your configuration) redeploy deployer-redeploy This defines an execution of the plugin phase (deployer-redeploy). Then, in the sub-projects, define org.codehaus.cargo cargo-maven2-plugin redeploy test (you may need to change the phase) This will use the previously defined execution and run it in the given phase. Then, when you do mvn install on the parent project, it will execute the test-phase (among others) of the child projects and your goal will run. Stefan Urooj Khan wrote: hi everyone i have a project with three sub-projects which are web apps... i am currently using cargo to deploy each web app project and have the individual pom.xml and profiles.xml configured... i am trying to figure out what command i can use when building the parent project that will be the equivalent of calling something like: mvn cargo:deployer-redeploy -Pdev on each individual project -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Packaging of test-jar
The test-jar is not built when tests are skipped. Stefan James Clinton wrote: A module (B) isn't compiling because maven is skipping the packaging of test-jar in a dependant module (A). test-jar The goal above if declared as part of the profile in the module (A) but Skipping packaging of the test-jar is always outputted. Advice appreciated. J -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Executing a hook before reading a POM
Hi, use myValue if you want to set fixed properties for the build process. You may also want to have a look at how to use profiles. regards, Stefan [EMAIL PROTECTED] wrote: Hi to all, I am trying to find out how I can get maven to execute a hook before it reads the POM file. But it seems that unless you go in and modify the maven source code, at a user level, there is nothing to be done. I am trying to execute the hook since maven doesn't replace variables within the POM. And I need this information to be statically available within our internal repositories. 1. Is there a "smart" way to get maven to execute hooks? 2. Am I a little far fetched for trying to implement a hook to do something that Ant could do to pre-process the POM file? Thanks in advance, Fernando - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Order of executing plugins changed in 2.0.9 ?
Hi, AFAIK, the execution of plugins in the same phase is not consistent. We have used 6 different phases to ensure the ordering is correct. See http://cvs.peopleware.be/training/maven/maven2/buildLifecyclePhases.html for a good list. Stefan Bernhard David wrote: Hello, in maven 2.0.8 I can put the following in a pom to execute first cargo:start then cargo:deploy in the pre-integration-test phase. In 2.0.9, maven executes deploy first, which breaks the build. Declaring the plugin once and having two entries in the doesn't help. org.codehaus.cargo cargo-maven2-plugin start-container pre-integration-test start org.codehaus.cargo cargo-maven2-plugin deploy pre-integration-test deploy ** Shouldn't an entry like start deploy force maven to do start first, then deploy? Is there a way to influence this - or, what are the rules for execution order of plugins in a phase? David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Order of executing plugins changed in 2.0.9 ?
Max Bowsher wrote: Bernhard David wrote: in maven 2.0.8 I can put the following in a pom to execute first cargo:start then cargo:deploy in the pre-integration-test phase. In 2.0.9, maven executes deploy first, which breaks the build. VUB Stefan Seidel wrote: > AFAIK, the execution of plugins in the same phase is not consistent. I was under the impression that there was ordering of lifecycle bound executions first, then executions from each pom in a parent-child hierarchy in that order, and within each pom, in declaration order. Am I just imagining things? Actually, according to http://docs.codehaus.org/display/MAVENUSER/introduction-to-the-lifecycle you are right: When multiple executions are given that match a particular phase, they are executed in the order specified in the POM, with inherited executions running first. In practice and to my knowledge and experiences, it has never been like that. regards, Stefan -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Order of executing plugins changed in 2.0.9 ?
Wendy Smoak wrote: On Wed, Apr 16, 2008 at 7:22 AM, Bernhard David <[EMAIL PROTECTED]> wrote: Hello, after some long hours with the debugger, I discovered the following. If I define a plugin twice like this: What happens if you put both s in the same ? I see you've already solved it by consolidating even further, to one execution with two goals. I'm trying to think of a situation where you'd need to declare a plugin twice in one phase-- usually multiple executions are fine. The problem is: if it doesn't work with the same plugin twice, it will most probably not work with two different plugins - that's what I had here. Stefan -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: build ear problem
You have the same group and artifact id for your ejb and your war file. This cannot work, because the one will overwrite the other. Stefan neo anderson wrote: Env: jboss 4.2.2GA/ Debian lenny testing/ jdk 1.6.0_01/maven 2.0.7 I try to create an ear file via maven, but it issues error reporting that it requires to download sub porjects (web and ejb, etc.) first. The message is as below. It looks like repository problem. Though I can download it manually, I prefer to get it done automatically because last time I create ear file maven successfully except the target application server is geronimo, not jboss (but i can't remember exactly what i did to get it work). So hope someone can give me advice. [code] ... [INFO] Downloading: http://repo1.maven.org/maven2/net/sf/sample/sample-web/0.1/sample-web-0.1.jar [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) net.sf.sample:sample-web:ejb:0.1 Try downloading the file manually from the project website. ... [/code] The way how I create ear project is through executing command 'mvn arcetype:create -DgropuId=net.sf.sample -DartifactId=sample -Dversion1.0' Then modifing the pom.xml (in ear folder) [code] 4.0.0 sample net.sf.sample 0.1 sample-ear sample-ear ear 0.1 http://maven.apache.org junit junit 3.8.1 test net.sample sample-web 0.1 war net.sample sample-web 0.1 ejb maven-ear-plugin Sample Project Sample EAR artifact 5 net.sf.sample sample-middleware sample-middleware-0.1.jar net.sf.sample sample-web sample-web-0.1.jar [/code] I can build ejb3 and web sub-projects successfully (execute 'mvn package' command and they work in jboss env). What part I may miss in ear pom.xml file? Thank you very much. -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I cannot write a mail to the maven-users mailing list
Hi, can anyone help me? My totally normal mail is regarded as spam. Why? Just because I have a complaint about maven? Stefan Seidel -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel. +49 (341) 9 60 50 07 fax. +49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web. www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I cannot write a mail to the maven-users mailing list
Well, I don't use anything. The problem is the apache mail server rejecting my message body. I think I'll just have to try changing the message text until it is accepted... Stefan Jeff MAURY wrote: What mail tool and anti spam are you using ? gmail is fine for me. Jeff On Jan 28, 2008 12:17 PM, VUB Stefan Seidel <[EMAIL PROTECTED]> wrote: Hi, can anyone help me? My totally normal mail is regarded as spam. Why? Just because I have a complaint about maven? Stefan Seidel -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel. +49 (341) 9 60 50 07 fax. +49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web. www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel. +49 (341) 9 60 50 07 fax. +49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web. www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
M2 multi-project site build is broken
Hi, I don't know if anyone else noticed this, but the mvn site keeps on getting worse. It first started out with the following phenomenon: during site build, for each project _all_ the projects were iterated, usually saying [INFO] No goals needed for project - skipping Then, we started using xmlbeans and it started doing xmlbeans:xmlbeans for each project. And now, it executes _all_ the tests of _all_ project for _each_ project. Well, you can imagine that this is pretty much undoable for a project like ours with 150+ modules. Here some sample outputs from the attached project (1 parent, 2 modules, 1 test per module) > mvn clean site | grep Running | wc -l 6 ---> this means the two tests are executed 3 times each!! > mvn clean site | grep xmlbeans | wc -l 29 ---> this means, xmlbeans is being executed 26 times, 9 times per project!!! Hello? Is anyone _using_ maven 2 & site generation? This situation is that it is becoming totally unusable. The problem is, I don't even know where to report the bug, because it seems to be a combination of bugs. regards, Stefan Seidel P.S.: I have removed the attached project, to see whether this is causing the apache mail server to reject my mail. You can find it at http://stefanseidel.info/mvnexec.zip -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: surefire-report-plugin running tests of all dependent modules again?
| [INFO] No goals needed for project - skipping | [INFO] | [INFO] Building search-engine-webapp | [INFO] | [INFO] No goals needed for project - skipping | [INFO] | [INFO] Building setup | [INFO] | [INFO] No goals needed for project - skipping | [INFO] | [INFO] Building util-http | [INFO] | [INFO] No goals needed for project - skipping | [INFO] | [INFO] Building upnp | [INFO] | [INFO] No goals needed for project - skipping | [INFO] | [INFO] Building upnp-ssdp | [INFO] | [INFO] No goals needed for project - skipping | [INFO] | [INFO] Building uit-impl-swt | [INFO] | [INFO] No goals needed for project - skipping | [INFO] | [INFO] Building uit-demo | [INFO] | [INFO] No goals needed for project - skipping | [INFO] | [INFO] Building value-core | [INFO] | [INFO] No goals needed for project - skipping | [INFO] | [INFO] Building value-context | [INFO] | [INFO] No goals needed for project - skipping | [INFO] | [INFO] Building value-main | [INFO] | [INFO] No goals needed for project - skipping | | This happens again and again. I havent seen those sections before I purged my | local repository. | | Please let me know if you have an idea, what could cause my problem or how | I can figure out more details. | | Thanks | ~ Jörg |> - - 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] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHnld7mPuec2Dcv/8RAvAcAJ4omDsj2MyGMiiKYG9KsZwPOJpAcQCfSopp KETGX5nhW43AxIAcxiLuxas= =QXnI -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel. +49 (341) 9 60 50 07 fax. +49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web. www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: M2 multi-project site build is broken
Ok, but what about the Surefire tests being run way too often? Is this not a more general error? Stefan Dennis Lundberg wrote: This sounds like something to report in JIRA for the xmlbeans plugin. http://jira.codehaus.org/browse/MXMLBEANS VUB Stefan Seidel wrote: Hi, I don't know if anyone else noticed this, but the mvn site keeps on getting worse. It first started out with the following phenomenon: during site build, for each project _all_ the projects were iterated, usually saying [INFO] No goals needed for project - skipping Then, we started using xmlbeans and it started doing xmlbeans:xmlbeans for each project. And now, it executes _all_ the tests of _all_ project for _each_ project. Well, you can imagine that this is pretty much undoable for a project like ours with 150+ modules. Here some sample outputs from the attached project (1 parent, 2 modules, 1 test per module) > mvn clean site | grep Running | wc -l 6 ---> this means the two tests are executed 3 times each!! > mvn clean site | grep xmlbeans | wc -l 29 ---> this means, xmlbeans is being executed 26 times, 9 times per project!!! Hello? Is anyone _using_ maven 2 & site generation? This situation is that it is becoming totally unusable. The problem is, I don't even know where to report the bug, because it seems to be a combination of bugs. regards, Stefan Seidel P.S.: I have removed the attached project, to see whether this is causing the apache mail server to reject my mail. You can find it at http://stefanseidel.info/mvnexec.zip -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel. +49 (341) 9 60 50 07 fax. +49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web. www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Make META-INF optional
Would it help to create a ZIP file with the maven assembly plugin[1]? regards, Stefan P.S.: I just saw, the assembly plugin can also create JARs - so it's probably just what you need. [1] http://maven.apache.org/plugins/maven-assembly-plugin/ John Coleman wrote: Hi, Is it possible to make a jar with no META-INF entry - I just want to create a jar to unpack with some files I need. TIA, John Eurobase International Limited and its subsidiaries (Eurobase) are unable to exercise control over the content of information in E-Mails. Any views and opinions expressed may be personal to the sender and are not necessarily those of Eurobase. Eurobase will not enter into any contractual obligations in respect of any part of its business in any E-mail. Privileged / confidential information may be contained in this message and /or any attachments. This E-mail is intended for the use of the addressee(s) only and may contain confidential information. If you are not the / an intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you receive this transmission in error, please notify us immediately, and then delete this E-mail. Neither the sender nor Eurobase accepts any liability whatsoever for any defects of any kind either in or arising from this E-mail transmission. E-Mail transmission cannot be guaranteed to be secure or error-free, as messages can be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or incomplete. Eurobase does not accept any responsibility for viruses and it is your responsibility to scan any attachments. Eurobase Systems Limited is the main trading company in the Eurobase International Group; registered in England and Wales as company number 02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex CM2 0RE, UK. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel. +49 (341) 9 60 50 07 fax. +49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web. www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Make META-INF optional
Hi John, no, the assembly plugin can also generate just one single zip file. I use packaging _pom_ and this plugin def: maven-assembly-plugin package single src/main/assembly/upload.xml On the other hand, there is an older maven zip plugin. Stefan John Coleman wrote: Thanks, I was hoping to avoid assembly plugin because it seems to be added to a jar project. A direct zip plugin would make more sense, but that's not a maven standard. John -Original Message- From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED] Sent: 29 January 2008 09:44 To: Maven Users List Subject: Re: Make META-INF optional Would it help to create a ZIP file with the maven assembly plugin[1]? regards, Stefan P.S.: I just saw, the assembly plugin can also create JARs - so it's probably just what you need. [1] http://maven.apache.org/plugins/maven-assembly-plugin/ John Coleman wrote: Hi, Is it possible to make a jar with no META-INF entry - I just want to create a jar to unpack with some files I need. TIA, John Eurobase International Limited and its subsidiaries (Eurobase) are unable to exercise control over the content of information in E-Mails. Any views and opinions expressed may be personal to the sender and are not necessarily those of Eurobase. Eurobase will not enter into any contractual obligations in respect of any part of its business in any E-mail. Privileged / confidential information may be contained in this message and /or any attachments. This E-mail is intended for the use of the addressee(s) only and may contain confidential information. If you are not the / an intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you receive this transmission in error, please notify us immediately, and then delete this E-mail. Neither the sender nor Eurobase accepts any liability whatsoever for any defects of any kind either in or arising from this E-mail transmission. E-Mail transmission cannot be guaranteed to be secure or error-free, as messages can be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or incomplete. Eurobase does not accept any responsibility for viruses and it is your responsibility to scan any attachments. Eurobase Systems Limited is the main trading company in the Eurobase International Group; registered in England and Wales as company number 02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex CM2 0RE, UK. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel. +49 (341) 9 60 50 07 fax. +49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web. www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - 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] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel. +49 (341) 9 60 50 07 fax. +49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web. www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Make META-INF optional
Did you try to declare the dependency as type zip? Stefan John Coleman wrote: Okay, I can now deploy the zip artifact to my repo - but how to I explode that into another maven project using the dependecy unpack plugin - this seems to expect a jar. TIA John -Original Message- From: Simon Kitching [mailto:[EMAIL PROTECTED] Sent: 29 January 2008 12:12 To: Maven Users List Subject: RE: Make META-INF optional That can be fixed by using the maven-buildhelper-plugin, which can attach any file to maven's list-of-deployable-files. http://mojo.codehaus.org/build-helper-maven-plugin/index.html John Coleman <[EMAIL PROTECTED]> schrieb: Ah, this does not work, since the zip will not deploy to the m2 repo in the deploy phase. -Original Message- From: John Coleman [mailto:[EMAIL PROTECTED] Sent: 29 January 2008 11:16 To: Maven Users List Subject: RE: Make META-INF optional Specifying pom packaging seems like an abuse, but if it works, then great! Thanks, John -Original Message- From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED] Sent: 29 January 2008 11:05 To: Maven Users List Subject: Re: Make META-INF optional Hi John, no, the assembly plugin can also generate just one single zip file. I use packaging _pom_ and this plugin def: maven-assembly-plugin package single src/main/assembly/upload.xml On the other hand, there is an older maven zip plugin. Stefan John Coleman wrote: Thanks, I was hoping to avoid assembly plugin because it seems to be added to a jar project. A direct zip plugin would make more sense, but that's not a maven standard. John -Original Message- From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED] Sent: 29 January 2008 09:44 To: Maven Users List Subject: Re: Make META-INF optional Would it help to create a ZIP file with the maven assembly plugin[1]? regards, Stefan P.S.: I just saw, the assembly plugin can also create JARs - so it's probably just what you need. [1] http://maven.apache.org/plugins/maven-assembly-plugin/ John Coleman wrote: Hi, Is it possible to make a jar with no META-INF entry - I just want to create a jar to unpack with some files I need. TIA, John Eurobase International Limited and its subsidiaries (Eurobase) are unable to exercise control over the content of information in E-Mails. Any views and opinions expressed may be personal to the sender and are not necessarily those of Eurobase. Eurobase will not enter into any contractual obligations in respect of any part of its business in any E-mail. Privileged / confidential information may be contained in this message and /or any attachments. This E-mail is intended for the use of the addressee(s) only and may contain confidential information. If you are not the / an intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you receive this transmission in error, please notify us immediately, and then delete this E-mail. Neither the sender nor Eurobase accepts any liability whatsoever for any defects of any kind either in or arising from this E-mail transmission. E-Mail transmission cannot be guaranteed to be secure or error-free, as messages can be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or incomplete. Eurobase does not accept any responsibility for viruses and it is your responsibility to scan any attachments. Eurobase Systems Limited is the main trading company in the Eurobase International Group; registered in England and Wales as company number 02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex CM2 0RE, UK. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany t
Re: OutOfMemoryError when running javadoc:javadoc
The correct syntax is 256m 768m regards, Stefan Ryan H. wrote: I tried the both options (additionJOption and min/maximum) to allocate 512/1024M for min/max, but i'm still getting this error when building over 40 modules ... On 1/29/08, Vincent Siveton <[EMAIL PROTECTED]> wrote: Hi Ryan My guess is that you need to increase the memory. Cheers, Vincent 2008/1/29, Ryan H. <[EMAIL PROTECTED]>: Hello, I'm getting OutOfMeoryError when running javadoc:javadoc to generate an aggregated javadoc for multiple projects, even given with these options. Any solution to this problem? 512 1024 Thanks Ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel. +49 (341) 9 60 50 07 fax. +49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web. www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ignoring test dependencies when you run maven with maven.test.skip=true
If you really wanted to not include the test dependencies, you could define a separate profile that is actived only when maven.test.skip is not true and then includes the dependencies. Stefan Rohnny Moland wrote: Thanks. maven.test.skip.exec=true is what I was looking for. Thanks again, Rohnny On Feb 4, 2008 11:31 AM, Simon Kitching <[EMAIL PROTECTED]> wrote: Simon Kitching <[EMAIL PROTECTED]> schrieb: Tests can take a long time to run, so it's useful to sometimes skip that. But compiling them is not normally something that people want to skip; checking in code that breaks the compilation of tests should almost always be a build failure. If you read the surefire documentation, it explicitly says that *running* of the tests is skipped, not compiling. And anyway, the surefire plugin has the responsibility for running the tests, but it is the maven-compiler-plugin that has the responsibility for compiling them. nicolas de loof <[EMAIL PROTECTED]> schrieb: Build your project with maven.test.skip.exec=true This will build the required test-jar dependencies but skip test execution. Thanks for pointing that out Nicolas. All this time, I had not realised that maven.test.skip was also skipping compilation of test classes! The primary documentation on the surefire plugin is not at all clear on this issue, BTW. But after drilling down into the plugin-documentation under the project reports, it does indeed say so. And in compiler plugin, after drilling down into project-reports | plugin-documenation it can be seen that this plugin uses the same flag to disable compilation of test classes - interesting. BTW, just to clarify: I misunderstood the original email in this thread: the original poster *wanted* to compile the unit tests but not run them, and was surprised when maven.test.skip also prevented compilation. As Nicolas points out, maven.test.skip.exec is the right thing to use in that case. Regards, Simon - 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] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel. +49 (341) 9 60 50 07 fax. +49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web. www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Listing of online repositories?
Hi Dan, it is very problematic, because declared plugins can declare their own repositories. I don't know why, but that is just what we have, so actually there is no way to ever control all request that maven will make. For the default repos, have a look at conf/settings.xml in your maven install directory. These are the "master" settings. You do know about mavenproxy, archiva and the like? Greetings, Stefan Allen, Daniel wrote: Hi, all. The systems security people are being a bit of a pain in the ass about Maven, as it calls out to the internet at large. So, I was wondering where in the installation I can find a full listing of the repository mirrors that Maven knows about and checks by default. Also, if there is a way to remove some of the default mirrors, to pare down the amount of security auditing paperwork that needs to be done, that would be extremely helpful. By the way, we have already set up our own repository within the intranet. We'd just like to be able to keep one or two external ones available, so that we can have Maven fetch indirect dependencies we may not know about when we make use of a new artifact. Thanks, ~Dan Allen -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel. +49 (341) 9 60 50 07 fax. +49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web. www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: parent inheritence (site plugin)
Hi Martin, we use with success. It renderes the link to the parent and links to the child modules in the parent site. From 2.0-beta-6, even with more than one level the parent links are rendered correctly. Why do you use "site site:deploy" and no just "site-deploy"? Do you have the tag declared in your submodules? regards, Stefan Ritz, Martin wrote: Hi User Group, I have a project with some submodules and generating the site of the whole project through executing of the parents level. I want to display the parent in the left navigation bar. I found the only way is to do this is the element "" in the parent which is inheritanced through the childs. This works only for the goal "site:stage" but not for my normal goal "site site:deploy". I don't want to stage the site. My goal ("site site:deploy") works fine unless the parent link in the sidebar. I tried out with some versions (last one: 2.0-beta-7-20071130.000106-1) but there is no difference. Is there another way of creating a link in the childs site to the parent site? Why is "site:stage" the only goal which works for me? --- rgds Martin Ritz BTC AG - Unit Softwaredevelopment mailto:[EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel. +49 (341) 9 60 50 07 fax. +49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web. www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: parent inheritence (site plugin)
Simon Kitching wrote: "Ritz schrieb: Hi User Group, Is there another way of creating a link in the childs site to the parent site? Why is "site:stage" the only goal which works for me? Are you sure it is the deploy that is the problem? No, I was just wondering. There is currently a bug in the maven-site-plugin that causes a module to fail to find its site.xml file if mvn was run in a parent directory. So if you have a directory tree with a pom that uses tags to point to modules in subdirectories, "mvn site-deploy" will NOT work when run in the parent dir, but will work when run in each child directory. Wow, never realized that. We use 2.0-beta-5 of the site plugin, and there it still works. Maybe you should try that too, if you can. regards, Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DbUnit plugin
Quote from http://maven-plugins.sourceforge.net/ > Maven Plugins is a collection of plugins for Apache Maven 1.x What is your dbunit configuration in your pom.xml? Stefan Julien FOROT wrote: Hi ! I have a problem with DbUnit plugin. First, why there is a maven-dbunit-plugin on http://maven-plugins.sourceforge.net/ and why there is dbunit-maven-plugin on http://mojo.codehaus.org/ ? Is it the same ? If not which is the best (I want to ba able to inject data from dataset during test phase).. Then I tried the 2 plugins : - The plugin from codehaus don't make error when running. Here the only trace I get from it : [INFO] dbunit:operation. So I believe the data is inject in the db but I can't find it.. :s - I can't install the plugin from sourceforge, I get this error message : The PluginDescriptor for the plugin Plugin [maven-plugins:maven-dbunit-plugin] was not found. That's strange because I specify version 1.6 and it check on http://repo1.maven.org/maven2/maven-plugins/ where there is a .plugin (so plugin descriptor right ?) on the 1.6 directory.. Thanks for helping me to solve my problem ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DbUnit plugin
Ok, some hints: we use 1.0-beta-1 and I do not see a tag. Stefan Julien FOROT wrote: VUB Stefan Seidel a écrit : Quote from http://maven-plugins.sourceforge.net/ > Maven Plugins is a collection of plugins for Apache Maven 1.x Ok then I have to use plugin from codehaus, thanks.. What is your dbunit configuration in your pom.xml? This is my config : org.codehaus.mojo dbunit-maven-plugin postgresql postgresql 8.2-504.jdbc3 org.postgresql.Driver jdbc:postgresql://localhost:5432/gf_demo postgres postgres test operation INSERT dbUnit/04_formulaire14000.xml Greets - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DbUnit plugin
Ok, another thought: we have in , not in and the path to the file referenced in is relative to the pom.xml. Stefan Julien FOROT wrote: VUB Stefan Seidel a écrit : Ok, some hints: we use 1.0-beta-1 Well I already used this version.. and I do not see a tag. Stefan I add it but it seems that it changes nothing.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DbUnit plugin
Hi Julien, I remember we too had problems getting it to work and debugging is hard because the plugin doesn't seem to like telling about what it's doing. All I can say is that here with MySQL, Hypersonic and SAPDB/MaxDB it works. Last difference I see is that we use "flat" format for the dbunit files. regards, Stefan Julien FOROT wrote: Jan Fredrik Wedén a écrit : I believe http://maven-plugins.sourceforge.net/ hosts Maven 1.x plugins while http://mojo.codehaus.org/ hosts Maven 2.x plugins. Thanks, Stefan already explain me that ! ;) In fact it seems that it is a bug : http://jira.codehaus.org/browse/MOJO-645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_98430 But it seems that there is no answer or fix version.. :s - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to disable Test during build
It might be better to use -Dmaven.test.skip.exec=true because otherwise the test-jar is not being built. regards, Stefan Rahul Thakur wrote: pass property -Dmaven.test.skip=true Rahul Arun P Johny wrote: Hi, Can anybody tell me how to disable execution of test phase during maven2 build. I'm using maven 2.0.7 I don't want the test phase to execute when I gaves mvn release:prepare and mvn release:perform Thank You, Arun - 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] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Conceptual Confusion about build and release process using maven.
amit kumar wrote: Hi, 1) During the development process within an iteration, how to make sure that all the module owners dependent on "a.jar" keeps up to date with the changing versions of a.jar as the development goes on until Integration Testing. Use version ranges. Developers can update versions in their modules and other developers can pick up the latest version automatically by declaring [1,). As others have recommended, "Better builds with Maven" is an excellent book about this and other topics. 2) If a module owner dependent on a.jar fails to update the version of the a.jar in the pom.xml and/or miss to commit the updated pom.xml with a contemporary version of a.jar. Continuous Integration at Continuum would suffer( assuming that even with not up to date version of a.jar the module still gets through build), Again, version ranges help. You developers may update the lower boundary for the version range from time to time just to make sure that the features they need in their modules are present in the modules they depend on. You should also use the release feature of continuum or the maven release plugin to make sure that the module versions are updated and the jars are being properly deployed to the repository. -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Reporting
Hi, you may consolidate single reports for all modules (like Javadoc, JXR, ...) using the "aggregate" feature of these reports. The question is, what do you really want to do? Your modules have different names for example, how do you "consolidate" that? If you are looking for a common report on JUnit tests, Checkstyle, Findbugs etc. have a look at the dashboard-maven-plugin. regards, Stefan Nagesh, Srinivas (IS Consultant) wrote: Hi All, I have a multi-project setup in maven -- Proj -- pom.xml <-- Reporting -- Proj1 -- pom.xml -- Proj2 -- pom.xml When I specify reporting in the parent pom, the reports are generated in the respective children projects. I would like to know if there is a feature to create a consolidated report of the sub project (Proj1 & Proj2)? Thanks Srini -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: release from a specific tag
and I broke the trunk. I'd like to be able to release the project in it's state of day "d" without losing the work I done. This could be useful in some cases. Is there already a way to do it ? Benoit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Updating M2_HOME/conf/settings.xml
Put /conf/settings.xml on a shared drive, or replace it with a symlink to a shared drive. Why do you need to change the settings.xml anyway? Could it not be done in a master pom that is the parent to all other poms? Then you can simply deploy the master pom and you're done. Stefan Matthew Tordoff wrote: Hi all, I just wondered if anyone has any best practises for updating the global settings.xml in Maven. I have considered checking the conf folder into SVN, or even potentially checking the whole maven install into SVN, then when changes are made send out an email and people can just do an SVN update to pick up the changes. The only disadvantage of this process is that it relies on people reading their mail and kicking off the update. I would preferably like a method of automatically publishing changes which would automatically update all developers machines. Any thoughts around this would be greatly appreciated. Regards, Matt P.S. I would also be interested on your views regarding checking in solely the settings.xml file into version control, vs checking in the whole install. _ Free games, great prizes - get gaming at Gamesbox. http://www.searchgamesbox.com -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Reporting - DashBoard-Maven-Plugin
Quote: To generate the site and the correct dashboard report, you must run the dashboard report plugin in 2 passes : # mvn site # mvn dashboard-report:dashboard You should execute these two commands on the command line. regards, Stefan Nagesh, Srinivas (IS Consultant) wrote: Hi Stefan, Thanks for your response. As you mentioned I am looking for a common report.When I try using the dashboard-maven-plugin, I ran into the following problem I went to http://mojo.codehaus.org/dashboard-maven-plugin/usage.html 1. Placed the dashboard plugin at the very end of the reporting tag. 2. Ran Maven Site. This actually generated the report before the findbugs plugin is executed. Shouldnt it supposed to run it at the last when all the other plugins have finished generating their reports? 3. Also as mentioned in the site above, what does this mean? "add the dashboard report item in the left menu". Would you happen to have a working example of the dashboard-maven-plugin? Thanks Srinivas x3126 -Original Message- From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED] Sent: Thursday, February 07, 2008 2:46 AM To: Maven Users List Subject: Re: Maven Reporting Hi, you may consolidate single reports for all modules (like Javadoc, JXR, ...) using the "aggregate" feature of these reports. The question is, what do you really want to do? Your modules have different names for example, how do you "consolidate" that? If you are looking for a common report on JUnit tests, Checkstyle, Findbugs etc. have a look at the dashboard-maven-plugin. regards, Stefan Nagesh, Srinivas (IS Consultant) wrote: Hi All, I have a multi-project setup in maven -- Proj -- pom.xml <-- Reporting -- Proj1 -- pom.xml -- Proj2 -- pom.xml When I specify reporting in the parent pom, the reports are generated in the respective children projects. I would like to know if there is a feature to create a consolidated report of the sub project (Proj1 & Proj2)? Thanks Srini -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing Native DLL's into local repository
Hi, Adamson, Eric (DIT) wrote: I'm working with the JACOB (Java-COM Bridge) library, and would like to install its artifacts -- JACOB.JAR and JACOB.DLL -- into my local repository. Installing the JAR was easy, but I'm unclear on how to handle the native library. How does one manage this correctly? If you can install a JAR, why not a DLL? What exactly doesn't work? Also, how best to search the list archives? I'm only finding posts archived by month ( at http://mail-archives.apache.org/mod_mbox/maven-users/ ) but no broad search facility. http://www.nabble.com/Maven---Users-f178.html best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: release from a specific tag
Benoit Decherf wrote: Paul Gier wrote: Sorry, I was thinking you were using svn. Maybe you should convert ;) Yes, when I said the code is the same, I meant your project code minus the changes to the pom. So maybe you would need to do something like 1. checkout the tag 2. make a branch 3. check the code from the tag into the branch 4. make the changes to the pom. Then run your maven release. I agree this is not a very nice process. Why so complicated? 1. checkout the tag 2. run maven release That will do. The release will package the files you've just checked out into the release and will tag these versions as the release version. Stefan -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Javadoc:jar error: Not executing Javadoc as the project is not a Java classpath-capable package
Hi Ryan, the thing is: in maven philosophy, it does not make sense to create an aggregate javadoc jar. A javadoc jar contains the sources for _one_ artifact, so that for that specific artifact an IDE could for example download this javadoc jar in order to have the javadoc available for all the classes in this artifact. I understand that you want all the aggregated javadoc in one file, but to do that you cannot use standard maven procedures. Just package the aggregate javadoc yourself. HTH, Stefan Ryan H. wrote: Has anyone successfully used "mvn javadoc:jar -Daggregate=true" for multiple projects? Here is the directory structure for my multiple projects: Project |-- pom.xml |-- Module1 | `-- pom.xml |-- Module2 | `-- pom.xml `-- Module3 `-- pom.xml Now, when I run "mvn javadoc:jar -Daggregate=true" under "Project", it always throws me this info without doing anything: *[INFO] Not executing Javadoc as the project is not a Java classpath-capable package* I downloaded the source code of maven-javadoc-plugin and added the debug statement before the above line is printed in this block of code snippet: ArtifactHandler artifactHandler = project .getArtifact().getArtifactHandler(); *if* ( !"java".equals( artifactHandler.getLanguage() ) ) { getLog().info("problematic artifact is: " + project.getArtifactId() + ", language: " + artifactHandler.getLanguage()); getLog().info( "Not executing Javadoc as the project is not a Java classpath-capable package" ); } And it turned out to be complaining about "Project", whose "packing type" is "pom" and "language" is "none": [INFO] [javadoc:jar] [INFO] problematic artifact is: Project, language: none [INFO] Not executing Javadoc as the project is not a Java classpath-capable package Am I missing something? Anyone has a clue? Thanks On 1/29/08, Ryan H. <[EMAIL PROTECTED]> wrote: I stripped out all modules and run it again. It still complains as shown below: D:\maven1\test>mvn javadoc:jar -Daggregate=true [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'javadoc'. WAGON_VERSION: 1.0-beta-2 [INFO] [INFO] Building Foundations POM [INFO]task-segment: [javadoc:jar] (aggregator-style) [INFO] [INFO] Preparing javadoc:jar [INFO] [INFO] Building MyProjects POM [INFO] [INFO] No goals needed for project - skipping *[INFO] [javadoc:jar] [INFO] Not executing Javadoc as the project is not a Java classpath-capable package *[INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 1 second [INFO] Finished at: Tue Jan 29 17:42:20 PST 2008 [INFO] Final Memory: 7M/508M [INFO] On 1/29/08, Ryan H. <[EMAIL PROTECTED]> wrote: Hi Vincent, I invoke javadoc:jar from my top level POM whose package type is "pom". All modules included are java projects and their packaging types are "jar" across the board ... On 1/29/08, Vincent Siveton <[EMAIL PROTECTED]> wrote: Hi Ryan, What is your packaging type of your project (or subprojects)? It seems it is not a java one. Cheers, Vincent 2008/1/29, Ryan H. <[EMAIL PROTECTED]>: Hello, Anyone knows what this javadoc:jar complains about? I'm able to run javadoc:javadoc in "aggregate" mode (ie. generate only one report for all multiple projects). However, when I run javadoc:jar, it starts complaining it ... [INFO] [javadoc:jar] [INFO] Not executing Javadoc as the project is not a Java classpath-capable package Thanks Ryan ----- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Build number plugin drama
http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/install.html Clifton wrote: Hi all My buddy and I are stumbling with the buildNumber plugin and getting nowhere fast. We found the original version here: http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html Then later stumbled across the superceding version here: http://mojo.codehaus.org/buildnumber-maven-plugin/ Trying to use the codehaus version gives: [INFO] The plugin 'org.codehaus.mojo:buildnumber-maven-plugin' does not exist or no valid version could be found - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Specifying a plugin's dependency version
Actually, this is a bug. I didn't have time to file it yet, but from Maven 2.0.7 to 2.0.8 dependencies within the definition suddenly are ignored in multi-module projects. Try to declare your dependency as a normal dependency in your parent pom. Or use Maven 2.0.7. regards, Stefan Niall Pemberton wrote: I'm using the vsersion 1.2.0 of the maven-bundle-plugin from the felix project - it has a dependency on version 0.0.227 of bndlib (groupId "biz.aQute") and I wanted to try the plugin out with version 0.0.236 of bndlib. I tried specifying this in the plugin's dependencies both in the dependencyManagement section and in the plugin config in the build section: org.apache.felix maven-bundle-plugin 1.2.0 true biz.aQute bndlib 0.0.236 netiher seem to have any effect - it still used version 0.0.227 of bndlib. The docs seem to indicate that this should work - does it, or is this a bug? http://maven.apache.org/pom.html#Plugins Niall - 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: Cargo Remote Deploy trouble....
We use 123.42.23.2 8080 Maybe that works. Stefan Daniele De Francesco wrote: Hi, I need to deploy an ear from my local repo to an alive and kickin' jboss 4.0.3SP1 remote installation...you'd say "hey, man...MAVEN CARGO PLUGIN it's what you need!!". Unfortunately...I've been trying this for a long time before I made up my mind and drop you these lines... I have a trouble in the configuration of the plugin itself, I think... but need explanations, if possible here is my plugin's config org.codehaus.cargo cargo-maven2-plugin ${configuration.type} http://123.234.2.221:8080 admin admin ${container.id} ${container.type} it.sogei.gwb gwb-ear ${deployable.type} ..and this is my mvn -e -X clean package jboss:deploy output: [DEBUG] Configuring mojo ' org.codehaus.cargo:cargo-maven2-plugin:1.0-SNAPSHOT:deploy' --> [DEBUG] (s) containerId = jboss4x [DEBUG] (f) type = remote [DEBUG] (f) container = [EMAIL PROTECTED] [DEBUG] (s) groupId = it.sogei.gwb [DEBUG] (s) artifactId = gwb-ear [DEBUG] (s) type = ear [DEBUG] (f) deployables = [ Lorg.codehaus.cargo.maven2.configuration.Deployable;@717323 [DEBUG] (f) deployer = [EMAIL PROTECTED] [DEBUG] (f) localRepository = [local] -> file://C:\Documents and Settings\ddefrancesco\.m2\repository [DEBUG] (f) project = MavenProject: it.sogei.gwb:gwb-ear:1.0-SNAPSHOT @ C:\workspace-nb\gwb\ear\pom.xml [DEBUG] (f) repositories = [[central] -> http://234.234.1.210:8081/artifactory/repo, [snapshots] -> http://26.2.196.208 :8081/artifactory/libs-snapshots] [DEBUG] -- end configuration -- [INFO] [cargo:deploy] [DEBUG] Performing deployment action into [JBoss 4.x Remote]... [DEBUG] Initial deployable values: groupId = [it.sogei.gwb], artifactId = [gwb-ear], type = [ear], location = [null] [DEBUG] Computed deployable values: groupId = [it.sogei.gwb], artifactId = [gwb-ear], type = [ear], location = [C:\works pace-nb\gwb\ear\target\gwb-ear-1.0-SNAPSHOT.ear] [DEBUG] Deploying [C:\workspace-nb\gwb\ear\target\gwb-ear-1.0-SNAPSHOT.ear] ... [INFO] [ERROR] FATAL ERROR [INFO] [INFO] *Failed to deploy to [ http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:servic e%3DMainDeployer&methodName=deploy&argType= java.net.URL&arg0=file:C%3A%5Cworkspace-nb%5Cgwb%5Cear%5Ctarget%5Cgwb-ear-1.0 -SNAPSHOT.ear]* Connection refused: connect [INFO] [DEBUG] Trace org.codehaus.cargo.container.ContainerException: Failed to deploy to [ http://localhost:8080/jmx-console/HtmlAdaptor?acti on=invokeOpByName&name= jboss.system:service%3DMainDeployer&methodName=deploy&argType=java.net.URL&arg0=file:C%3A%5Cworks pace-nb%5Cgwb%5Cear%5Ctarget%5Cgwb-ear-1.0-SNAPSHOT.ear] .. .. at org.codehaus.cargo.container.jboss.internal.JdkHttpURLConnection.connect( JdkHttpURLConnection.java:58) 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) [INFO] [INFO] Total time: 15 seconds [INFO] Finished at: Tue Feb 12 12:00:23 CET 2008 [INFO] Final Memory: 6M/12M [INFO] Fairly simple you'd say"hey, man start up that container..." :-) Nothing to doremote container started yet But my question is: why, even though I specified http://123.234.2.221:8080, the deploy always point on localhost:8080?? Any ideas?? TIA --- Daniele De Francesco -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.w
Re: Junit report and surefire plugin
* maven-surefire-report-plugin * dashboard-maven-plugin Stefan Bala Rajamani wrote: Currently generating junit reports (*.txt and *.xml files) using maven-surefire-plugin. wondering is there way to display these reports in HTML format and a dash report within Maven? Thanks in advance, Bala. -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Nexus repository manager
We're using archiva now. It's much easier to set up than proximity, but awfully slow (similar to continuum). So we only use it for repo cleanup, but for repo cache&proxy we stick with maven-proxy 0.2 - it has never let us down ;) With nexus, it seems, the situation is similar to HURD - it's coming _next week_: http://blogs.sonatype.com/jvanzyl/2007/11/21.html *SCNR* Stefan Hayes, Peter wrote: Is there any update on the Nexus repository manager? I am interested in snapshot cleanup. Thanks, Peter Hayes Architecture & Shared Technology Services | Fidelity Investments Management Technology - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Surefire plugin 2.3 - 2.4.1 not working.
Stupid question: Have you tried "clean test" yet? Stefan Toni Heimala wrote: I have tried defining versions 2.3, 2.4 and 2.4.1. They all give the same output. If I don't define a version for the surefire plugin, then it uses some old version which is not compliant with JUnit 4.x, which causes the tests to fail (because @Before is not run). Maven version: 2.0.8 Surefire Plugin Version: 2.3 - 2.4.1 JUnit version: 4.0 - 4.4 JDK Version: 1.5 - 1.6 -- -- package maven; import static org.junit.Assert.*; import org.junit.Before; import org.junit.Test; public class MavenSurefireProblemTest { private String foo; @Before public void setUp() throws Exception { foo = new String("FOO!"); } @Test public void testFoo() { System.out.println("Result: " + foo); assertNotNull(foo); } } -- -- -- -- 4.0.0 JavaProblems JavaProblems 0.0.1 maven-compiler-plugin 1.5 1.5 maven-surefire-plugin org.apache.maven.plugins 2.4.1 junit junit 4.4 test -- -- -- -- [INFO] Scanning for projects... [INFO] [INFO] Building Unnamed - JavaProblems:JavaProblems:jar:0.0.1 [INFO]task-segment: [test] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Nothing to compile - all classes are up to date [INFO] [surefire:test] [INFO] Surefire report directory: C:\toni\work\projects\JavaProblems\target\surefire-reports org.apache.maven.surefire.booter.SurefireExecutionException: Bad version number in .class file; nested exception is java.lang.UnsupportedClassVersionError: Bad version number in .class file java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:87) at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:209) at org.apache.maven.surefire.Surefire.run(Surefire.java:156) 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:585) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997) [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] There are test failures. Please refer to C:\toni\work\projects\JavaProblems\target\surefire-reports for t he individual test results. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 16 seconds [INFO] Finished at: Wed Feb 13 16:42:34 EET 2008 [INFO] Final Memory: 6M/11M [INFO] -- -- Rerpot with: mvn -X test Is included as an attachment. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig G
Re: Assembly Plugin and ejb-client jars
If it is just about the file names, you can configure those with ${artifactId}${classifier}.${extension} where ${classifier} here denotes "client" in case of ejb-client or nothing in case of ejb. Stefan Richard Featherstone wrote: Hi, Trial and error sorted this out In the pom I declared the dependency with ejb-client In the assemble.xml I have com.xxx.cml:cml-trigger-ejb This creates cml-trigger-ejb.jar in the dist but only including the client classes. Not exactly what I was after but it serves the purpose. Richard -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-compiler-plugin: setting testSourceDirectory for an execution
Hi, I think it should be possible to use the / and configuration elements for the plugin in conjunction with multiple executions during an appropriate phase, e.g. generate-test-resources for your purpose. regards, Stefan simon wrote: Hi, I want to create multiple executions of the maven-compiler-plugin that use different testSourceDirectory and testOutputDirectory settings. The reason is that the particular project I'm trying to maven-enable (clirr) is designed to analyse jarfiles. So as part of its unit tests, it first builds a couple of jarfiles from local sources, then runs its unit tests against them. Ideally, I want the test-compile phase to run the compile:testCompile goal three times: once to build the source for testjar1, once to build the source for testjar2, then once to build the real unit-test code. After that, the "test" phase can happily run and find the jars it needs to run tests against. But I cannot see any option on the maven-compiler-plugin to specify an override for the or settings. Is there one, or not? An alternative is to make the two test jars into subprojects. But that means moving the code around (in CVS, ecch), and then fixing the existing ant and maven1 builds. Not so tempting. Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven2 / Archiva / Informations about artifacts
For 2), use a simple pom that declares a dependency on the artifact, using [0,), then you can use the maven-dependency-plugin to do whatever you want with it. For 1) I don't know. regards, Stefan Julien Stern wrote: Hi list, I'm using Maven2 and Archiva. I'm looking for a way to programatically perform the following (or at least to be able to call it from a CLI): 1) Obtain the available versions of an artifact in my Archiva 2) Retrieve the latest SNAPSHOT of a given version of an artifact from the Archiva I did not find any straightforward way to do this, except fetching the various maven-metadata.xml from all the repositories defined in the Archiva, parsing them, and deducing available versions and the correct paths to fetch the latest SNAPSHOT. This is not terribly complicated, but I felt like reinventing the wheel. After all, Maven2 is doing essentially this, at least for #2, all the time, so I'm sure I can re-use some module, or even maybe that this is done already. Can I use a Maven2 plugin ? A Maven2 standalone component ? Thank you for any hint / javadoc links / code samples / etc Regards, -- Julien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with property inheritance in maven site plugin
Hi, ${project.version} is an internal maven property, so it is absolutely not a good idea to use it. So the first try should be to rename that one. Stefan Christian Kölle wrote: Hi all I have a problem with the property inheritance in the maven site project. I have a multi-module project. The base pom looks like this: 4.0.0 my.project all pom ${project.version} 1.0 ... The poms of the subprojects look like this: 4.0.0 my.project all ${project.version} ../Build/pom.xml ... This works fine for the install goal (wich use a lot of different plugins for special purposes) but not for the site plugin. A call to "mvn site" produces the following error: [INFO] [site:stage] Downloading: http://repo1.maven.org/maven2/my/project/${project.version}/all-${project.version}.pom [INFO] Parent project loaded from repository. [INFO] Parent project loaded from repository. Downloading: http://repo1.maven.org/maven2/my/project/${project.version}/all-${project.version}-site_en.xml [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The site descriptor cannot be resolved from the repository: No such file or directory When I change to explicit version numbers in both poms everything works fine. Obviously the site plugin has problems with resolving the property. Any ideas? Thanks Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tgz in compile.classpath of antrun
Hi, I think it is perfectly normal for any java program to ignore any non-java files (like tgz) in the classpath or not to add them even if requested. Maybe you should rather use another plugin (like dependency-plugin) to extract the tgz into the target/classes or a similar folder? Stefan Benoit Decherf wrote: Hi, I have a problem with the classpath passed to antrun: If my project have a compile dependency on a tgz, the tgz doesn't appear in the maven.compile.classpath. I attache the example that reproduce the bug: In project A, just execute mvn install. It create several artifacts : A.jar A-jar-with-dependencies.jar, A.tar.bz2, etc... In project B: mvn dependency:tree show all the dependencies mvn compile just execute the antrun plugin and print the classpath. Can you confirm me that there is a bug ? Is there a workaround on this bug ? Benoit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Surefire / Surefire-report 2.4.1 and java heap space
Hi, I know that findbugs is crazy about memory. Maybe you are also affected by http://jira.codehaus.org/browse/SUREFIRE-449 and http://jira.codehaus.org/browse/MJAVADOC-171 and your plugins and tests run too often. You could just increase the heap size using $MAVEN_OPTS=-Xmx512m Stefan [EMAIL PROTECTED] wrote: I've updated our company pom to use surefire and surefire-report 2.4.1. We have a project with 4 modules with not much source (Like 10 to 15 classes and 10 to 15 testclasses per module). We are running a mvn site-deploy and started to run out of heap space. We have quite a few plugins running (PMD, Findbugs, Checkstyle, Qalab, Cobertura, JDepend, Javadoc, JXR and a few others) Is it a known issue that with surefire 2.4.1 there is more memory usage? With regards, Nick Stolwijk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Overriding Plugin Configuration in Settings.xml
You need two profiles in your pom with the different settings. Then you can add the appropriate profile in the settings.xml and set true for the one to use. Stefan DHARNA, AJAY [AG/1000] wrote: Please let me know if there is a way in which I can override my cargo plugin configuration and execution from a profile that is in my settings.xml. I want the project pom to remain the same, however, when I am running this project in tomcat on my machine, I would like to change the configuration and also change what goals it executes. Ajay - This e-mail message may contain privileged and/or confidential information, and is intended to be received only by persons entitled to receive such information. If you have received this e-mail in error, please notify the sender immediately. Please delete it and all attachments from any servers, hard drives or any other media. Other use of this e-mail by you is strictly prohibited. All e-mails and attachments sent and received are subject to monitoring, reading and archival by Monsanto, including its subsidiaries. The recipient of this e-mail is solely responsible for checking for the presence of "Viruses" or other "Malware". Monsanto, along with its subsidiaries, accepts no liability for any damage caused by any such code transmitted by or accompanying this e-mail or any attachment. - -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven appends sub-project artifactId to urls - Please help
Hi Jens, you are complaining about an essential feature of maven. Having maven automatically extend the urls, scm urls, site urls etc. with the list of parent artifact ids is crucial for multi-module projects. No-one would want to enter this information again and again through several levels of child modules which are hosted within a common directory tree. I agree that the docs are not clear about it, at least I couldn't find it documented. I see your point, and there are other problems, like when the directory name of a sub-module is not equal to the artifact id, but in general it is an important feature. How to disable - I don't know. Maybe you will need to file two things in JIRA: a documentation request and a feature request to disable it. HTH, Stefan Jens Riboe wrote: I have an organization POM, with common defs, including url templates for scm and distribution. Here are the relevant snippets, from the parent pom scm:svn:https://www.myhost.com/svn/pub/${project.name}/trunk scm:svn:https://www.myhost.com/svn/pub/${project.name}/trunk http://www.myhost.com/websvn/${project.name}/trunk doc dav:http://dav.myhost.com:8000/doc/${project.name}/ Here are the relevant snippets, from a test sub-pom ... hello 0.17 jar HelloMvn The problem is that the URLs of the effective pom of the sub-project has the artifactId appended. scm:svn:https://www.myhost.com/svn/pub/HelloMvn/trunk/hello scm:svn:https://www.myhost.com/svn/pub/HelloMvn/trunk/hello http://www.myhost.com/websvn/HelloMvn/trunk/hello doc dav:http://dav.myhost.com:8000/doc/HelloMvn/hello So my question is: How can I disable this "feature", or configure the way it is working? As it stands right now, I consider this "feature" to be a bug. It's not documented and I hardly see the benefit of it. There was a mail trail touching this back in December, but it didn't come to a conclusion http://www.mail-archive.com/users@maven.apache.org/msg77123.html Regards, /jens - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Shared modules and versioning
Create an extra artifact A of packing type pom. Declare the dependency to the shared module M within A, with the version you want/need. In your projects P1, P2, ... declare a dependency on A (here, a version range is useful, since A is your own project). Thus, all projects P1...Px use the same version of M, namely the one you declare in A. If you want to change to another version of M, change it in A and deploy/release it. regards, Stefan EJ Ciramella wrote: So we have a module that is shared across multiple deployable units. It's imperative that each deployable unit uses the SAME version of this dependency. If these deployable units are in their OWN project structure, how do you uniformly enforce they use the same version without letting each deployable unit have it's very own dependency listing. We've tried making the version a property in our current parent project, but this doesn't feel like it's the correct place to put them (we're slowly becoming more and more modular - and realizing there's no true parent to all projects). How have people solved this in scenario? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven appends sub-project artifactId to urls - Please help
I added a comment to http://jira.codehaus.org/browse/MNG-3244. You may want to add you votes. Apparently, it was originally planned to not append the artifact id unless the URL would end with a "/". Stefan Ben Lidgey wrote: -Original Message- From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED] Sent: 21 February 2008 09:52 To: Maven Users List Subject: Re: maven appends sub-project artifactId to urls - Please help Hi Jens, you are complaining about an essential feature of maven. Having maven automatically extend the urls, scm urls, site urls etc. with the list of parent artifact ids is crucial for multi-module projects. No-one would want to enter this information again and again through several levels of child modules which are hosted within a common directory tree. I agree that the docs are not clear about it, at least I couldn't find it documented. I see your point, and there are other problems, like when the directory name of a sub-module is not equal to the artifact id, but in general it is an important feature. How to disable - I don't know. Maybe you will need to file two things in JIRA: a documentation request and a feature request to disable it. HTH, Stefan We have a similar problem to Jens as our projects are structured in "Eclipse friendly structure", e.g. ParentProject - pom.xml ChildProject1 - pom.xml - src/java etc ChildProject2 - pom.xml - src/java etc Which is different to the standard Maven dir structure, e.g. ParentProject - pom.xml - ChildProject1 - pom.xml - src/java etc - ChildProject2 - pom.xml - src/java etc It would make sense to me to be able to specify a different naming strategy, perhaps the Maven one is used as a default, but you could define a different naming strategy and set that to be used instead, e.g. ... That doesn't append artifactIds. Then if people had other weird and whacky ways of structuring projects they could write custom naming strategies to behave in accordance with their structures. Ben This e-mail is confidential and intended solely for the use of the individual(s) to whom it is addressed. Any views or opinions expressed are those of the author. If you are not the intended recipient, please be advised that any use, dissemination, printing or copying of this email is strictly prohibited. - 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: maven appends sub-project artifactId to urls - Please help
I agree, it is a bit too late to change this behaviour now. Maybe some other suffix like $ or ${fixed} or you-name-it could be the cure. Then all existing builds would continue to work and if someone would not want the artifact id appended, they can add the special character. Stefan Brian E. Fox wrote: The discussion in the issue revolves around the fact that changing this behavior to as documented will break every build where there isn't a / at the end. It's not apparent how to fix this without hosing tons of unsuspecting users. --Brian -Original Message- From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED] Sent: Thursday, February 21, 2008 6:03 AM To: Maven Users List Subject: Re: maven appends sub-project artifactId to urls - Please help I added a comment to http://jira.codehaus.org/browse/MNG-3244. You may want to add you votes. Apparently, it was originally planned to not append the artifact id unless the URL would end with a "/". Stefan Ben Lidgey wrote: -Original Message----- From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED] Sent: 21 February 2008 09:52 To: Maven Users List Subject: Re: maven appends sub-project artifactId to urls - Please help Hi Jens, you are complaining about an essential feature of maven. Having maven automatically extend the urls, scm urls, site urls etc. with the list of parent artifact ids is crucial for multi-module projects. No-one would want to enter this information again and again through several levels of child modules which are hosted within a common directory tree. I agree that the docs are not clear about it, at least I couldn't find it documented. I see your point, and there are other problems, like when the directory name of a sub-module is not equal to the artifact id, but in general it is an important feature. How to disable - I don't know. Maybe you will need to file two things in JIRA: a documentation request and a feature request to disable it. HTH, Stefan We have a similar problem to Jens as our projects are structured in "Eclipse friendly structure", e.g. ParentProject - pom.xml ChildProject1 - pom.xml - src/java etc ChildProject2 - pom.xml - src/java etc Which is different to the standard Maven dir structure, e.g. ParentProject - pom.xml - ChildProject1 - pom.xml - src/java etc - ChildProject2 - pom.xml - src/java etc It would make sense to me to be able to specify a different naming strategy, perhaps the Maven one is used as a default, but you could define a different naming strategy and set that to be used instead, e.g. ... That doesn't append artifactIds. Then if people had other weird and whacky ways of structuring projects they could write custom naming strategies to behave in accordance with their structures. Ben This e-mail is confidential and intended solely for the use of the individual(s) to whom it is addressed. Any views or opinions expressed are those of the author. If you are not the intended recipient, please be advised that any use, dissemination, printing or copying of this email is strictly prohibited. - 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] - 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 define a goal which wil depends on other goal in maven?
Your question is not precise enough. I suggest you read http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html and have a look at http://cvs.peopleware.be/training/maven/maven2/buildLifecyclePhases.html regards, Stefan san84 wrote: thank u but how can i do using maven 2? plz let me know with ex [EMAIL PROTECTED] wrote: san84 schrieb: hi all, how can i define a goal which depends on other goal in my maven.xml in ant we can do it as follow like blabla ... blabla ... please let me know What is the actual problem you are trying to solve? In other words, what do "a" and "b" do, and why does b need to run first? Maven has this concept of "phases" that it runs through in order, with zero or more plugins attached to each phase. So to do something before some other thing, the plugins are bound to the appropriate phases. But the stuff which is set up by default covers almost all cases already... Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven appends sub-project artifactId to urls - Please help - design suggestion
Jens Riboe wrote: As I understand it; the current rule implements implicit URLs as ${parent.url}/${project.artifactId} For example: ${parentPOM.scm.connection}/${project.artifactId} ... /scm> Where parentPOM is a made-up symbol denoting an upward search for the pom property that follows (scm.connection). So, how about the following suggestion: The Super POM contains this kind of definition for all URLs where this rule applies today. When the effective POM is computed for a sub-project it uses the "closest" url definition that contains the symbol parentPOM. If none is found expect the def in super pom, this one is used and the rule applies as it always has. This will break existing builds. The maven inheritance mechanism will not take the parent pom into consideration if you say something like > scm:cvs:[EMAIL PROTECTED]:/yyy because this is considered as a fixed string and thus overrides the value from the parent. Maven only inherits values from parent POMs when the tags are non-existing in the child pom or in special cases likes plugin configurations from pluginManagement or plugin executions with the same id. Stefan -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mevenide vs. M2Eclipse, Q for Eclipse/IAM
Hi Chris, we started with m2eclipse, too, and had troubles too. After spending about a week in total fixing the worst things in it, it is quite usable. Unfortunately, almost none of my suggestions made it into the mainstream code, and I've given up trying. I thought about a fork but I don't have the time. Anyway, m2eclipse is based on some good ideas, and when I last looked at Q4E, it wasn't usable due to its early dev stage. There is a eclipse plugin for maven that generated the .project files and others, this one allows you to develop maven apps in Eclipse, but it is no real "Eclipse integration". HTH, Stefan Chris wrote: I googled around to try to find a comparison between Mevenide and the alternatives, and didn't come up with much. Can someone tell me the differences? (I've spend some time with m2eclipse, and I'm *not* impressed). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Test classpath problem in multi module project
deploy using dbUnit. You can test your beans without any mock objects and just as if you had a JBoss running. Hope that this was not too long, Stefan Petr Nejedly wrote: Hi guys, I'm trying to solve this issue for a few days and haven't been able to crack it so far. The scenario is following: I have a parent project that includes sub-modules, each having their own pom.xml. Each of these modules produces an ejb3 package. I want to be able to run unit/integration tests using the JBoss embedded container on those modules from the parent project (so that it builds all modules). The resources are different for the test phase from the ones to be deployed (obviously). Normally it could all be achieved using src/main/resources and src/test/tesources but in this case SureFire can see all the resource files on its classpath and tries to use them (eg persistence.xml -> tries to deploy test AND live persistence units which fails the tests). I kind of hacked it so that I'm able to run tests in one module and package it. I end up with the following structure: A --target classes --META-INF (incl resources for tests, dependent modules can use these, when deploying this module's EJBs in the embedded JBoss for example) test-classes --A.jar (includes META-INF with resources for deployment) When I run the build from the parent project though, it builds the first one properly (eg A.jar) and when testing project B (which depends on A) it can see on its classpath A/target/classes + A/target/test-classes (this includes the proper resources for passing the tests) AND the built A.jar (deployment - ready, including resources that fail the tests). Dependency in B pom.xml is: foo A ejb provided Is there a way how to exclude built A.jar from classpath when two modules are dependent? Hope this makes sense, Petr The information contained in this email and its attachments is confidential and may be the subject of legal, professional or other privileged information. It is intended only for the named addressees and may not be disclosed to anyone else without consent from On Demand. If you are not the named addressee you must not use, disclose, distribute, copy, print or rely on the contents of this email and should destroy it immediately. Whilst On Demand takes care to protect its systems from electronic virus attack or other harmful event, the firm gives no warranty that this email message (including any attachments to it) is free of any virus or other harmful matter and accepts no responsibility for any loss or damage resulting from the recipient receiving, opening or using it. If you need any further information, please contact the originator of this message on +44 (0)20 7131 6700. Website: www.ondemand.co.uk. Registered Office: 1 Stephen Street, London, W1T 1AL. Registered in the UK No.4094951. This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Retrieving surefire classpath from a test class
I am looking for a solution to that too. My workaround was until now to pick specific classes whose JAR files I needed and do _class.getResource("/" + _class.getCanonicalName().replace(".", "/") + ".class").toString().replaceAll("-client.jar!", ".jar!").replaceFirst("jar:file:([^!]+).*", "$1") and append this to java.class.path. Kindofa hack though ... Stefan Alexander Klimetschek wrote: I forgot to mention that the unit test runs perfect in Eclipse, because the project created by "mvn eclipse:eclipse" includes all test dependencies as well and the Eclipse jUnit runner puts all of them in the class path for the test. Would be cool to have the Eclipse project and mvn test behave the same without two different configurations. Alex Am 25.02.2008 um 20:58 schrieb Alexander Klimetschek: Hi all, I have a test case which starts another JVM (a derby database server in network mode). The classpath for the new JVM needs jar files which are defined as test dependencies (derby is available in the form of maven artifacts, and I want to test it against the same derby version against which the actual code is written). The problem is that due to the surefire boot mechanism, it's not sufficient to read the classpath of the JVM in which test is running via System.getProperty("java.class.path"). How can I get access to the classpath of surefire? Or is there another way to retrieve the path of the jar files defined in the pom from my junit test class? Regards, Alex -- Alexander Klimetschek [EMAIL PROTECTED] -- Alexander Klimetschek [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cargo does not work when using profiles in the pom.xml (profile IS active).
Hi, why do you use pluginManagement within a profile? Also, you can always define the plugin outside the profile in pluginManagement without the executions and within the profile with the executions. Have you tried "mvn cargo:start -Pjboss" anyway? Stefan Marcelo Alcantara wrote: Hi, I am trying to use cargo based on the pom.xml profile configuration. When executing "mvn cargo:start" it says it cannot find the plugin with this prefix (cargo). When I use mvn help:active-profiles it shows me the "jboss" profile is active. If I copy the xml block from the profile to the pom (without the profile) and runs "mvn cargo:start" it works fine. I tried a lot of ideas here but could not make this work. Somebody can give me any hint on this one? Follows my profile configuration bellow. Thanks in advance. Marcelo Alcantara jboss true org.codehaus.cargo cargo-maven2-plugin 0.3.1 start-container install start jboss4x S:/software/jboss/hg_jboss-4.0.5.GA_v2.zip C:/software ${project.build.directory}/jboss/server - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trouble with Tomcat / MyFaces in Maven JUnits
eads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:613) Caused by: org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsf/html cannot be resolved in either web.xml or the jar files deployed with this application at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419) ... 21 more -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel.+49 (341) 9 60 50 07 fax.+49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web.www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]