About Maven 1.0.2

2009-05-20 Thread Kerry Zhu
I came across a problem when I run maven java:compile // unable to obtain the goal java:compile \hom.maven\cache\avalon-meta-plugin.jelly:12:83: ant:taskdef taskdef class org.apache.avalon.meta.info.ant.MetaTask cannnot be found // could you give you the reason? Thanks!!

About unittest run three times

2009-05-20 Thread forum geng
Dear all, While I set the nightly build command for continum by clean install site-deploy, my unit tests all run for three times. And while I changed to clean install, the unit tests run for one time, and changed to clean site-deploy, my unit tests run for two times.

A problem of Maven 1.0.2

2009-05-20 Thread Kerry Zhu
I came across a problem when I compile a project using maven 1.0.2. If I run maven -X java:compile, problems as follow: I don't know why? How to solve it? Thanks! __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2

maven deploy question

2009-05-20 Thread Jane Young
Hi Maven gurus, Looks like mvn deploy is deploying artifact from the target directory to remote maven repo. Is it possible to configure mvn deploy to deploy artifact from the local maven repo. Also, is it possible to skip all the lifecyle phases before deploy (validate, compile, test,

checkstyle reports won't generate with a mvn clean install

2009-05-20 Thread zac001
Hi All I've configured checkstyle in my project and i can generate the Checkstyle reports when I issue a mvn checkstyle:checkstyle but my requirement is to generate the checkstyle reports once i do a clean build as well I've pasted the high level pom below. appreciate if you guys could point out

Re: maven deploy question

2009-05-20 Thread Baptiste MATHUS
Hi, See http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html Also note that modern MRM have a page that features this exact upload. Cheers. 2009/5/20 Jane Young jane.yo...@sun.com Hi Maven gurus, Looks like mvn deploy is deploying artifact from the target directory to

Re: maven deploy question

2009-05-20 Thread Jane Young
Thanks for the link. I do not want to deploy individual artifacts. I want to deploy artifacts from a project. Is it possible to do this with deploy:deploy-file? Baptiste MATHUS wrote: Hi, See http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html Also note that

AW: About unittest run three times

2009-05-20 Thread Mark Struberg
Old story, and as far as I remember (please correct me if I'm wrong) the reason is: The site lifecycle and the default build lifecycle are isolated things. So if you run mvn install, the 'test' phase will be invoked - 1st run Your site has a test reporting section? - 2nd run I assume you have

Re: maven deploy question

2009-05-20 Thread Baptiste MATHUS
Well, I'm finally not sure I understand what you want to do. Did you look at the provided link? Some goals (bound to the standard lifecycle that you should be aware of: http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Build_Lifecycle_Basics ) * package will create

how to patch existing (3rdparty) *.jar file with Maven

2009-05-20 Thread torsten . reinhard
Hi, I´ve found a bug in an existing 3rdparty library that I can fix quickly by recompilation of the sourcefile and afterwards replace it in the *.jar. Is there a plugin to support that? The maven-patch-plugin only applies patches with the GNU patchtool, thats not what I´m looking for

Re: Maven: The Definitive Guide in French

2009-05-20 Thread Jason van Zyl
What we're going to do is find a French publisher who is interested in printing the book. We want to have the same sort of deal we have with O'Reilly where we forfeit the royalties to get access to experienced editors. So I'll probably ask around to see if there are any interested

Re: Maven: The Definitive Guide in French

2009-05-20 Thread nicolas de loof
I'm in contact with Eyrolles as a JUG leader and can suggest them such a deal. As Pearson france is working with me and Arnaud on another Maven book I don't think they would like to have two, but can also suggest them Cheers, Nicolas 2009/5/20 Jason van Zyl jvan...@sonatype.com What we're going

Re: maven-compiler-plugin unpacking dependencies into target/classes

2009-05-20 Thread Wayne Fay
I don't see anything in particular in your file listing nor in the effective pom that would make me instantly say oh that's it. Does this happen repeatedly? Can you replicate it on another computer, ideally with a completely different operating system and JDK version? If you had to, could you

Re: maven-compiler-plugin unpacking dependencies into target/classes

2009-05-20 Thread Michael Guyver
Hi Wayne, Thanks for having a look for me. 2009/5/20 Wayne Fay wayne...@gmail.com: Does this happen repeatedly? It happens every time that Maven performs a compile of any of that project's source code. By that I mean that if I delete the javax directory from target/classes and run mvn compile,

Re: maven deploy question

2009-05-20 Thread Jane Young
Hi, Thanks for responding. In our project, we first do mvn install to produce the artifact and then run QA tests to make sure the artifacts are good before deploying to the remote maven repository. When executing mvn deploy, it will go through preceding lifecycle phases (compile, package,

Re: When using pom hierarchies where is the best place to add the distributionManagement bits?

2009-05-20 Thread emerson cargnin
What about report configuration, is that something you can add to your top parent pom? 2009/5/19 Baptiste MATHUS m...@batmat.net: Well, I'd say it totally depends on your organization. But I guess you could begin by putting the dependencies used very widely (e.g. commons-lang?) in your top

m2 eclipse question

2009-05-20 Thread Steve Cohen
I know, I know, this may not be the list for that but the m2eclipse mailing list bot doesn't seem to be answering subscribe requests, so maybe I'll get lucky here. I created a new Maven project in Eclipse, using the maven-archetypes-quickstart archetype. I then added a dependency on

Re: maven-compiler-plugin unpacking dependencies into target/classes

2009-05-20 Thread Max Bowsher
Michael Guyver wrote: Hi there, I'm experiencing some very very strange behaviour in my project. The mvn compile goal is somehow generating/unpacking the following files into my target/classes directory: javax/servlet/ServletRequest.class javax/servlet/RequestDispatcher.class

Re: maven deploy question

2009-05-20 Thread Stephen Connolly
You need to stage the deploy, i.e. deploy to an intermediate repository and then move them from there. I know that the pro version of Nexus has support built in for this, but given that we have not purchased it I cannot attest to it's workability. Alternatively there is a stage mojo on one of

Re: How to reference a specific dependency in maven-antrun-plugin?

2009-05-20 Thread Hilco Wijbenga
2009/5/17 Hilco Wijbenga hilco.wijbe...@gmail.com: Hi all, The documentation for maven-antrun-plugin lists at the very bottom of Referencing the Maven Classpaths: = Start snippet = You can also use the path to each dependency artifact property name=mvn.dependency.jar

Re: maven deploy question

2009-05-20 Thread Stephen Connolly
mvn deploy -DaltDeploymentRepository=http://stage.repo.url/ mvn org.codehaus.mojo:wagon-maven-plugin:1.0-beta-1:merge-maven-repos \ -Dwagon.source=http://stage.repo.url \ -Dwagon.target=http://deploy.repo.url \ -Djava.io.tmpdir=target 2009/5/20 Stephen Connolly

Re: maven deploy question

2009-05-20 Thread Stephen Connolly
sorry that should be mvn deploy -DaltDeploymentRepository=stage::default::http://stage.repo.url/ http://stage.repo.url/ mvn org.codehaus.mojo:wagon-maven-plugin:1.0-beta-1:merge-maven-repos \ -Dwagon.source=http://stage.repo.url \ -Dwagon.target=http://deploy.repo.url \

FATAL ERROR: id can not be null

2009-05-20 Thread Algie Morgan
I apologize if this question has already been asked. I have searched the recent archives and did not find it. I have a project that compiled fine under Maven 2.0.6. I recently upgraded to Maven 2.1.0 and it returned this error when I tried to compile: [INFO] Copying 10 resources [INFO]

Re: FATAL ERROR: id can not be null

2009-05-20 Thread Olivier Lamy
Hi, Maybe a repository/mirror declared in ~/.m2/settings.xml without any id. -- Olivier 2009/5/20 Algie Morgan morga...@iodp.tamu.edu: I apologize if this question has already been asked.  I have searched the recent archives and did not find it. I have a project that compiled fine under

maven jetty plugin does not rebuild war

2009-05-20 Thread tubin gen
maven plugin in my pom plugin groupIdorg.mortbay.jetty/groupId artifactIdjetty-maven-plugin/artifactId version7.0.0.pre5/version configuration contextPath/audit/contextPath

Re: m2 eclipse question

2009-05-20 Thread Steve Cohen
Uh, never mind. I chose the wrong commons-net version from the repository. The repository and m2-eclipse were doing exactly what I told them to. I wanted commons-net-2.0.jar, not this old 20030805 thing which is obviously a very old date. Steve Cohen wrote: I know, I know, this may not be

How to make a war file with all schema inside

2009-05-20 Thread Alex
it's possibile make, with eclipse/maven, a .war file (for tomcat) that include all necessary schemas? I want that my service working in local without internet. Unfortunately at the moment without internet tomcat tries to get external schema (es. spring schemas or cxf schemas) and doesn't

Re: maven-compiler-plugin unpacking dependencies into target/classes

2009-05-20 Thread Michael Guyver
Hi Max, 2009/5/20 Max Bowsher m...@mxtelecom.com: Investigate the possibility that .java *source* files corresponding to those classes somehow exist in one of your dependency jar files. I've occasionally encountered weirdness where in such a circumstance, those .java files can get compiled

Re: FATAL ERROR: id can not be null

2009-05-20 Thread Algie Morgan
Olivier, Thanks for your fast response, but that is not the problem. I checked the ~/.m2/settings.xml and that all checks out fine. There were only a few entries there for a jetspeed project I am experimenting with. I tried commenting out most of that file and I still get the error. But,

Re: maven deploy question

2009-05-20 Thread Jane Young
Thanks, Stephen. This may work for us. Stephen Connolly wrote: sorry that should be mvn deploy -DaltDeploymentRepository=stage::default::http://stage.repo.url/ http://stage.repo.url/ mvn org.codehaus.mojo:wagon-maven-plugin:1.0-beta-1:merge-maven-repos \

Re: How to make a war file with all schema inside

2009-05-20 Thread Wayne Fay
I want that my service working in local without internet. Unfortunately at the moment without internet tomcat tries to get external schema (es. spring schemas or cxf schemas) and doesn't  start the service. Its probably a better use of your time to look into configuring Tomcat so it does not

RE: FATAL ERROR: id can not be null

2009-05-20 Thread Martin Gainty
Here is a pom.xml which contains a mandatory id element /mailingList /mailingLists developers developer idmraible/id nameMatt Raible/name emailm...@raibledesigns.com/email organizationRaible Designs, Inc./organization timezone-7/timezone /developer if i left out idmraible/id maven execution

Re: mvn install for ear project

2009-05-20 Thread Jim Sellers
More details would be helpful. Could you provide some pom snipits to show the error? What maven version are you using? Jim On Tue, May 19, 2009 at 2:55 PM, tubin gen fachh...@gmail.com wrote: my project has subprojects one for ear , one for war and one for jar . I get this error

How to create many jars in package phase?

2009-05-20 Thread Jesfre
Hi everybody... I want to generate more than one .jar when executing mvn package in a module named common, this is necesary because many modules of the parent project use diferent packages of the common module, so, I need to create many .jars with diferent packages form the same common module. I

Re: How to create many jars in package phase?

2009-05-20 Thread Wendy Smoak
On Wed, May 20, 2009 at 5:46 PM, Jesfre jesfre...@gmail.com wrote: I want to generate more than one .jar when executing mvn package in a module named common, this is necesary because many modules of the parent project use diferent packages of the common module, so, I need to create many .jars

Re: checkstyle reports won't generate with a mvn clean install

2009-05-20 Thread Jim Sellers
Reports are only generated when you run a site or site-deploy build. You could either do something like mvn clean site or mvn clean install checkstyle:checkstyle I think that the lifecycle doc would explain it better, but I'm having troubles loading the page right now