Re: getting 3rd party javadoc for deps into local repo

2008-12-10 Thread Nick Stolwijk
I think the only way at the moment is to use mvn eclipse:eclipse -DdownloadJavadocs=true perhaps followed by an mvn eclipse:clean to get rid of the extra files. It seems the eclipse plugin has extra code to resolve javadoc of the dependencies. Hth, Nick Stolwijk ~Java Developer~ Iprofs BV.

Re: [MASSEMBLY-285] duplicates in JAR

2008-12-10 Thread stephanos
Awesome, helped me a lot, thx! -- View this message in context: http://www.nabble.com/-MASSEMBLY-285--duplicates-in-JAR-tp20917947p20933149.html Sent from the Maven - Users mailing list archive at Nabble.com. - To

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread Anders Hammar
Hi, Just tried it and it works for me, both in Eclipse and from command prompt. How are you executing? /Anders CheapLisa wrote: I have JUnit 4.5 as a dependency in my maven pom and I have imported annotations into my test case but it is not recognizing the @Test and @Ignore annotations.

RE: Maven Jaxb plugin?

2008-12-10 Thread Anders Hammar
Hi, Try the 'schemaDirectory' parameter. It's documented here: http://mojo.codehaus.org/jaxb2-maven-plugin/xjc-mojo.html /Anders CheapLisa wrote: thanks! I was able to get a little further but got this error message: [ERROR] null[-1,-1] java.io.FileNotFoundException:

java.lang.NoClassDefFoundError: org/codehaus/plexus/util/xml/XmlStreamReader

2008-12-10 Thread Stefan Fritz
Hi all, we have a custom Maven plugin to package artifacts for our ESB. The plugin works fine on my Windows machine (WinXP, Maven 2.0.9, Sun JDK 5) but when I package a project on our server it fails. The error occurs on with Sun JDK5/6 on Linux. Does anybody have an idea what the cause of

RE: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread Edelson, Justin
I seem to recall a problem where if you tried to combine JUnit 3.x and 4.x styles (i.e. use annotation and extend TestCase), something like the below would happen. But I'm not sure that was a Maven problem. Justin From: Anders Hammar [mailto:[EMAIL PROTECTED]

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread Josh Suereth
I believe the name of the class still matters. Try calling it Test*.java On Wed, Dec 10, 2008 at 12:16 AM, CheapLisa [EMAIL PROTECTED] wrote: I have JUnit 4.5 as a dependency in my maven pom and I have imported annotations into my test case but it is not recognizing the @Test and @Ignore

Re: Can't generate POM file while deploying my own jar

2008-12-10 Thread Wendy Smoak
On Wed, Dec 10, 2008 at 7:29 AM, Harshal Joshi [EMAIL PROTECTED] wrote: mvn install:install-file -DgroupId=jsr168-api -DartifactId=jsr168-api -Dversion=1.0.0 -Dpackaging=jar -Dfile=D:\IBM\WebSphere\PortalServer\shared\app\jsr168-api.jar It deploy jar file in to my repository but it can't

Re: getting 3rd party javadoc for deps into local repo

2008-12-10 Thread Wendy Smoak
On Mon, Dec 8, 2008 at 6:48 AM, Adam Hardy [EMAIL PROTECTED] wrote: I'm using mvn dependency:source -Dclassifier=javadoc to try to get maven to retrieve the javadoc jars for all my dependencies from the central repo and put them into my local repo. It's not working though. The 'sources'

Re: java.lang.NoClassDefFoundError: org/codehaus/plexus/util/xml/XmlStreamReader

2008-12-10 Thread Anders Hammar
I wild guess would be that you have misspelled some dependency regarding upper/lower case. If you, for instance, specify ESBblabla.jar Windows will match that with the file esbblabla.jar while Linux will not. The same goes for paths. Just something I learned the hard way from an issue we had

creating a JAR file of the source code in a war project

2008-12-10 Thread Richard Chamberlain
Hi, I've got a standard war project. I'd like to jar up my source code and put it in WEB-INF/lib instead of compiling it to WEB-INF/classes. This would allow me to overlay it into another war project without mixing up WEB-INF/classes Is this possible/advisable? Regards, Richard

Re: java.lang.NoClassDefFoundError: org/codehaus/plexus/util/xml/XmlStreamReader

2008-12-10 Thread Anders Hammar
Yes, I saw that. But why does it work on Windows but not on Linux? The cause could be something being misspelled (upper/lower case). Any way, org.codehaus.plexus.util.xml.XmlStreamReader was introduced in v1.4.4 of org.codehaus.plexus:plexus-utils. At least according to the nifty class search

Re: creating a JAR file of the source code in a war project

2008-12-10 Thread Edelson, Justin
You should put your code in a seperate project with packaging 'jar' and then depend upon that project from your war project. This is considered a best practice anyway. Justin - Original Message - From: Richard Chamberlain [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org

Re: java.lang.NoClassDefFoundError: org/codehaus/plexus/util/xml/XmlStreamReader

2008-12-10 Thread Stefan Fritz
Good tip but according to the error it seems to have classloading issues with XmlStreamReader which is not part of my JAR. I guess it is part of plexus-utils-1.1.jar which exists under the path printed in the log: this realm = app0.child-container[com.sonicsw.maven.plugins:ESBPlugin] urls[0]

RE: Dependency version in manifest

2008-12-10 Thread Richard Chamberlain
You can specify the dependencies on the classpath of a manifest: plugins plugin artifactIdmaven-jar-plugin/artifactId configuration archive manifest addClasspathtrue/addClasspath /manifest /archive

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread Anders Hammar
Or *Test.java, or *TestCase.java. That's the names surefire is configured for by default. (http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#includes) I would suggest trying it in Eclipse first. If it works there, then there is some configuration issue for Maven. /Anders

Re: creating a JAR file of the source code in a war project

2008-12-10 Thread Wendy Smoak
On Wed, Dec 10, 2008 at 8:48 AM, Richard Chamberlain [EMAIL PROTECTED] wrote: I've got a standard war project. I'd like to jar up my source code and put it in WEB-INF/lib instead of compiling it to WEB-INF/classes. This would allow me to overlay it into another war project without mixing up

Can't generate POM file while deploying my own jar

2008-12-10 Thread Harshal Joshi
Hi All, I am trying to deploy my own jar in to .m2 repository using below command. mvn install:install-file -DgroupId=jsr168-api -DartifactId=jsr168-api -Dversion=1.0.0 -Dpackaging=jar -Dfile=D:\IBM\WebSphere\PortalServer\shared\app\jsr168-api.jar It deploy jar file in to my repository but it

Dependency version in manifest

2008-12-10 Thread John Coleman
Is there a way to inject the dependency version info of a project into the JARs manifest? TIA John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Maven lifecycle - Is there a run-only-once-in-a-lifetime phase?

2008-12-10 Thread Jaikiran
Thanks Wendy, i'll give that a try. Wendy Smoak-3 wrote: Try plugininheritedfalse/inherited... http://maven.apache.org/ref/2.0.9/maven-model/maven.html#class_plugin -- Wendy - To unsubscribe, e-mail: [EMAIL

Does requireProperty consider system environment variables?

2008-12-10 Thread Jaikiran
I am using Maven-2.0.9 and the enforcer plugin within my pom http://maven.apache.org/plugins/maven-enforcer-plugin/rules/index.html http://maven.apache.org/plugins/maven-enforcer-plugin/rules/index.html Within this plugin i am using the requireProperty rule to ensure that a environment

RE: Up-to-date release

2008-12-10 Thread Todd Thiessen
Comments within. --- Todd Thiessen -Original Message- From: sverhagen [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2008 6:07 PM To: users@maven.apache.org Subject: Up-to-date release Hi. We heavily use the Maven release plugin. Following scenario: * Developers

something like 'ant -propertyfile ...'

2008-12-10 Thread Torsten Werner
Hi, does maven support something like the command line option -propertyfile as in ant that allows overriding properties in a more compact way than multiple -Dkey=value options? Cheers, Torsten - To unsubscribe, e-mail: [EMAIL

Re: Does requireProperty consider system environment variables?

2008-12-10 Thread Stephen Connolly
Write a custom enforcer rule! 2008/12/10 Jaikiran [EMAIL PROTECTED] I am using Maven-2.0.9 and the enforcer plugin within my pom http://maven.apache.org/plugins/maven-enforcer-plugin/rules/index.html http://maven.apache.org/plugins/maven-enforcer-plugin/rules/index.html Within this plugin

Re: Does requireProperty consider system environment variables?

2008-12-10 Thread Jaikiran
Thanks, That answers my question :-) Stephen Connolly-2 wrote: Write a custom enforcer rule! -- View this message in context: http://www.nabble.com/Does-requireProperty-consider-system-environment-variables--tp20936086p20936504.html Sent from the Maven - Users mailing list archive at

RE: Reusing assembly descriptors aka. sharing them between projects

2008-12-10 Thread De Smet Ringo
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Stoneham Sent: dinsdag 9 december 2008 6:27 To: Maven Users List Subject: Re: Reusing assembly descriptors aka. sharing them between projects Now, you can use it as a descriptorRef, just

AW: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread Rouvinez, Jean-Claude
Hi, I tested it this way: Configuration: Maven version: 2.0.9 Java version: 1.5.0_09 OS name: windows xp version: 5.1 arch: x86 Family: windows 1). I renamed my test class from ServiceTest to ServiceXxx I run mvn clean install == The file was ignored 2). I renamed

Re: creating a JAR file of the source code in a war project

2008-12-10 Thread Jörg Schaible
Richard Chamberlain wrote at Mittwoch, 10. Dezember 2008 14:48: Hi, I've got a standard war project. I'd like to jar up my source code and put it in WEB-INF/lib instead of compiling it to WEB-INF/classes. This would allow me to overlay it into another war project without mixing

Re: Does requireProperty consider system environment variables?

2008-12-10 Thread Matthew Jaskula
I would have thought that 'env.JAVA_HOME' would have worked, but it appears that it does not. If you don't want to write a rule, it looks like you can workaround with an intermediate property. Just set a property to the value of the environment variable and enforce that property. A tiny bit more

Unable to determine if resource

2008-12-10 Thread formpost
Why am I getting this error. [ERROR] Unable to determine if resource bouncycastle:bcprov-jdk15:jar:135:test exists in http://repository.codehaus.org Thank you. -- View this message in context: http://www.nabble.com/Unable-to-determine-if-resource-tp20937748p20937748.html Sent from the Maven -

RE: something like 'ant -propertyfile ...'

2008-12-10 Thread Adam Leggett
I've never used it, but there is properties-maven-plugin in the mojo sandbox. http://haroon.sis.utoronto.ca/zarar/properties-maven-plugin/index.html You'll have to build it first I guess: https://svn.codehaus.org/mojo/trunk/sandbox/properties-maven-plugin/ Adam -Original Message-

Re: Up-to-date release

2008-12-10 Thread John Stoneham
On Wed, Dec 10, 2008 at 9:12 AM, Todd Thiessen [EMAIL PROTECTED] wrote: This causes fewer freezes of the main trunk. Someone can do a formal release and other devs can still commit to trunk and only see those changes in SNAPSHOT versions where they can get some soak before making a formal

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread CheapLisa
I should not have to name it anything but put an annotation there like @Test. This is OK with JUnit 4.x. Josh Suereth wrote: I believe the name of the class still matters. Try calling it Test*.java On Wed, Dec 10, 2008 at 12:16 AM, CheapLisa [EMAIL PROTECTED] wrote: I have JUnit

Re: something like 'ant -propertyfile ...'

2008-12-10 Thread Stephen Connolly
And beware... it will not do what you will want it to do! If the properties you want to substitute are ones that need to be resolved before starting the lifecycle, then that plugin is of no use to you... -Stephen 2008/12/10 Adam Leggett [EMAIL PROTECTED] I've never used it, but there is

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread John Stoneham
On Wed, Dec 10, 2008 at 12:16 AM, CheapLisa [EMAIL PROTECTED] wrote: I have JUnit 4.5 as a dependency in my maven pom and I have imported annotations into my test case but it is not recognizing the @Test and @Ignore annotations. I still have to preface the method name with test and the

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread Jörg Schaible
CheapLisa wrote at Mittwoch, 10. Dezember 2008 17:16: I should not have to name it anything but put an annotation there like @Test. This is OK with JUnit 4.x. Surefire cannot know which JUnit version you're going to use. So simply configure the includes of the surefire plugin to use any java

Re: FTP Site Deploy: possible to upgrade wagon?

2008-12-10 Thread Antony Stubbs
Please see: http://www.nabble.com/Apparent-Plugin-Version-Mismatch-with-maven-deploy-plugin-and-wagon-ftp-td17866020.html#a17875607 Paul Benedict-2 wrote: I am using Maven 2.0.9 and want to deploy my site using FTP. I was trying to upgrade my Wagon to get FTP directory copying support:

Re: deploy site using ftp? somebody any idea?

2008-12-10 Thread Antony Stubbs
Please see: http://www.nabble.com/Apparent-Plugin-Version-Mismatch-with-maven-deploy-plugin-and-wagon-ftp-td17866020.html#a17875607 David Delbecq wrote: UP: somebody any idea? En l'instant précis du 18/06/08 20:28, David Delbecq s'exprimait en ces termes: Hello, i try to deploy my

RE: something like 'ant -propertyfile ...'

2008-12-10 Thread Adam Leggett
If you want to do stuff like externalize plug-in configs etc i.e. properties that are interpolated post initialization. I tried that out with surefire and it worked for me. e.g. build.properties: skip.my.tests=true pom: project [...] build plugins

surefire - compatibility with ant/junit-batchtest XML - system-out and system-err

2008-12-10 Thread Matthias Grunwalde
Hi, Is surefire 2.4.3's XML output intended to be consumable by Ant 1.7.1's junitreport task? It seems to be mostly compatible, however, there seems to be a discrepancy - could surefire experts comment on this? Should the system-out.../system-out and system-err.../system-err elements be part of

Checking SCM infromation

2008-12-10 Thread Nord, James
Hi all, Is there a way to check that the SCM infromation provided in the pom is correct. example project in svn is http://myserver/repo/trunk/project1/pom.xml but scm defines connection as scm:svn:http://someotherserver/trunk/projectx/pom.xml I tried running mvn scm:validate but it just

RE: creating a JAR file of the source code in a war project

2008-12-10 Thread Richard Chamberlain
Yeah, I meant classes. That'll help while I restructure the project. Thanks Guys! -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: 10 December 2008 13:57 To: Maven Users List Subject: Re: creating a JAR file of the source code in a war project On Wed, Dec 10, 2008

mvn classworlds:uberjar

2008-12-10 Thread Paul Hammant
There was a conversion on this list in August that suggested jarjar, minijar shade style of working. Selenium needs to bundle Jetty in its server jar. Jetty is notoriously hard to 'shade' given there are a gazillion fine grained issues around reflection and other dependancies like the

Re: something like 'ant -propertyfile ...'

2008-12-10 Thread Torsten Werner
On Wed, Dec 10, 2008 at 5:11 PM, Adam Leggett [EMAIL PROTECTED] wrote: I've never used it, but there is properties-maven-plugin in the mojo sandbox. It is useful for me. Thank you! Torsten - To unsubscribe, e-mail: [EMAIL

Force build of another eclipse project?

2008-12-10 Thread Chris
Is there a way for one Maven/Eclipse project to force the build of another? I asked this question once before, and the answer was to create a reactor project and make the dependent projects modules. This is not possible; we can't rearrange our directory structures. These two projects are

Re: Force build of another eclipse project?

2008-12-10 Thread Baptiste MATHUS
Well, I'm not aware of such a command. But what do you mean by they are peers. If they are compulsorily side by side, then you could design a parent pom to make them related. Note: are you using subversion? If so, the you might be able to use svn:external keyword to create a virtual parent

Re: something like 'ant -propertyfile ...'

2008-12-10 Thread Tomislav Stojcevich
You can put the default values in a properties section in your pom, then over-ride them in your default profile in settings.xml file or an alternate settings.xml file. If using an alternate settings.xml file you can specify it's location by using --settings path/to/settings.xml or (-s for

How to have a single log4j.xml file in a multi-module project?

2008-12-10 Thread CheapLisa
I have a project with many modules (over 30) and some are nested 2-3 deep. With Maven / Log4J I have to put two log4j.xml files in every module: src/main/resources/log4j.xml src/test/resources/log4j.xml This is usually the same file over and over again.

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread CheapLisa
I'm not sure I understand. I don't have the surefire plugin in any of my pom's. It's in the superpom so I can use it from there. I have a multi-module project. L Jörg Schaible-2 wrote: CheapLisa wrote at Mittwoch, 10. Dezember 2008 17:16: I should not have to name it anything but

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread CheapLisa
I looked at my effective pom. I have a dependency there on JUnit 4.5. The only reference to surefire was maven-surefire-reports-plugin in the reporting section. how do I know that surefire is using my dependency of JUnit 4.5? Is maven bundled with another version of JUnit and using an earlier

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread CheapLisa
What's Eclipse? Also JUnit4 annotations have no restrictions on file nameing if annotations are used. I simply want to use the JUnit4 features and not name my files the JUnit 3.x way. L Anders Hammar wrote: Or *Test.java, or *TestCase.java. That's the names surefire is configured for

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread CheapLisa
What is the name of your test? L Anders Hammar wrote: Hi, Just tried it and it works for me, both in Eclipse and from command prompt. How are you executing? /Anders CheapLisa wrote: I have JUnit 4.5 as a dependency in my maven pom and I have imported annotations into my

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread CheapLisa
I can get my tests to execute if the class name ends in Test.java and only if the method begins with testSomeMethod. otherwise the test will not run. I should be able to name the class anything I want (not include Test), extend TestCase and name the method anything I want as long as there is an

Re: How to run JUnit tests in sub-modules without surefire reference?

2008-12-10 Thread CheapLisa
I did this and only see a reference to maven-surefire-reports in the reporting section but not elsewhere. My objective is to clean up my pom's and not repeat what is not really needed. It seams like having a reference to surefire in a build section in every module pom is tedious to include and

Re: How to run JUnit tests in sub-modules without surefire reference?

2008-12-10 Thread CheapLisa
thanks, what is the difference between dependency and dependencyManagement? thanks L Stephen Connolly-2 wrote: You could add junit as a test dependency to your parent pom... that is a dependency not dependencyManagement Might cause more problems than it fixes though! -Stephen

Re: java.lang.NoClassDefFoundError: org/codehaus/plexus/util/xml/XmlStreamReader

2008-12-10 Thread Dennis Lundberg
You need Maven 2.0.6+ to be able to override plexus-utils. Which version of Maven are you using on the Linux server? Stefan Fritz wrote: Hi all, we have a custom Maven plugin to package artifacts for our ESB. The plugin works fine on my Windows machine (WinXP, Maven 2.0.9, Sun JDK 5) but

RE: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread Martin Gainty
place the groupId/artifactId/version in the dependencies in dependencyManagement Section of the parent pom project ... dependencyManagement dependencies dependency groupIdgroup-a/groupId artifactIdartifact-a/artifactId version1.0/version

Using a SNAPSHOT version for a parent

2008-12-10 Thread Todd Thiessen
If I deploy a SNAPSHOT version of a parent POM, POMs that reference it do not automatically download (even when running a bootstrap profile). ie: Is this supported? parent artifactIdtheid/artifactId groupIdthegroup/groupId version0.0.1-SNAPSHOT/version /parent If the artifact

Re: Is Maven / JUnit 4.x broken (annotations)

2008-12-10 Thread Jörg Schaible
CheapLisa wrote: I'm not sure I understand. I don't have the surefire plugin in any of my pom's. Well, if you're not pleased with its default configuration, then it's time to configure it yourself. - Jörg - To

Re: How to run JUnit tests in sub-modules without surefire reference?

2008-12-10 Thread Stephen Connolly
dependencyManagement is used to specify what version to use *if* the artifact is specified as a dependency dependencies specifies which artifacts are dependencies Sent from my iPod On 10 Dec 2008, at 20:53, CheapLisa [EMAIL PROTECTED] wrote: thanks, what is the difference between

Re: How to have a single log4j.xml file in a multi-module project?

2008-12-10 Thread Stephen Connolly
put it in a jar file (make a module just for it) and add that module as a dependency to all the projects that need it Sent from my iPod On 10 Dec 2008, at 20:35, CheapLisa [EMAIL PROTECTED] wrote: I have a project with many modules (over 30) and some are nested 2-3 deep. With Maven /

Re: mvn classworlds:uberjar

2008-12-10 Thread Jörg Schaible
Hi Paul, Paul Hammant wrote: There was a conversion on this list in August that suggested jarjar, minijar shade style of working. Selenium needs to bundle Jetty in its server jar. Jetty is notoriously hard to 'shade' given there are a gazillion fine grained issues around reflection and

Re: How to run JUnit tests in sub-modules without surefire reference?

2008-12-10 Thread Wayne Fay
thanks, what is the difference between dependency and dependencyManagement? The Maven website, various free PDFs (Better Builds with Maven etc), and Google can all answer this question for you: http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html Wayne

Re: Force build of another eclipse project?

2008-12-10 Thread John Stoneham
On Wed, Dec 10, 2008 at 2:17 PM, Baptiste MATHUS [EMAIL PROTECTED] wrote: Well, I'm not aware of such a command. But what do you mean by they are peers. If they are compulsorily side by side, then you could design a parent pom to make them related. You don't actually need any sort of virtual

RE: Dependency version in manifest

2008-12-10 Thread John Coleman
I didn't want a classpath entry, so I decided to include the pom in the JAR as a workaround. Thanks, John -Original Message- From: Richard Chamberlain [mailto:[EMAIL PROTECTED] Sent: 10 December 2008 13:36 To: Maven Users List Subject: RE: Dependency version in manifest You

Re: mvn classworlds:uberjar

2008-12-10 Thread Paul Hammant
There's one-jar now as a replacement for uber-jar. It looks much faster - I'm running with that. Cheers, - Paul On Dec 10, 2008, at 1:49 PM, Jörg Schaible wrote: Hi Paul, Paul Hammant wrote: There was a conversion on this list in August that suggested jarjar, minijar shade style of

Re: Using a SNAPSHOT version for a parent

2008-12-10 Thread Brian Fox
Yes it's right but make sure you have enabled snapshots for the repo in question. By default only releases are enabled for repos --Brian (mobile) On Dec 10, 2008, at 4:19 PM, Todd Thiessen [EMAIL PROTECTED] wrote: If I deploy a SNAPSHOT version of a parent POM, POMs that reference it do

[2.0.10 RC] please test

2008-12-10 Thread Brian E. Fox
Hello, This RC fixes the SCP wagon problem identified in RC2 (MNG-3717). We have reverted the 2.0.x branch back to use wagon beta-2 where it was historically for stability. Users that require fixes for wagon beta-3+ should use 2.1.0-M1 instead. Here's the list of issues fixed in 2.0.10:

How to disable surefire generate report

2008-12-10 Thread youhaodeyi
I want to disable surefire generating report because it is very slow. If I set skip to true it will disable running unit test. I only want to disable generating report but not running unit test. How can I do this? thanks. -- View this message in context:

Re: How to disable surefire generate report

2008-12-10 Thread Barrie Treloar
On Thu, Dec 11, 2008 at 1:11 PM, youhaodeyi [EMAIL PROTECTED] wrote: I want to disable surefire generating report because it is very slow. If I set skip to true it will disable running unit test. I only want to disable generating report but not running unit test. How can I do this? Why is

Re: How to disable surefire generate report

2008-12-10 Thread youhaodeyi
I run mvn package which include mvn test and the test process costs too much resource in my computer. During this time, I almost can't do other things. So I want to disable generating report. baerrach wrote: On Thu, Dec 11, 2008 at 1:11 PM, youhaodeyi [EMAIL PROTECTED] wrote: I want to

Re: java.lang.NoClassDefFoundError: org/codehaus/plexus/util/xml/XmlStreamReader

2008-12-10 Thread Stefan Fritz
Both machines use Maven 2.0.9: Maven version: 2.0.9 Java version: 1.5.0_12 OS name: linux version: 2.6.9-78.0.5.elsmp arch: i386 Family: unix Maven version: 2.0.9 Java version: 1.5.0_14 OS name: windows xp version: 5.1 arch: x86 Family: windows -Stefan Dennis Lundberg wrote: You need Maven

Re: java.lang.NoClassDefFoundError: org/codehaus/plexus/util/xml/XmlStreamReader

2008-12-10 Thread Brett Porter
When this happened to me last I needed to change the version of plexus- utils being used in the project to a later one (1.5.x). - Brett On 11/12/2008, at 3:34 PM, Stefan Fritz wrote: Both machines use Maven 2.0.9: Maven version: 2.0.9 Java version: 1.5.0_12 OS name: linux version:

Re: Dependency version in manifest

2008-12-10 Thread Brett Porter
the POM (both in XML and properties form) are already included in the JAR by default, so you can retrieve the version from those. Also see: http://maven.apache.org/guides/mini/guide-manifest.html for how to add the version to the manifest itself. - Brett On 11/12/2008, at 4:10 AM, John

Re: where is my wagon's dependency??

2008-12-10 Thread Dan Tran
I ended up to put oro, commons-net and wagon-file to maven.home/lib directory. But still dont understand why that step is needed. Thanks -D On Mon, Dec 8, 2008 at 9:13 PM, Dan Tran [EMAIL PROTECTED] wrote: Hi I add wagon-ftp-beta-4 to wagon-maven-plugin-beta-2-snapshot dependency and run

Re: where is my wagon's dependency??

2008-12-10 Thread Dan Tran
i meant wagon-ftp On Wed, Dec 10, 2008 at 10:09 PM, Dan Tran [EMAIL PROTECTED] wrote: I ended up to put oro, commons-net and wagon-file to maven.home/lib directory. But still dont understand why that step is needed. Thanks -D On Mon, Dec 8, 2008 at 9:13 PM, Dan Tran [EMAIL PROTECTED]

Re: Does requireProperty consider system environment variables?

2008-12-10 Thread Jaikiran
Matthew, That's a good idea :) I had thought about it once, but then i guessed that if the JAVA_HOME is not set, then the intermediate property would be set to the literal ${env.JAVA_HOME} by the following: properties javaHome${env.JAVA_HOME}/javaHome /properties Let me give it a try and

Re: How to disable surefire generate report

2008-12-10 Thread Barrie Treloar
On Thu, Dec 11, 2008 at 2:10 PM, youhaodeyi [EMAIL PROTECTED] wrote: I run mvn package which include mvn test and the test process costs too much resource in my computer. During this time, I almost can't do other things. So I want to disable generating report. This has nothing to do with

Re: Does requireProperty consider system environment variables?

2008-12-10 Thread Jaikiran
Great, the intermediate property trick works! Here's what i did: properties java.home${JAVA_HOME}/java.home /properties Then in the enforcer plugin: requireProperty propertyjava.home/property messagePlease set JAVA_HOME/message /requireProperty Thanks for the help :) Jaikiran wrote:

Re: java.lang.NoClassDefFoundError: org/codehaus/plexus/util/xml/XmlStreamReader

2008-12-10 Thread Stefan Fritz
--* SOLVED *-- I „solved“ it. The issue was that some plugin dependencies couldn't be resolved. I ran help:effective-pom which was identical for Linux and windows, then I ran dependency:resolve-plugins I got no error on both systems although the plugins dependencies list was much shorter on

Re: where is my wagon's dependency??

2008-12-10 Thread Brett Porter
does wagon-ftp beta-2 work without this? There were a couple of extension bugs fixed in 2.0.10 - that might be worth trying as well. - Brett On 09/12/2008, at 4:13 PM, Dan Tran wrote: Hi I add wagon-ftp-beta-4 to wagon-maven-plugin-beta-2-snapshot dependency and run mvn wagon:list

Re: mvn classworlds:uberjar

2008-12-10 Thread Jörg Schaible
Paul Hammant wrote at Donnerstag, 11. Dezember 2008 00:29: There's one-jar now as a replacement for uber-jar. It looks much faster - I'm running with that. In M1 we used javaapp instead - I suppose this did the same. - Jörg