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
---
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 -Dw
--* 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
Great, the intermediate property trick works!
Here's what i did:
${JAVA_HOME}
Then in the enforcer plugin:
java.home
"Please set JAVA_HOME"
Thanks for the help :)
Jaikiran wrote:
>
> Matthew,
>
> That's a good idea :)
>
> Let me give it a try and see how it behaves. Will post t
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 wi
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:
${env.JAVA_HOME}
Let me give it a try and see how it behaves. Will post the outco
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 PRO
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
>
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 Col
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: "2.6.9-7
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:
Y
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 wa
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?
W
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:
http://www.nabble.com/How-to-disable-su
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:
http://j
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
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 work
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
>
>
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 vir
> 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
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 reflectio
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 /
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 depende
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 unsubscr
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?
theid
thegroup
0.0.1-SNAPSHOT
If the artifact already exists in my local repo, everything is fine.
However, if I
place the groupId/artifactId/version in the dependencies in
dependencyManagement Section of the parent pom
...
group-a
artifact-a
1.0
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
hth
Martin
__
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)
thanks, what is the difference between dependency and dependencyManagement?
thanks
L
Stephen Connolly-2 wrote:
>
> You could add junit as a test to your parent pom... that is a
> dependency not dependencyManagement
>
> Might cause more problems than it fixes though!
>
> -Stephen
>
>
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 m
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
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 annotat
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
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 v
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
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.
You can put the default values in a 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 short).
--tom
-
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 direc
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 pee
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
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 se
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 a
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 check
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 ... and ...
elements be part of the , or attached to the in which
they were
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:
[...]
[...]
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 deplo
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:
>
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 ja
>> 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
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 pro
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:
>
>>
>>
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 form
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-
From
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 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 c
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 withou
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 r
> -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
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
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
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 PR
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:
> * Devel
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 property
Thanks Wendy, i'll give that a try.
Wendy Smoak-3 wrote:
>
>
> Try false...
>
> http://maven.apache.org/ref/2.0.9/maven-model/maven.html#class_plugin
>
> --
> Wendy
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For a
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
> mixin
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
Sent: Wed Dec 10 08:48
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 fun
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
You can specify the dependencies on the classpath of a manifest:
maven-jar-plugin
true
See the Jar Plugin documentation:
http://maven.apache.org/plugins/maven-jar-plugin/
Is that w
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]
=
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]
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
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 's
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'
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
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 @I
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]
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 th
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 ca
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: \jaxb\first\sr
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 annotation
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 unsubscribe,
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.
Claus
82 matches
Mail list logo