Re: Maven 2.1.0 site issue

2009-04-15 Thread Wendy Smoak
On Wed, Apr 15, 2009 at 9:08 PM, Morgovsky, Alexander (US - Glen Mills) wrote: > I have Apache Maven 2.1.0 (r755702; 2009-03-18 15:10:27-0400). > > My error is listed below.  Any advise would be greatly appreciated. While it shouldn't be throwing uninformative NPE's, you're not giving us much to

Problem with using cobertura to calculate unit testcoverage for projects using AspectJ

2009-04-15 Thread Rakesh Arora
In our project we are using AspectJ only for unit testing. So we are using test-compile goal of aspectj-maven-plugin: http://mojo.codehaus.org/aspectj-maven-plugin/ We also use cobertura maven plugin to calculate the unit test coverage http://mojo.codehaus.org/cobertura-maven-plugin/ Cobertura

Maven 2.1.0 site issue

2009-04-15 Thread Morgovsky, Alexander (US - Glen Mills)
Team, please advise, I am not able to generate sites using Maven 2.1.0. I have Apache Maven 2.1.0 (r755702; 2009-03-18 15:10:27-0400). My error is listed below. Any advise would be greatly appreciated. [INFO] [site:site] [ERROR] No Issue Management set. JIRA Report will not be generated. [INFO]

Re: What is the best Maven book (or material) for new users?

2009-04-15 Thread Brian Fox
That alpha copy is a very, very old version and is not even close to what was printed (which is by now old). The latest and greatest is published regularly here: http://www.sonatype.com/products/maven/documentation/book-defguide javidjamae wrote: There is an "alpha" copy of The Definitive Guid

Can somebody guide me in using httpclient or htmlunit

2009-04-15 Thread Das, Manas
-Original Message- From: gret...@gmail.com [mailto:gret...@gmail.com] On Behalf Of Grant Rettke Sent: Thursday, April 16, 2009 6:11 AM To: Maven Users List Subject: Re: What is the best Maven book (or material) for new users? Will do thanks Nick. On Wed, Apr 15, 2009 at 6:17 PM, Nick St

Re: What is the best Maven book (or material) for new users?

2009-04-15 Thread javidjamae
There is an "alpha" copy of The Definitive Guide online: http://propellors.net/maven/book/ I've been reading through it I've found it to be very good, and I'm planning on picking up a print copy soon. I won't claim it to be "the best" material available by any means, but I've created a few intro

Re: What is the best Maven book (or material) for new users?

2009-04-15 Thread Grant Rettke
Will do thanks Nick. On Wed, Apr 15, 2009 at 6:17 PM, Nick Stolwijk wrote: > I would say The Definitive Guide: > > http://www.sonatype.com/products/maven/documentation/book-defguide > > Also, Better Builds with Maven is a good book, although a bit > outdated, but it covers the basics very well. >

Re: What is the best Maven book (or material) for new users?

2009-04-15 Thread Nick Stolwijk
I would say The Definitive Guide: http://www.sonatype.com/products/maven/documentation/book-defguide Also, Better Builds with Maven is a good book, although a bit outdated, but it covers the basics very well. http://www.exist.com/better-build-maven For other sources of documentation, search thi

Re: Mvn test: how to get classpath when starting another VM?

2009-04-15 Thread Nick Stolwijk
I don't know if this is working, but give it a try: org.apache.maven.plugins maven-surefire-plugin 2.4.2 myClasspath ${classpathElements} And then in your code: Sys

Re: mavenium

2009-04-15 Thread Nick Stolwijk
I didn't think about only getting the pom. You won't find the pom in your local repository or remote repositories, but you always could get it here: https://mavenium.svn.sourceforge.net/svnroot/mavenium/tags/mavenium-0.2/pom.xml With the pom file you can use the install:install-file command. Wit

What is the best Maven book (or material) for new users?

2009-04-15 Thread Grant Rettke
What is the best Maven book (or material) for new users? I am tasked with decomposing an existing system that contains 21 POM files, so, I have a lot of work ahead of me and I'm looking for the best resource possible. - To unsubs

RE: mavenium

2009-04-15 Thread Martin Gainty
--save the maven pom copy https://our.local.repo/nexus/content/repositories/thirdparty/com/agilepirates/mavenium/0.2/mavenium-0.2.pom to pom.xml mvn install:install-file -DgroupId=com.agilepirates -DartifactId=mavenium -Dversion=0.2 -Dpackaging=maven-plugin -Dfile=pom.xml check the install scri

Mvn test: how to get classpath when starting another VM?

2009-04-15 Thread hbf
Dear list, I have a unit test that uses Java's Runtime.exec() method to start another VM and execute code in it. I need this to test recovery from simulated power failure. The code that should run in the VM is a test case itself, from the same project. I do not know what classpath to pass to the

Re: eclipse:eclipse suddenly adding including="**/*.java" to .classpath

2009-04-15 Thread Barrie Treloar
On Thu, Apr 16, 2009 at 1:39 AM, Andrew Eisenberg wrote: > Hi, > >> The Maven convention and good practice is to put ressources files like >> *.txt in src/main/resources. > > This is a bit troublesome for those of us using the AspectJ plugin. > We need to place *.aj files in the src/main/java (and

Re: mavenium

2009-04-15 Thread Nick Stolwijk
I don't know why the install with file doesn't work, but as a work around, you could try to compile the plugin yourself by checking out the code and running 'mvn install' on it. Checkout: svn checkout https://mavenium.svn.sourceforge.net/svnroot/mavenium/trunk mavenium or the tag: svn checkout

mavenium

2009-04-15 Thread Tony Giaccone
I'm trying to use the mavenium plugin with my pom.xml. I followed the instructions as best I could from the mavenium web site. I downloaded a jar file, which I believe is version 0.2 from source forge. I executed the following command: First I changed the name from: mavenium.0.2.jar to mavenium.j

Re: configure tag name in maven release plugin

2009-04-15 Thread Nick Stolwijk
There are two issues in Jira related to this, MRELEASE-150 en MRELEASE-159. If you want to do what you want, please provide a patch. ;) Otherwise, just vote and hopefully they get high enough on the list of those that can provide patches. [1] http://jira.codehaus.org/browse/MRELEASE-150 & http://j

Re: eclipse:eclipse and sorting in .classpath

2009-04-15 Thread Arnaud HERITIER
In maven when you are executing tests, tests classes and ressources are in the classpath before your main classes and ressources. In eclipse when you reorder the classpath in the project, you also reorder how entries are displayed in the UI. Our goal is to be sure that you have the same classpath i

Re: How to configure maven-site-plugin to publish jar?

2009-04-15 Thread Dennis Lundberg
David Hoffer wrote: > Can and if possible how can I configure the maven-site-plugin so that it > bundles the entire site in a jar and then deploys it? Ideally the whole > process would remain contained within the site-deploy phase. > > -Dave > You can use the site:jar goal for this purpose: htt

Two plugins with extensions

2009-04-15 Thread Annies
Maven 2.0.9 is installing artifacts with wrong extension in the repository if I use two plugins with extensions. These two sub projects use two different extension plugins and unless extension attribute in one of them is removed maven installs the wrong artifact. I created an issue with a test cas

Re: configure tag name in maven release plugin

2009-04-15 Thread Niels van Kampenhout
On Mon, Apr 13, 2009 at 5:29 PM, Niels van Kampenhout wrote: > Is there a way to configure the name of the tag created by the release > plugin? Default is the artifactId of the project but I want to use > something else. > > For example, my project is called "My Application", the artifactId is > "

Re: Fatal Error

2009-04-15 Thread Wayne Fay
> [INFO] Trace > java.lang.ArrayIndexOutOfBoundsException >        at java.util.ArrayList.contains(Unknown Source) What project are you building? Grab the source code (eg from some open source project) of some known-good project and try mvn package there. If you get the same error, it would seem

Re: Fatal Error

2009-04-15 Thread Jeffrey Trimble
Hmmm It's possible that I'm using **too new** a version of Maven. Never thought of that. --Jeff Jeffrey Trimble System LIbrarian William F. Maag Library Youngstown State University 330.941.2483 (Office) jtrim...@cc.ysu.edu http://www.maag.ysu.edu http://digital.maag.ysu.edu On Apr 15,

assembly:single fails when after package phase has been executed

2009-04-15 Thread Todd Thiessen
Is this supported? mvn clean mvn install mvn assembly:single All documentation I have found indicates it is but it fails with: "Please ensure the package phase is run before the assembly is generated." Yes "mvn clean package assembly:assembly" works but while testing an assembly it would be nic

RE: Fatal Error

2009-04-15 Thread Martin Gainty
Jeff- looks like someone scrambled your pom.xml can you use the previous version 2.0 or possibly 1.9x ? Martin __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité This message is confidential.

Re: eclipse:eclipse and sorting in .classpath

2009-04-15 Thread Ingo Düppe
Hello, what do you mean with "this the order used to build by maven"? I mean you cannot build test sources before you build the main code. Or does Eclipse compile the source folder in the oposite order? Regards, Ingo Arnaud HERITIER schrieb: > This the order used to build by maven. It was don

Fatal Error

2009-04-15 Thread Jeffrey Trimble
I'm attempting to run mvn package and receive a FATAL ERROR. Some particulars: Maven version: 2.0.10 Java version: 1.6.0 OS name: "aix" version: "5.3" arch: "ppc" Family: "unix" This is IBM's jdk implementation. So the question is there a fix, workaround, or something else that I need to be

Re: eclipse:eclipse suddenly adding including="**/*.java" to .classpath

2009-04-15 Thread Andrew Eisenberg
Hi, > The Maven convention and good practice is to put ressources files like > *.txt in src/main/resources. This is a bit troublesome for those of us using the AspectJ plugin. We need to place *.aj files in the src/main/java (and test) directory. However, these files are excluded from the build.

maven-ejb-plugin & was6-maven-plugin generated jar files

2009-04-15 Thread Pacileo, Ken
Hi, I'm using Maven 2.0.10 & RAD6 base_v6 JDK and trying to build a WAS 6.0 EJB. So far the maven-ejb-plugin generates the EJB jar file in the project/target directory. When the was6 plugin executes, the wsejbdeploy task compiles the bindings and creates the WAS EJB in the project/target/was6-m

RE: Mvn command not recognized

2009-04-15 Thread santiagoloso
I've followed this thread since I'm dealing with the same problem. I've substituted Path value for the whole M2_HOME value and it's not working. Any other suggestions? Cappoli, William wrote: > > Chris, > > Your suggestion of writing the entire path into the path variable > worked. > > Than

Re: Using Wagon SSH or SSH external with HOST BASED authenticaton?

2009-04-15 Thread CharlieCollins
I don't have that identity file, no. My command line usage does not use that identity file. I am using host based authentication. My client has ~/.ssh/config with correct HostBasedAuthentication entries, and the server has HostBasedAuthentication yes, etc. If the scpexe command is passing swit

Plugin to run re-configured tests

2009-04-15 Thread emilSverige
Hi, I am trying to use http://code.google.com/p/jtracert/ jtracert to create sequence diagrams from our unit tests. I could do this by simply adding some configuration to the surefire plugin:   maven-surefire-plugin    -javaagent:jTracert.jar ...    But I don't want these to be generate

Re: Weird problem downloading snapshots with Nexus

2009-04-15 Thread Brian Fox
Whenever you see Maven making requests for -SNAPSHOT (and you don't have it configured with useUnique = false) it always means that the maven-metadata.xml file for that snapshot is wrong or couldn't be found. It's hard to say why that could have happened, but this often happens if you do a bui

Re: Weird property replacement issue in Maven 2.1.0

2009-04-15 Thread Reinhard Nägele
I just found the following issue which could be related: http://jira.codehaus.org/browse/MNG-3579 Reinhard Reinhard Nägele schrieb: Hello, I guess I spotted a bug in Maven 2.1.0. In a pom, which is intended to be used as a parent pom, we have the following profile. The profile is used to co

Weird property replacement issue in Maven 2.1.0

2009-04-15 Thread Reinhard Nägele
Hello, I guess I spotted a bug in Maven 2.1.0. In a pom, which is intended to be used as a parent pom, we have the following profile. The profile is used to copy artifacts to Luntbuild's publish directory. luntbuild maven-dependency-plugin cop

Weird problem downloading snapshots with Nexus

2009-04-15 Thread Reinhard Nägele
Hello, This morning, I updated our Nexus version from 1.3.1.1 to 1.3.2. After that my builds did not run because they failed to download snapshot dependencies from a hosted repository. As yesterday everything was still fine, I suspected a regression in Nexus, went back to 1.3.1.1, but the pro