Re: How do you specify that only a given execution id of the surefire plugin should run?

2012-03-12 Thread Kristian Rosenvold
This is undocumented, un-intentional and mostly un-nice.

Run with forkMode=always, and surefire will only fork when there are
tests to run.

Kristian

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: [ANN] Clirr Maven Plugin 2.4 Released

2012-03-12 Thread Mark Derricutt
For some reason I've never been able to get this plugin to actually do 
what I think it should be doing.


For example, I just commented out a method declaration in an interface, 
thinking to myself well surely THAT breaks the previous API... but 
clirr just ignores it.


I do see an odd message tho:

[INFO] --- clirr-maven-plugin:2.4:check (default-cli) @ smx3.api ---
[INFO] Comparing to version: 5.0.20

[INFO] smx3.api.ApplicationManager: Class smx3.api.ApplicationManager added

This is the interface I changed, in fact - ALL classes in the various 
artifacts list here saying added, however - since they were in the 
previous released artifact, are they really added?


Mark

PS: I probably should take this to a clirr specific list, but I'm here 
currently :)




On 12/03/12 7:27 AM, Dennis Lundberg wrote:

To get this update, simply specify the version in your project's plugin
configuration:




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



How to tell EAR packager to use the exact names created by addClasspathtrue/addClasspath?

2012-03-12 Thread Markus Karg
I am using the ear and acr plugins to build an ear that contains an
app-client. It all works well but one thing is always wrong:

 

The car must use addClasspathtrue/addClasspath so the client will
find the needed libraries. When those libraries are SNAPSHOTs, the
created manifest entry contains not SNAPSHOT but the latest date (as
usual with SNAPSHOTs). But the ear plugin doesn't care for this. It
always uses SNAPSHOT (the word, not the latest version). As a result,
at runtime the client will not find the needed libraries, as it looks
for it by date, but it actually is named SNAPSHOT.

 

For me this looks like a bug in the conception of the EAR plugin: It
must not statically build the name from the version string, but it
certainly needs to use the actual name of the artifact (here: the date
of the snapshot).

 

Is that really a bug or am I too dumb to see the light? ;-)

 

Regards

Markus



Re: (Re-)Deploy artifacts to (different) repositories

2012-03-12 Thread M. Richey

Thanks Wayne. I'm asking for it because Manfred mentioned that it works with 
the OSS version as well, just without Smart Proxy. And I would like to get that 
up and running as soon as possible not waiting until it did it's way through 
the purchasing department...

/Maik
 

 Original-Nachricht 
 Datum: Sun, 11 Mar 2012 19:39:16 -0500
 Von: Wayne Fay wayne...@gmail.com
 An: Maven Users List users@maven.apache.org
 Betreff: Re: (Re-)Deploy artifacts to (different) repositories

  And how to get it done with the OSS version (i.e. without Smart Proxy)
 plz?
 
 Things like this are why some companies choose to pay for Nexus Pro
 and how Sonatype chooses to differentiate the OSS from the Pro
 versions.
 
 Wayne
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: How to tell EAR packager to use the exact names created by addClasspathtrue/addClasspath?

2012-03-12 Thread Anders Hammar
Sounds like a bug when building a multi-module project. File a JIRA
ticket with a test project to recreate the issue.
Also, if you're not using Maven 3, try to build with that as well to
see if that solves the problem.

/Anders

On Mon, Mar 12, 2012 at 10:06, Markus Karg k...@quipsy.de wrote:
 I am using the ear and acr plugins to build an ear that contains an
 app-client. It all works well but one thing is always wrong:



 The car must use addClasspathtrue/addClasspath so the client will
 find the needed libraries. When those libraries are SNAPSHOTs, the
 created manifest entry contains not SNAPSHOT but the latest date (as
 usual with SNAPSHOTs). But the ear plugin doesn't care for this. It
 always uses SNAPSHOT (the word, not the latest version). As a result,
 at runtime the client will not find the needed libraries, as it looks
 for it by date, but it actually is named SNAPSHOT.



 For me this looks like a bug in the conception of the EAR plugin: It
 must not statically build the name from the version string, but it
 certainly needs to use the actual name of the artifact (here: the date
 of the snapshot).



 Is that really a bug or am I too dumb to see the light? ;-)



 Regards

 Markus


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Antwort: Maven error: Embedded error: Not a root project: org.sonar.api.batch.bootstrap.ProjectDefinition@1bc5130a

2012-03-12 Thread thorsten . heit
Hi,

 running the command mvn sonar:sonar works fine on my project...
 however attempting to run mvn install against the following POM
 throws the stack trace below...can anyone explain this?  thank you!

Just a wild guess:

You have specified that your project is an aggregator project:

 packagingpom/packaging

and you want to run Sonar on a project that doesn't contain any 
sources...?


Regards

Thorsten

No versions available for ....:[0,) within specified range

2012-03-12 Thread motes motes
I have a project that all of the suddenly fails with the following error:


ar:1.3.100.v20110321 (compile),
org.eclipse.equinox:org.eclipse.equinox.common:jar:3.6.0.v20100503
(compile), 
org.eclipse.equinox:org.eclipse.equinox.preferences:jar:3.4.1.R37x_v2011
0725 (compile),
org.eclipse.equinox:org.eclipse.equinox.registry:jar:3.5.0.v20100503
(compile), org.eclipse:org.eclipse.osgi.services:jar:3.3.0.v20110513
(compile), org.eclipse:org.e
clipse.osgi:jar:3.7.1.r37x_v20110808 (compile),
org.eclipse.update:org.eclipse.update.configurator:jar:3.3.100
(compile), org.w3c:org.w3c.css.sac:jar:1.3.0.v200805290154 (compile),
o
rg.w3c.dom:org.w3c.dom.smil:jar:1.0.0 (compile),
org.w3c:org.w3c.dom.svg:jar:1.1.0.v201011041433 (compile),
org.w3c.tidy:org.w3c.tidy:jar:1.4.2_05 (compile),
org.slf4j:slf4j-api:jar:
1.6.1 (compile), ch.qos.logback:logback-classic:jar:0.9.27 (runtime),
ch.qos.logback:logback-core:jar:0.9.27 (runtime)]: No versions
available for org.apache.batik:org.apache.batik.e
xt.awt:jar:[0,) within specified range - [Help 1]

All the above artifacts are available in nexus but for some reason I now get:

No versions available for
org.apache.batik:org.apache.batik.ext.awt:jar:[0,) within specified
range - [Help 1]

this is how I specify the dependency:

dependency
  groupIdorg.apache/groupId
  artifactIdorg.apache.batik.ext.awt/artifactId
  version1.6.0.v201011041432/version
/dependency

using maven 3.0.3 on windows 7. The build have worked just fine
before, any ideas what might be causing this?

I found this:

http://jira.codehaus.org/browse/MNG-2742

which people also report with Maven 3.0.3.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



maven default timeout

2012-03-12 Thread guillaume . boucherie
Hi all,

I'm facing timeout problem when I run maven command.
In fact maven can't find artifact and failed with this message :

[ERROR] Failed to execute goal on project sweetdev-ria-selenium-helpers: 
Could not resolve dependencies for project 
sweetdev-ria.test:sweetdev-ria-selenium-helpers:jar:4.1-SNAPSHOT: Could 
not transfer artifact xalan:xalan:jar:2.7.1 from/to mirrorId (
http://sweetdev.group.echonet/ipa-repository/content/groups/proxy/): No 
response received after 6 - [Help 1]

I'm behind a proxy and sometimes its take time for the proxy to deliver 
resources.

Can I increase the default timeout and how to do ?

Thanks

Guillaume Boucherie


This message and any attachments (the message) is
intended solely for the intended addressees and is confidential. 
If you receive this message in error,or are not the intended recipient(s), 
please delete it and any copies from your systems and immediately notify
the sender. Any unauthorized view, use that does not comply with its purpose, 
dissemination or disclosure, either whole or partial, is prohibited. Since the 
internet 
cannot guarantee the integrity of this message which may not be reliable, BNP 
PARIBAS 
(and its subsidiaries) shall not be liable for the message if modified, changed 
or falsified. 
Do not print this message unless it is necessary,consider the environment.

--

Ce message et toutes les pieces jointes (ci-apres le message) 
sont etablis a l'intention exclusive de ses destinataires et sont confidentiels.
Si vous recevez ce message par erreur ou s'il ne vous est pas destine,
merci de le detruire ainsi que toute copie de votre systeme et d'en avertir
immediatement l'expediteur. Toute lecture non autorisee, toute utilisation de 
ce message qui n'est pas conforme a sa destination, toute diffusion ou toute 
publication, totale ou partielle, est interdite. L'Internet ne permettant pas 
d'assurer
l'integrite de ce message electronique susceptible d'alteration, BNP Paribas 
(et ses filiales) decline(nt) toute responsabilite au titre de ce message dans 
l'hypothese
ou il aurait ete modifie, deforme ou falsifie. 
N'imprimez ce message que si necessaire, pensez a l'environnement.


Re: maven default timeout

2012-03-12 Thread Olivier Lamy
which maven version are you using ?
mvn -v
As said in RN (http://maven.apache.org/docs/3.0.4/release-notes.html)
it's now 30 minutes

2012/3/12  guillaume.bouche...@externe.bnpparibas.com:
 Hi all,

 I'm facing timeout problem when I run maven command.
 In fact maven can't find artifact and failed with this message :

 [ERROR] Failed to execute goal on project sweetdev-ria-selenium-helpers:
 Could not resolve dependencies for project
 sweetdev-ria.test:sweetdev-ria-selenium-helpers:jar:4.1-SNAPSHOT: Could
 not transfer artifact xalan:xalan:jar:2.7.1 from/to mirrorId (
 http://sweetdev.group.echonet/ipa-repository/content/groups/proxy/): No
 response received after 6 - [Help 1]

 I'm behind a proxy and sometimes its take time for the proxy to deliver
 resources.

 Can I increase the default timeout and how to do ?

 Thanks

 Guillaume Boucherie


 This message and any attachments (the message) is
 intended solely for the intended addressees and is confidential.
 If you receive this message in error,or are not the intended recipient(s),
 please delete it and any copies from your systems and immediately notify
 the sender. Any unauthorized view, use that does not comply with its purpose,
 dissemination or disclosure, either whole or partial, is prohibited. Since 
 the internet
 cannot guarantee the integrity of this message which may not be reliable, BNP 
 PARIBAS
 (and its subsidiaries) shall not be liable for the message if modified, 
 changed or falsified.
 Do not print this message unless it is necessary,consider the environment.

 --

 Ce message et toutes les pieces jointes (ci-apres le message)
 sont etablis a l'intention exclusive de ses destinataires et sont 
 confidentiels.
 Si vous recevez ce message par erreur ou s'il ne vous est pas destine,
 merci de le detruire ainsi que toute copie de votre systeme et d'en avertir
 immediatement l'expediteur. Toute lecture non autorisee, toute utilisation de
 ce message qui n'est pas conforme a sa destination, toute diffusion ou toute
 publication, totale ou partielle, est interdite. L'Internet ne permettant pas 
 d'assurer
 l'integrite de ce message electronique susceptible d'alteration, BNP Paribas
 (et ses filiales) decline(nt) toute responsabilite au titre de ce message 
 dans l'hypothese
 ou il aurait ete modifie, deforme ou falsifie.
 N'imprimez ce message que si necessaire, pensez a l'environnement.



-- 
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: (Re-)Deploy artifacts to (different) repositories

2012-03-12 Thread Wayne Fay
 Thanks Wayne. I'm asking for it because Manfred mentioned that it works with
 the OSS version as well, just without Smart Proxy. And I would like to get

In that case, please take this discussion to the proper Nexus user
lists as it is no longer relevant here.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: (Re-)Deploy artifacts to (different) repositories

2012-03-12 Thread Manfred Moser

On 12-03-11 05:39 PM, Wayne Fay wrote:

And how to get it done with the OSS version (i.e. without Smart Proxy) plz?

Things like this are why some companies choose to pay for Nexus Pro
and how Sonatype chooses to differentiate the OSS from the Pro
versions.

Wayne



Keep in mind that up to Nexus 2 this feature did not exist. Like I said 
earlier you have to play with the Expiration Settings for you 
repositories to get the right mix of regular updates (low settings) and 
the performance impact on your Nexus setup. Also keep in mind this all 
only really applies if you are running multiple Nexus instances..


manfred

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Maven vs Git

2012-03-12 Thread Diacre
I'm not sure if this is the right place but here it goes. 

I have a github project that I wrote in Java using Eclipse. 
The question is, how do I import my project into Maven? 
Is there a guide that can help me? 

Please help,

Thanks,

Concerned user. 

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Can Maven tell Eclipse/m2eclipse to include generated code in classpath?

2012-03-12 Thread Ward, Nathan
I'm using the cxf-codegen-plugin to generate code from wsdl. The generated code 
goes into /target/generated/cxf. Is there a way to specify in the pom file that 
this code should be included in the Eclipse classpath? I need to reference this 
code from my code, but I don't want to put the generated code under version 
control and therefore don't want to move it to /src/main/java. However, if I 
leave it under /target/generated/cxf, then I have to configure my project in 
Eclipse to include /target/generated/cxf in the Eclipse classpath. This is no 
fun as I have to make this step part of the setup procedures that other 
developers have to do before they can start working with the code. Someone told 
me that this is not an issue when using NetBeans because the NetBeans/Maven 
component automatically includes the generated code in the classpath. Is there 
a better solution? Is there any articles on this topic that lays out the 
possible approaches and carefully weighs the pros and cons of each?

Thanks,

Nathan


Re: Maven vs Git

2012-03-12 Thread Dave King
Git is a source control management system.

Maven builds things.

Please clarify what you want to do.

Regards,
Dave.

On Mar 12, 2012, at 10:55 AM, Diacre wrote:

 I'm not sure if this is the right place but here it goes. 
 
 I have a github project that I wrote in Java using Eclipse. 
 The question is, how do I import my project into Maven? 
 Is there a guide that can help me? 
 
 Please help,
 
 Thanks,
 
 Concerned user. 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Issue with maven-plugin-plugin: For two artifacts which have the same groupId, goalPrefix is not resolved correctly.

2012-03-12 Thread Dhawan Gayash

Hi,

I am trying to write two plugins with the same groupId and goal but 
different artifactId. For example.


com.foo.bar.myOne-maven-plugin  com.foo.bar.myTwo-maven-plugin

In both these plugins I would like to configure goalPrefixes as myone 
and mytwo. I am using maven-plugin-plugin for doing this with version 2.3


When I use mvn myone:GOAL it works fine. However when I use mvn 
mytwo:GOAL it still executes the myone plugin.


When I checked the depot location for how these plugins have been 
provisioned I find the maven-metadata-local.xml file to have these configs.



|$/ cd /usr/local/.m2/repositories/3.0/com/foo/bar/
$/ cat maven-metadata-local.xml

?xml version=1.0 encoding=UTF-8?
metadata
plugins
plugin
nameMy First Plugin/name
prefixmyone/prefix
artifactIdmyOne-maven-plugin/artifactId
/plugin
plugin
nameMy Second Plugin/name
prefixmytwo/prefix
artifactIdmyOne-maven-plugin/artifactId !-- SHOULD BEEN 
myTwo-maven-plugin --

/plugin
/plugins
/metadata|

This is a bug in maven-plugin-plugin version 2.3. Has this issue been 
resolved or should I file this bug in JIRA.


Steps to reproduce the bug:

1.) Take two artifacts with same groupId.
2.) Configure goalPrefix by using maven-plugin-plugin. For both the plugins
build
plugins
plugin
artifactIdmaven-plugin-plugin/artifactId
version2.3/version
configuration
goalPrefixmyone/goalPrefix
/configuration
/plugin
/plugins
/build
3.) Provision these plugins into your local repo.
4.) Execute the plugins using goalPrefix. And for further investigation 
please check the maven-metadata-local.xml



Thanks,
Dhawan



Re: Maven vs Git

2012-03-12 Thread Ben Caradoc-Davies
You need to create a Maven project and then restructure your source code 
folder layout to conform to the Maven conventions:

http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html

Once you are able to build your software with mvn clean install you 
will be able to deploy Maven artifacts to Maven repositories.


Kind regards,
Ben.

On 13/03/12 00:55, Diacre wrote:

I'm not sure if this is the right place but here it goes.

I have a github project that I wrote in Java using Eclipse.
The question is, how do I import my project into Maven?
Is there a guide that can help me?

Please help,

Thanks,

Concerned user.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org




--
Ben Caradoc-Davies ben.caradoc-dav...@csiro.au
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Maven 2 can not use Alternate Doclets

2012-03-12 Thread Tim Wu T
I had found the reason why it not runs. I add the following info in the pom, it 
generate the docs:

executions
execution
idattach-javadocs/id
goals
goaljar/goal
/goals
/execution
/executions

I just curious, if I do not add this, what will happen?

Br,
Tim

-Original Message-
From: Tim Wu T [mailto:tim.t...@ericsson.com] 
Sent: Tuesday, March 13, 2012 10:26 AM
To: Maven Users List
Subject: Maven 2 can not use Alternate Doclets

Hi there,

I am trying to use maven javadoc plugin generate customized java-doc, I found 
Maven 3 works well, it can identify our defined doclet, however, maven 2 do not 
recognized it.

The related plugin info can be found as follows:
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-javadoc-plugin/artifactId
version2.8/version
configuration
docletxx.MyDoclet/doclet
docletArtifacts
docletArtifact

groupIdxx.mydoc.generator/groupId

artifactIdgenerator/artifactId

version0.1-SNAPSHOT/version
/docletArtifact
/docletArtifacts

destDir${project.basedir}/docgen/destDir
additionalparam-outputfile 
my.html/additionalparam

useStandardDocletOptionstrue/useStandardDocletOptions
subpackagesaa.bb.cc.test/subpackages
/configuration
/plugin

Do you know why? Great thanks for your help.

Br,
Tim


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven vs Git

2012-03-12 Thread Barrie Treloar
On Tue, Mar 13, 2012 at 12:55 PM, Ben Caradoc-Davies
ben.caradoc-dav...@csiro.au wrote:
 You need to create a Maven project and then restructure your source code
 folder layout to conform to the Maven conventions:
 http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html

 Once you are able to build your software with mvn clean install you will
 be able to deploy Maven artifacts to Maven repositories.

Plus the free books at http://maven.apache.org/articles.html will
answer your questions.
You will find reading the books to gain some knowledge first will
improve your chances of getting a satisfactory reply to questions.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Can Maven tell Eclipse/m2eclipse to include generated code in classpath?

2012-03-12 Thread Barrie Treloar
On Tue, Mar 13, 2012 at 6:49 AM, Ward, Nathan nw...@merlin-intl.com wrote:
 I'm using the cxf-codegen-plugin to generate code from wsdl. The generated 
 code goes into /target/generated/cxf. Is there a way to specify in the pom 
 file that this code should be included in the Eclipse classpath? I need to 
 reference this code from my code, but I don't want to put the generated code 
 under version control and therefore don't want to move it to /src/main/java. 
 However, if I leave it under /target/generated/cxf, then I have to configure 
 my project in Eclipse to include /target/generated/cxf in the Eclipse 
 classpath. This is no fun as I have to make this step part of the setup 
 procedures that other developers have to do before they can start working 
 with the code. Someone told me that this is not an issue when using NetBeans 
 because the NetBeans/Maven component automatically includes the generated 
 code in the classpath. Is there a better solution? Is there any articles on 
 this topic that lays out the possible approaches and carefully weighs the 
 pros and cons of each?

If this is a m2eclipse question, you should direct it to the m2e mailing list.
http://www.eclipse.org/m2e/

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Problem using maven-site-plugin:3.0

2012-03-12 Thread Tolga Ercan
Hello,

I'm experiencing a problem where the site plugin is looking for my parent POM 
from the central maven repo instead of my configured remote repos. Here are the 
circumstances:

1) settings.xml
- configured to access 2 in-house nexus repos

2) corporate super-pom
- also configured to add an additional corporate repo

3) standards pom
- Is child of corporate super-pom
- Standardizes our plugin usage, dependencies, etc...

4) my pom
- Is child of standards pom

So, when i run mvn clean install everything works fine, and artifacts are 
looked up via:
1) corporate build repo
2) corporate proxy repo
3) maven central

But when i run mvn clean install site the site goal breaks because it cannot 
find the standards pom in maven central. This is the part I don't 
understand... why can't the site plugin see the other repo's that have been 
configured?

Additionally, I've managed to get this to work if I declare the remote repo in 
the standards pom which is very hacky to me... when i run effective-pom, 
the repos are all inherited properly, but it's only the site plugin that 
cannot see it.

Any suggestions?

Much appreciated!
~t
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



sensible way to default maven properties?

2012-03-12 Thread Russ Tremain

Hi,

I'm wondering if there is a sensible way to default properties in maven.

I.e., I want to have a property:

properties
env.FOOdefault-value-if-not-defined-elsewhere/env.FOO
FOO${env.FOO}/FOO
/properties


I.e., use the default unless the varialble is provided by the 
environment or via an explicit define in settings.xml or on the 
command line.


tia,
-Russ


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org