pom depend on other pom

2008-09-21 Thread sandyg
Hi All, 1)Can any one help how to run pom.xml of another project b4 running the current project pom.xml i.e my pom is dependent on other pom like in ant one target is dependent on other target. I need to run independent pom then after the dependent pom with single instruction . 2)One more thi

Re: I want the pom.xml to disable junit test.

2008-09-21 Thread 陈思淼
Thx! 2008/9/22 Wendy Smoak <[EMAIL PROTECTED]> > On Sun, Sep 21, 2008 at 7:06 PM, 陈思淼 <[EMAIL PROTECTED]> wrote: > > I know i can use mvn intall -DskipTests to disable unit test when > install. > > but how to configure it in the pom to disable it ? Thankx for help. > > > http://maven.apache.org/p

Re: How to create the ".project" file?

2008-09-21 Thread Baptiste MATHUS
Hi Thomas, See maven-eclipse-plugin, and mvn eclipse:eclipse, http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html. If you wish, you could also try m2eclipse by using mvn eclipse:m2eclipse, but note that you'll have to install m2eclipse from the sonatype update site before. Chee

Re: Tuning multi-module assembly

2008-09-21 Thread Samuel Le Berrigaud
Hi Olivier, I don't have the answer to all your questions but I believe I can help with questions 1 & 2: 1 - Use the "provided" scope for all your war dependencies, see http://maven.apache.org/ref/current/maven-model/maven.html#class_dependency and http://maven.apache.org/guides/introduction/int

Tuning multi-module assembly

2008-09-21 Thread Olivier Gies
Hi everyone, I have a multi-module project as follows: my_project | +- myapp1 (war) | +- myapp2 (war) | +- myutils (jar) I want to assemble "my_project" as follows: my_project.zip | +- applications/ | | | +- myapp1.war | | | +- myapp2.war | +- lib/ | +- myutils.jar | +- *.jar (JAR

Re: How to create the ".project" file?

2008-09-21 Thread Eugene Kuleshov
thomas2004 wrote: > > I use "mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes > -DarchetypeArtifactId=maven-archetype-webapp -DgroupId=com.mycompany.app > -DartifactId=TestWebApp" to create a project. But I have to create the > ".project" file sothat I can import the project i

Re: I want the pom.xml to disable junit test.

2008-09-21 Thread Wendy Smoak
On Sun, Sep 21, 2008 at 7:06 PM, 陈思淼 <[EMAIL PROTECTED]> wrote: > I know i can use mvn intall -DskipTests to disable unit test when install. > but how to configure it in the pom to disable it ? Thankx for help. http://maven.apache.org/plugins/maven-surefire-plugin/examples/skipping-test.html --

I want the pom.xml to disable junit test.

2008-09-21 Thread 陈思淼
I know i can use mvn intall -DskipTests to disable unit test when install. but how to configure it in the pom to disable it ? Thankx for help.

Re: Include result of multi-module in another multi-module

2008-09-21 Thread Brett Porter
Depends on how you are creating the JAR - both the assembly plugin and the shade plugin have the ability to install it in the local repository, however only the shade plugin will rewrite the POM to remove the additional dependencies. - Brett 2008/9/16 <[EMAIL PROTECTED]>: > I have a product mult

Re: dependency:analyze-only and pom-only dependencies

2008-09-21 Thread Brett Porter
This seems like a limitation in the plugin that you should file an issue for. Cheers, Brett 2008/9/16 Barry Kaplan <[EMAIL PROTECTED]>: > > We have setup some poms only for the purpose of declaring dependencies (eg, > "unit-test" which depends junit, hamcrest, mockito, etc). Dependent projects >

Re: How to create the ".project" file?

2008-09-21 Thread Wayne Fay
Googling for "maven eclipse" reveals the following 2 links at the top: http://maven.apache.org/guides/mini/guide-ide-eclipse.html http://maven.apache.org/plugins/maven-eclipse-plugin/ Is there a specific question you have which is not sufficiently covered in that documentation? Wayne On Sun, Sep

RE: How to create the ".project" file?

2008-09-21 Thread Martin Gainty
if .project is not in .cvsignore file if maven-plugin knows where M2_REPO is located e.g. mvn eclipse:configure-workspace -Declipse.workspace= goto project root mvn eclipse:eclipseand eclipse files will be created http://swik.net/Spring/Spring+Framework+News/How+to+create+a+Spring-DM+bundle+pro

How to create the ".project" file?

2008-09-21 Thread thomas2004
I use "mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-webapp -DgroupId=com.mycompany.app -DartifactId=TestWebApp" to create a project. But I have to create the ".project" file sothat I can import the project in Eclipse. Surely I can use mv

Getting multi-POM project to be understood by IDE's properly?

2008-09-21 Thread CS Wong
Hi, I have a multi-project POM that works fine for compilation and work as a whole but is very difficult to work with in IDEs and when it comes to compiling sub components separately. The POM structure looks like this: Main POM --> EJB Project POM --> WAR Container POM --> WebApp WAR Project

Re: [maven-pmd-plugin] Customizing generated report

2008-09-21 Thread Baptiste MATHUS
Hi, I guess you already looked at the page of the plugin : http://maven.apache.org/plugins/maven-pmd-plugin/ If what you ask isn't present, then yes, you should file a JIRA for this. But as always, if you really need this additional feature, you should attach the patch. Generally customizing a si

Re: [m2] archetype repository requires authentication

2008-09-21 Thread Adrian Herscu
Hi Dave, and thanks for the fast reply. I already have a settings.xml and the build works by retrieving artifacts from the repositories defined in it. However, the archetypes are not searched in those repositories only in the central Maven repository :( I don't know why it does not use the sett