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.
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
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.
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:
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
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]
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
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
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'
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
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
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
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
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]
You can specify the dependencies on the classpath of a manifest:
plugins
plugin
artifactIdmaven-jar-plugin/artifactId
configuration
archive
manifest
addClasspathtrue/addClasspath
/manifest
/archive
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
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
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
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]
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
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
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
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
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
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
-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
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
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
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
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 -
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-
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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 /
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
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
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
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
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
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
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:
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:
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
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
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
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:
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
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
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]
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
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
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:
--* 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
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
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
82 matches
Mail list logo