maven-ant-run plugin fails due to missing class

2012-06-04 Thread pranay agarwal
Hi,
earlier i was using the maven repository for downloading all artifacts and
thus my project built successfully. However when i deleted my local repo
and made my artifactory as a mirror of the maven site ..i get this error on
building with maven 3.0.4:

NFO] 

RROR] Failed to execute goal
org.apache.maven.plugins:maven-antrun-plugin:1.5:run (default) on
project leida-runtime: Execution default of

oal org.apache.maven.plugins:maven-antrun-plugin:1.5:run failed:
Unable to load the mojo 'run' in the plugin
'org.apache.maven.plugins:mav
-antrun-plugin:1.5'. A required class is missing:
org/apache/tools/ant/BuildException

RROR] -

RROR] realm =plugin>org.apache.maven.plugins:maven-antrun-plugin:1.5

RROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy

RROR] urls[0] =
file:/C:/Documents%20and%20Settings/user/.m2/repository/org/apache/maven/plugins/maven-antrun-plugin/1.5/maven-antrun-

ugin-1.5.jar

RROR] urls[1] =
file:/C:/Documents%20and%20Settings/user/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.1/plexus-interpolat

n-1.1.jar

RROR] urls[2] =
file:/C:/Documents%20and%20Settings/user/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar

RROR] urls[3] =
file:/C:/Documents%20and%20Settings/user/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.jar

RROR] urls[4] =
file:/C:/Documents%20and%20Settings/user/.m2/repository/org/apache/ant/ant-nodeps/1.8.1/ant-nodeps-1.8.1.jar

RROR] Number of foreign imports: 1

RROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]



I've cheked the jar for maven-antrun-plugin and it has the Ant-run
class .Also in another jar org.apache.ant1.8.1 jar this class
*org/apache/tools/ant/BuildException* is also present still i get this
error..I'm not able to get how to resolve this..Thanks.


why is commons-math3 jar missing from sonatype mirror of central?

2012-06-04 Thread Russ Tremain

it is here:

http://repo.maven.apache.org/maven2/org/apache/commons/commons-math3/3.0

but not getting sync'd to the sonatype mirror:


https://repository.sonatype.org/index.html#nexus-search;quick~commons-math3

in fact I only see 7 of the 32 files mirrored.

anyone know why?

It makes me wonder if other files are missing as well...

/r

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



Re: Eclipse Plugin and Project Links to Independent Projects

2012-06-04 Thread Barrie Treloar
On Tue, Jun 5, 2012 at 3:19 AM, Chris Redekop  wrote:
> (How) can I use the Eclipse plugin to create Eclipse project files
> that refer to an dependency A) with an Eclipse project link instead of
> B) as a JAR in the repo?  The dependency in this case is A) NOT a
> module of the parent project (where 'mvn eclipse:eclipse' is executed)
> and B) NOT built with Maven.
>
> Project links work well between modules in a multi-module project, and
> the -Declipse.workspace property provides some related functionality;
> but its workspace scan only seems to recognize other Maven projects.

You can't.

mvn eclipse:eclipse will automatically configure the .classpath to
reference any dependency that is already configured in Eclipse and is
a Maven project.

If you think about it, how do you expect eclipse:eclipse to work out
that your non-Maven project just happens to be the same as one of your
Maven dependencies?

> I am looking for something like -Declipse.workspace but more direct
> and fully contained within the plugin configuration: a map between
> dependencies and Eclipse projects that says, "when you are generating
> Eclipse project files and hit this dependency, refer to this Eclipse
> project instead of the artifact's JAR in the repo."
>
> The use case here is migrating one of an organization's existing
> builds to Maven while NOT migrating ALL an organization's builds.  We
> currently have a mix of Maven/non-Maven builds cohabitating in the
> same Eclipse workspace.  In this environment, dependencies from
> Maven-built projects to non-Maven-built projects appear twice:
> 1) as a JAR dependency and
> 2) as an Eclipse project where active development takes place.
>
> The duplicate project/class definition is causing confusion.

You have some of options:
1) Dont use mvn eclipse:eclipse
2) Use mvn eclipse:eclipse to "kick-start" the .classpath creation and
then manually tweak this to work with the non-Maven project.  You then
check-in the eclipse files: .project, .classpath into your source
control.
3) Migrate your non-Maven builds to Maven.  If these are Ant builds it
should be a simple process to create a dumb Maven wrapper that just
calls out to Ant to do the build.  This will give you a pom.xml that
specifies the correct dependency coordinates for mvn eclipse:eclipse
to then use.  Then when you are ready to migrate these projects, you
take out the Ant stuff and replace it with the equivalent Maven
plugins.

I would recommend 3).

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



Eclipse Plugin and Project Links to Independent Projects

2012-06-04 Thread Chris Redekop
(How) can I use the Eclipse plugin to create Eclipse project files
that refer to an dependency A) with an Eclipse project link instead of
B) as a JAR in the repo?  The dependency in this case is A) NOT a
module of the parent project (where 'mvn eclipse:eclipse' is executed)
and B) NOT built with Maven.

Project links work well between modules in a multi-module project, and
the -Declipse.workspace property provides some related functionality;
but its workspace scan only seems to recognize other Maven projects.

I am looking for something like -Declipse.workspace but more direct
and fully contained within the plugin configuration: a map between
dependencies and Eclipse projects that says, "when you are generating
Eclipse project files and hit this dependency, refer to this Eclipse
project instead of the artifact's JAR in the repo."

The use case here is migrating one of an organization's existing
builds to Maven while NOT migrating ALL an organization's builds.  We
currently have a mix of Maven/non-Maven builds cohabitating in the
same Eclipse workspace.  In this environment, dependencies from
Maven-built projects to non-Maven-built projects appear twice:
1) as a JAR dependency and
2) as an Eclipse project where active development takes place.

The duplicate project/class definition is causing confusion.

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



mvn versions:set -DnewVersion not updating modules?

2012-06-04 Thread hujirong
C:\Sandbox\MDM-admin\CDIPubSubMgmtIS>mvn versions:set -DnewVersion=1.0.0
[INFO] Scanning for projects...
[INFO]

[INFO] Reactor Build Order:
[INFO]
[INFO] ClientServicesBOLib Mediation
[INFO] ClientInfoMgmtLib Mediation
[INFO] CDIPubSubMgmtBOLib Mediation
[INFO] CDIPubSubMgmtLib Mediation
[INFO] CDIServiceMgmtLib Mediation
[INFO] ClientInfoEventLib Mediation
[INFO] CDIPubSubMgmtMed Mediation
[INFO] CDIPubSubMgmtIS Solution
[INFO]
[INFO]

[INFO] Building CDIPubSubMgmtIS Solution 1.0.0
[INFO]

[INFO]
[INFO] --- versions-maven-plugin:1.3.1:set (default-cli) @ CDIPubSubMgmtIS
---
[INFO] Searching for local aggregator root...
[INFO] Local aggregation root: C:\Sandbox\MDM-admin\CDIPubSubMgmtIS
[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] ClientServicesBOLib Mediation . SKIPPED
[INFO] ClientInfoMgmtLib Mediation ... SKIPPED
[INFO] CDIPubSubMgmtBOLib Mediation .. SKIPPED
[INFO] CDIPubSubMgmtLib Mediation  SKIPPED
[INFO] CDIServiceMgmtLib Mediation ... SKIPPED
[INFO] ClientInfoEventLib Mediation .. SKIPPED
[INFO] CDIPubSubMgmtMed Mediation  SKIPPED
[INFO] CDIPubSubMgmtIS Solution .. SUCCESS [0.504s]
[INFO]

[INFO] BUILD SUCCESS
[INFO]

[INFO] Total time: 1.050s
[INFO] Finished at: Mon Jun 04 18:52:50 EDT 2012
[INFO] Final Memory: 18M/512M
[INFO]

C:\Sandbox\MDM-admin\CDIPubSubMgmtIS>

--
View this message in context: 
http://maven.40175.n5.nabble.com/mvn-versions-set-DnewVersion-not-updating-modules-tp5710828.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: Can't make maven-plugin-testing-harness work...

2012-06-04 Thread Hervé BOUTEMY
I tried to build the project but got compilation failures
[INFO] Compilation failure
/tmp/opennms-maven-plugins/features-maven-
plugin/src/main/java/org/opennms/maven/plugins/karaf/FeatureBuilder.java:
[79,9] error: no suitable method found for addBundle(String,int,,)

Regards,

Hervé

Le lundi 4 juin 2012 10:29:05 Benjamin Reed a écrit :
> I'm trying to write a maven plugin.  I've added
> maven-plugin-testing-harness to my project as a test dependency, and
> created a very simple test that right now just tries to load a pom
> whose only content is a  section to load the plugin.
> 
> If I have it load like this:
> >  org.opennms.maven.plugins
> > features-maven-plugin
> > 1.0-SNAPSHOT 
> 
> ...it bombs with this exception:
> 
> org.apache.maven.plugin.testing.ConfigurationException: Cannot find a
> configuration element for a plugin with an artifactId of
> features-maven-plugin.
>   at
> org.apache.maven.plugin.testing.AbstractMojoTestCase.extractPluginConfigurat
> ion(AbstractMojoTestCase.java:466)
> 
> I thought the "configuration" section of a plugin was supposed to be
> optional.  However, if I add "" after
> the  tag above, it gives me a new error:
> 
> org.codehaus.plexus.component.repository.exception.ComponentLookupException:
> java.util.NoSuchElementException
>   role: org.apache.maven.plugin.Mojo
>   roleHint:
> org.opennms.maven.plugins:features-maven-plugin:1.0-SNAPSHOT:generate-featur
> es-xml at
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.jav
> a:257)
> 
> 
> ...am I doing something wrong?  Seems like the test framework is
> breaking on the simplest things, I'm not sure how to start out if I
> can't even unit test this.
> 
> 
> Code is here:
> https://github.com/RangerRick/opennms-maven-plugins/blob/features-maven-plug
> in/features-maven-plugin
> 
> Test is at:
> https://github.com/RangerRick/opennms-maven-plugins/blob/features-maven-plug
> in/features-maven-plugin/src/test/java/org/opennms/maven/plugins/karaf/Gener
> ateFeaturesXmlMojoTest.java

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



[ANN] Maven FindBugs Plugin version 2.5 Released

2012-06-04 Thread LeClaire Garvin

Hi,

The Mojo team is pleased to announce the release of the Maven FindBugs Plugin 
version 2.5. 

FindBugs uses static analysis to inspect Java bytecode for occurrences of bug 
patterns. 

You can see more about the plugin at:

http://mojo.codehaus.org/findbugs-maven-plugin/

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


org.codehaus.mojo
findbugs-maven-plugin
2.5


Release Notes are at:  
https://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11701&version=18293



Release Notes - Maven 2.x FindBugs Plugin - Version 2.5



** Bug
   * [MFINDBUGS-159] - Brazillian Portuguese translation with non-US-ASCII 
characters
   * [MFINDBUGS-160] - Contradicting documentation for findbugsXmlOutput 
parameter



** New Feature
   * [MFINDBUGS-118] - Add ability to show a summary of the bugs on the console
   * [MFINDBUGS-151] - Ability to use findbugs detectors that are in a maven 
repository
   * [MFINDBUGS-164] - Support for -maxRank option
   * [MFINDBUGS-166] - Add support for excluding Baseline Bugs




** Wish
   * [MFINDBUGS-163] - Allow system properties to be configured for forked 
findbugs.



Enjoy, The Mojo team.

Regards,

Garvin LeClaire
garvin.lecla...@gmail.com






Re: How can I give a "" for Maven properties?

2012-06-04 Thread Robert Scholte

Sounds more like a bug of the plugin.

Op Mon, 04 Jun 2012 22:07:37 +0200 schreef hujirong :

I got this error below. If I add a "" around these properties, Maven  
doesn't

like it. How can I fix this?

Jirong


C:/Program Files 
(x86)/ibm/WID7/runtimes
C:/Program Files/IBM/WebSphere/AppServer
C:/Program 
Files/IBM/WebSphere/AppServer
C:/Program Files/IBM/WebSphere/AppServer



[INFO] Running with /c call C:/Program
Files/IBM/WebSphere/AppServer/profiles/qesb/bin/serviceDeploy.bat
C:\Sandbox\MDM-
CDI_Dev\CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed/CDIPubSubMgmtMed-servicedeploy.zip
-workingDirectory C:\Sandbo
x\MDM-CDI_Dev\CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed/servicedeploy
-outputApplication C:\Sandbox\MDM-CDI_Dev\
CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed/CDIPubSubMgmtMed-0.0.1-SNAPSHOT.ear
-keep true -ignoreErrors false
 [exec] 'C:/Program' is not recognized as an internal or external
command,

--
View this message in context:  
http://maven.40175.n5.nabble.com/How-can-I-give-a-for-Maven-properties-tp5710800.html

Sent from the Maven - Users mailing list archive at Nabble.com.

-
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 can I give a "" for Maven properties?

2012-06-04 Thread Wayne Fay
> I got this error below. If I add a "" around these properties, Maven doesn't
> like it. How can I fix this?
...
>        
>                C:/Program Files 
> (x86)/ibm/WID7/runtimes

The simplest solution is to move these files to directories without
spaces in the name.

Wayne

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



How can I give a "" for Maven properties?

2012-06-04 Thread hujirong
I got this error below. If I add a "" around these properties, Maven doesn't
like it. How can I fix this?

Jirong


C:/Program Files 
(x86)/ibm/WID7/runtimes
C:/Program Files/IBM/WebSphere/AppServer
C:/Program 
Files/IBM/WebSphere/AppServer
C:/Program Files/IBM/WebSphere/AppServer



[INFO] Running with /c call C:/Program
Files/IBM/WebSphere/AppServer/profiles/qesb/bin/serviceDeploy.bat
C:\Sandbox\MDM-
CDI_Dev\CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed/CDIPubSubMgmtMed-servicedeploy.zip
-workingDirectory C:\Sandbo
x\MDM-CDI_Dev\CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed/servicedeploy
-outputApplication C:\Sandbox\MDM-CDI_Dev\
CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed/CDIPubSubMgmtMed-0.0.1-SNAPSHOT.ear
-keep true -ignoreErrors false
 [exec] 'C:/Program' is not recognized as an internal or external
command,

--
View this message in context: 
http://maven.40175.n5.nabble.com/How-can-I-give-a-for-Maven-properties-tp5710800.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: Maven toolchains plugin

2012-06-04 Thread Ansgar Konermann
Am 04.06.2012 14:50 schrieb "Stephen Connolly" <
stephen.alan.conno...@gmail.com>:
>
> Animal-sniffer @ mojo is your man for that

Unfortunately, it does not fully support Maven 3:
http://jira.codehaus.org/browse/MANIMALSNIFFER-23

Got bitten by this issue recently.

Ansgar

>
> On Monday, 4 June 2012, wrote:
>
> > Hi all,
> >
> > Is there any issue with maven toolchains plugin? 
> >
> > It seems that nobody use it…
> >
> > I would like to ensure that my build is compatible with a specific
version
> > of the JVM even if the JVM that running maven is not the same.
> >
> > ** **
> >
> > Thanks,
> >
> > ** **
> >
> > Romain.
> >
> > ** **
> >
> > ** **
> >
> > *Romain Gilles*
> >
> > Architect
> >
> > * *
> >
> > Architecture Group
> >
> > 6 rue Godefroy 92800 Puteaux
> >
> > ** **
> >
> > D  +33 (0)1 4762 7741
> >
> > M  +xx (x)xx   
> >
> > romain.gil...@misys.com  > 'romain.gil...@misys.com');>
> >
> > ** **
> >
> > www.misys.com**
> >
> > * *
> >
> > [image: Description: Description: C:\Documents and
> > Settings\jaganath.gunamurthy\Desktop\MisysLogoFinalPantone287c.wmf]**
> >
> > * *
> >
> > * *
> >
> > ** **
> >


Re: Maven toolchains plugin

2012-06-04 Thread Wayne Fay
> Is there any issue with maven toolchains plugin?
>
> It seems that nobody use it…

How did you determine that "nobody" uses it? I doubt this is true.

Please post specific problems and someone might be able to help you
resolve them.

Wayne

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



Re: Can't make maven-plugin-testing-harness work...

2012-06-04 Thread Benjamin Reed
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 6/4/12 10:29 AM, Benjamin Reed wrote:
> ...am I doing something wrong?  Seems like the test framework is 
> breaking on the simplest things, I'm not sure how to start out if
> I can't even unit test this.

So in attempting to troubleshoot this, it appears the testing harness
is just plain broken? I can't even get through the cookbook example.

http://jira.codehaus.org/browse/MPLUGINTESTING-25

Does anyone have any useful guidelines on unit-testing plugin development?


- -- 
Benjamin Reed
The OpenNMS Group
http://www.opennms.org/

-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFPzPA3Uu+jZtP2Zf4RAppZAJ9XxJSPdKCZEqF0vsI0DLg0soM/hACfRey1
eKRentykHHieiRobNDb4DW0=
=D5vn
-END PGP SIGNATURE-

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



Re: Trouble downloading repositories

2012-06-04 Thread Wayne Fay
> I am just learning maven and I am having trouble with some repositories.

No, this is not a problem with repositories.

> 6\05292012\src\main\java\Book.java:[3,0] package javax.persistence does not
> exist
..
> 6\05292012\src\main\java\Book.java:[5,1] cannot find symbol
> symbol: class Entity
...
> 6\05292012\src\main\java\Book.java:[6,1] cannot find symbol
> symbol: class NamedQuery

You are missing one or more dependencies which means the Java compiler
cannot find classes which are imported in your code.

Looking at your pom file, it appears that you don't understand the
difference between simply having  in your pom vs having
them listed in a  section.

Review this concept in various sources of documentation online such as:
http://www.sonatype.com/books/mvnref-book/reference/pom-relationships-sect-project-dependencies.html

Wayne

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



Re: Any intention/eta for a maven-release-plugin 2.3.2?

2012-06-04 Thread Robert Scholte

Hi,

I was planning a release soon, but it seems like there are still issues  
with the jazz-provider.
I'd like to know what's going on and when possible include a fix for the  
2.3.2 release.


-Robert

Op Mon, 04 Jun 2012 15:48:20 +0200 schreef :


Hi list

for 2.4 there are 11 items scheduled.
the 7 unresolved ones are already there since 2.0-beta+ and i call them  
not that critical...?


But the already 4 fixed ones are regression for 2.3(.1)... and without  
them, the m-release-p 2.3 is quite... unusable. (release:rollback no  
longer works; release:update-versions doesn't work anymore; ...)


Might this legitimate a 2.3.2 release (if no other regressions are being  
found?)


brgds
Myron


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



Re: maven dependency plugin and maven 3

2012-06-04 Thread Anthony Dahanne
Hi Wayne,
you are right, running the purge  corrupted my local repo in a way :
$ ls ~/.m2/repository/javax/servlet/servlet-api/2.5/
_maven.repositories servlet-api-2.5.jar
servlet-api-2.5.jar.lastUpdated servlet-api-2.5.jar.sha1

and if I run mvn clean install just after , everything gets back to normal.
$ ls ~/.m2/repository/javax/servlet/servlet-api/2.5/
_maven.repositories servlet-api-2.5.jar.lastUpdated
servlet-api-2.5.pom servlet-api-2.5.pom.sha1
servlet-api-2.5.jar servlet-api-2.5.jar.sha1
servlet-api-2.5.pom.lastUpdated

updating the Jira,
thanks
Anthony

On Mon, Jun 4, 2012 at 10:47 AM, Wayne Fay  wrote:
>> [WARNING] Missing POM for javax.servlet:servlet-api:jar:2.5
>> [WARNING] Missing POM for 
>> net.dahanne.gallery:commons-gallery:jar:2.1.0-SNAPSHOT
>> even though those 2 artifacts are existing in my local repo.
>
> Have you looked at the content of those pom files to ensure they
> aren't corrupted?
>
> 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: maven dependency plugin and maven 3

2012-06-04 Thread Wayne Fay
> [WARNING] Missing POM for javax.servlet:servlet-api:jar:2.5
> [WARNING] Missing POM for 
> net.dahanne.gallery:commons-gallery:jar:2.1.0-SNAPSHOT
> even though those 2 artifacts are existing in my local repo.

Have you looked at the content of those pom files to ensure they
aren't corrupted?

Wayne

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



Can't make maven-plugin-testing-harness work...

2012-06-04 Thread Benjamin Reed
I'm trying to write a maven plugin.  I've added
maven-plugin-testing-harness to my project as a test dependency, and
created a very simple test that right now just tries to load a pom
whose only content is a  section to load the plugin.

If I have it load like this:

>  org.opennms.maven.plugins 
> features-maven-plugin 
> 1.0-SNAPSHOT 

...it bombs with this exception:

org.apache.maven.plugin.testing.ConfigurationException: Cannot find a
configuration element for a plugin with an artifactId of
features-maven-plugin.
at
org.apache.maven.plugin.testing.AbstractMojoTestCase.extractPluginConfiguration(AbstractMojoTestCase.java:466)

I thought the "configuration" section of a plugin was supposed to be
optional.  However, if I add "" after
the  tag above, it gives me a new error:

org.codehaus.plexus.component.repository.exception.ComponentLookupException:
java.util.NoSuchElementException
  role: org.apache.maven.plugin.Mojo
  roleHint:
org.opennms.maven.plugins:features-maven-plugin:1.0-SNAPSHOT:generate-features-xml
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:257)


...am I doing something wrong?  Seems like the test framework is
breaking on the simplest things, I'm not sure how to start out if I
can't even unit test this.


Code is here:
https://github.com/RangerRick/opennms-maven-plugins/blob/features-maven-plugin/features-maven-plugin

Test is at:
https://github.com/RangerRick/opennms-maven-plugins/blob/features-maven-plugin/features-maven-plugin/src/test/java/org/opennms/maven/plugins/karaf/GenerateFeaturesXmlMojoTest.java

-- 
Benjamin Reed
The OpenNMS Group
http://www.opennms.org/


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



Any intention/eta for a maven-release-plugin 2.3.2?

2012-06-04 Thread myron0815
Hi list

for 2.4 there are 11 items scheduled.
the 7 unresolved ones are already there since 2.0-beta+ and i call them not 
that critical...?

But the already 4 fixed ones are regression for 2.3(.1)... and without them, 
the m-release-p 2.3 is quite... unusable. (release:rollback no longer works; 
release:update-versions doesn't work anymore; ...)

Might this legitimate a 2.3.2 release (if no other regressions are being found?)

brgds
Myron 
-- 
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!  

Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a

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



Re: maven dependency plugin and maven 3

2012-06-04 Thread Anthony Dahanne
Update !
Creating a jira for this issue, providing the same example pom,
http://jira.codehaus.org/secure/attachment/60149/pom.xml
when I tried to reproduce on a linux box, with the latest maven 3.0.4
>> > 1) do a mvn package
>> > 2) then do a mvn 
>> > org.apache.maven.plugins:maven-dependency-plugin:2.4:purge-local-repository
>> >  -Dverbose=true   -DresolutionFuzziness=version

it actually worked as designed :


ubuntu@ubuntu-server:~/maven-issue$ /opt/apache-maven-3.0.4/bin/mvn
org.apache.maven.plugins:maven-dependency-plugin:2.4:purge-local-repository
-Dverbose=true   -DresolutionFuzziness=version
[INFO] Scanning for projects...
[INFO]
[INFO] 
[INFO] Building pof 1.0.0-SNAPSHOT
[INFO] 
[INFO]
[INFO] --- maven-dependency-plugin:2.4:purge-local-repository
(default-cli) @ pof ---
[WARNING] Missing POM for javax.servlet:servlet-api:jar:2.5
[WARNING] Missing POM for net.dahanne.gallery:commons-gallery:jar:2.1.0-SNAPSHOT
[INFO] Processing dependencies for project: net.dahanne:pof:jar:1.0.0-SNAPSHOT
[INFO] Processing artifact: javax.servlet:servlet-api:jar:2.5
[INFO] Deleting: /home/ubuntu/.m2/repository/javax/servlet/servlet-api/2.5
[INFO] Re-resolving.
Downloading: 
http://nexus.dahanne.net/nexus/content/repositories/snapshots/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar
Downloading: 
http://nexus.dahanne.net/nexus/content/repositories/releases/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar
Downloading: 
http://repo.maven.apache.org/maven2/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar
Downloaded: 
http://repo.maven.apache.org/maven2/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar
(103 KB at 15.9 KB/sec)
[INFO] Processing artifact:
net.dahanne.gallery:commons-gallery:jar:2.1.0-SNAPSHOT
[INFO] Deleting:
/home/ubuntu/.m2/repository/net/dahanne/gallery/commons-gallery/2.1.0-SNAPSHOT
[INFO] Re-resolving.
Downloading: 
http://nexus.dahanne.net/nexus/content/repositories/snapshots/net/dahanne/gallery/commons-gallery/2.1.0-SNAPSHOT/maven-metadata.xml
Downloading: 
http://nexus.dahanne.net/nexus/content/repositories/releases/net/dahanne/gallery/commons-gallery/2.1.0-SNAPSHOT/maven-metadata.xml
Downloaded: 
http://nexus.dahanne.net/nexus/content/repositories/snapshots/net/dahanne/gallery/commons-gallery/2.1.0-SNAPSHOT/maven-metadata.xml
(998 B at 2.1 KB/sec)
Downloading: 
http://nexus.dahanne.net/nexus/content/repositories/snapshots/net/dahanne/gallery/commons-gallery/2.1.0-SNAPSHOT/commons-gallery-2.1.0-20120525.140124-5.jar
Downloaded: 
http://nexus.dahanne.net/nexus/content/repositories/snapshots/net/dahanne/gallery/commons-gallery/2.1.0-SNAPSHOT/commons-gallery-2.1.0-20120525.140124-5.jar
(16 KB at 23.3 KB/sec)
[INFO] 
[INFO] BUILD SUCCESS
[INFO] 
[INFO] Total time: 17.522s
[INFO] Finished at: Mon Jun 04 09:10:33 EDT 2012
[INFO] Final Memory: 6M/14M
[INFO] 

my dependencies were deleted and re resolved !
One thing though, is that I still had those messages :
[WARNING] Missing POM for javax.servlet:servlet-api:jar:2.5
[WARNING] Missing POM for net.dahanne.gallery:commons-gallery:jar:2.1.0-SNAPSHOT
even though those 2 artifacts are existing in my local repo.
So I created  a bug in the maven dependency plugin Jira :
http://jira.codehaus.org/browse/MDEP-356
to consider the use of maven 3 dependency resolver in the maven
dependency plugin

Thanks,
Anthony


On Mon, Jun 4, 2012 at 4:09 AM, Stephen Connolly
 wrote:
> From what I recall, nobody has yet updated dependency:tree to query
> aether's graph directly rather than go through the emulation of 2.x's API
> for examining the dependency tree. When I last chatted on this with
> Benjamin, he left me with the distinct impression that I should not rely on
> the output of dependency:tree when run on m3 until it has been adapted to
> query aether's graph more directly... But having said all that, I usually
> find it "good enough" and it may just be some edge cases that Benjamin was
> referring to, in which case I would suspect this is one of those edges.
>
> On Sunday, 3 June 2012, Jason van Zyl wrote:
>
>> You need to make a test case so we can reproduce it. It's impossible to
>> tell whether it's you, your environment, the dependency plugin or Maven
>> itself from looking at the textual output of the build.
>>
>> On Jun 3, 2012, at 11:42 AM, Anthony Dahanne wrote:
>>
>> > Hello  all,
>> > sorry to bump ... :-(
>> > but I'm still having issues understanding what's wrong with the maven
>> > dependency plugin and maven 3...
>> > I attached a pom to demonstrate the problem :
>> > Using maven 3,
>> > 1) do a mvn package
>> > 2) then do a mvn
>> >
>> org.apache.maven.plugins:maven-dependency-plugin:2.4:purge-lo

Imported dependency management does not override version and scope defined in parent POM.

2012-06-04 Thread Aliaksei Lahachou
Hello world!

I encountered an interesting pecularity today. I don't know whether this is
a feature or a bug, intended or not, known or unknown.

Imagine that there are 3 modules:

* Parent - defines version numbers in dependencyManagement and common
plugin configuration in pluginManagement.
* WAR - does not have any versions in dependencies, because versions are
managed in parent.
* Platform - defines platform-specific versions and scopes in
dependencyManagement. For example, JBoss AS 4 is distributed with Javassist
3.8.0 and there can be some problems, when Javassist is contained in WAR.
There are multiple platform modules, but only one is imported at a time.

Parent POM manages the following dependency:


  

  commons-codec
  commons-codec
  1.6

  


Platform POM manages the same dependency:


  

  commons-codec
  commons-codec
  1.3
  provided

  


WAR POM uses the dependency and imports the Platform POM:


  

...
platform
...
pom
import
  



  commons-codec
  commons-codec



What I see is that commons-codec:commons-codec:1.6 is included in final
package. It does not happen if I redefine version and scope directly in WAR
POM:


  

  commons-codec
  commons-codec
  1.3
  provided
  



  commons-codec
  commons-codec



Versions and scopes from imported Platform POM have effect only if the same
dependency is not defined in Parent. This is kind of unexpected for me,
because documentation states that importing a POM will incorporate all it's
dependencies in importer POM and the result is the same as if dependencies
were defined in the imported POM.

Can someone confirm whether this is a bug or a feature, or whether I do
something wrong. BTW, I use Maven 3.0.3, and the actual project I'm working
on is somewhat more complex.


Regards


Re: Maven toolchains plugin

2012-06-04 Thread Stephen Connolly
Animal-sniffer @ mojo is your man for that

On Monday, 4 June 2012, wrote:

> Hi all,
>
> Is there any issue with maven toolchains plugin? 
>
> It seems that nobody use it…
>
> I would like to ensure that my build is compatible with a specific version
> of the JVM even if the JVM that running maven is not the same.
>
> ** **
>
> Thanks,
>
> ** **
>
> Romain.
>
> ** **
>
> ** **
>
> *Romain Gilles*
>
> Architect
>
> * *
>
> Architecture Group
>
> 6 rue Godefroy 92800 Puteaux
>
> ** **
>
> D  +33 (0)1 4762 7741
>
> M  +xx (x)xx   
>
> romain.gil...@misys.com  'romain.gil...@misys.com');>
>
> ** **
>
> www.misys.com**
>
> * *
>
> [image: Description: Description: C:\Documents and
> Settings\jaganath.gunamurthy\Desktop\MisysLogoFinalPantone287c.wmf]**
>
> * *
>
> * *
>
> ** **
>


Maven toolchains plugin

2012-06-04 Thread Romain . Gilles
Hi all,

Is there any issue with maven toolchains plugin? 

It seems that nobody use it...

I would like to ensure that my build is compatible with a specific
version of the JVM even if the JVM that running maven is not the same.

 

Thanks,

 

Romain.

 

 

Romain Gilles

Architect

 

Architecture Group

6 rue Godefroy 92800 Puteaux

 

D  +33 (0)1 4762 7741

M  +xx (x)xx   

romain.gil...@misys.com  

 

www.misys.com  

 

 

 

 

 



RE: maven dependency plugin and maven 3

2012-06-04 Thread Tim Wu T
Hi Anders,

Thanks :), my mistake.

Br,
Tim



Ericsson

TIM WU
Software Designer

CBC/XIT/J
100102, China
Phone 84768153 (13153)
SMS/MMS +86 13810715183
tim.t...@ericsson.com
www.ericsson.com



This Communication is Confidential. We only send and receive email on the basis 
of the terms set out at www.ericsson.com/email_disclaimer

-Original Message-
From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On Behalf Of 
Anders Hammar
Sent: Monday, June 04, 2012 5:24 PM
To: Maven Users List
Subject: Re: maven dependency plugin and maven 3

Please don't hijack someone else's thread. Start a new thread instead.
Also, this question is much more appropriate on the Nexus users
mailing list. This is a generic Maven mailing list.

/Anders

On Mon, Jun 4, 2012 at 11:19 AM, Tim Wu T  wrote:
> Do you know if there is any small tool for us to deploy the 3pp jar into 
> nexus in additional to the nexus gui?
>
> Br,
> Tim
>
>
>
> Ericsson
>
> TIM WU
> Software Designer
>
> CBC/XIT/J
> 100102, China
> Phone 84768153 (13153)
> SMS/MMS +86 13810715183
> tim.t...@ericsson.com
> www.ericsson.com
>
>
>
> This Communication is Confidential. We only send and receive email on the 
> basis of the terms set out at www.ericsson.com/email_disclaimer
> -Original Message-
> From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com]
> Sent: Monday, June 04, 2012 4:10 PM
> To: Maven Users List
> Subject: Re: maven dependency plugin and maven 3
>
> From what I recall, nobody has yet updated dependency:tree to query
> aether's graph directly rather than go through the emulation of 2.x's API
> for examining the dependency tree. When I last chatted on this with
> Benjamin, he left me with the distinct impression that I should not rely on
> the output of dependency:tree when run on m3 until it has been adapted to
> query aether's graph more directly... But having said all that, I usually
> find it "good enough" and it may just be some edge cases that Benjamin was
> referring to, in which case I would suspect this is one of those edges.
>
> On Sunday, 3 June 2012, Jason van Zyl wrote:
>
>> You need to make a test case so we can reproduce it. It's impossible to
>> tell whether it's you, your environment, the dependency plugin or Maven
>> itself from looking at the textual output of the build.
>>
>> On Jun 3, 2012, at 11:42 AM, Anthony Dahanne wrote:
>>
>> > Hello  all,
>> > sorry to bump ... :-(
>> > but I'm still having issues understanding what's wrong with the maven
>> > dependency plugin and maven 3...
>> > I attached a pom to demonstrate the problem :
>> > Using maven 3,
>> > 1) do a mvn package
>> > 2) then do a mvn
>> >
>> org.apache.maven.plugins:maven-dependency-plugin:2.4:purge-local-repository
>> > -Dverbose=true   -DresolutionFuzziness=version -U
>> >
>> > You will see the following output :
>> > [INFO] --- maven-dependency-plugin:2.4:purge-local-repository
>> > (default-cli) @ pof ---
>> > [WARNING] Missing POM for javax.servlet:servlet-api:jar:2.5
>> > [INFO] Skipping: pof. It cannot be resolved.
>> > [INFO] Nothing to do for project: net.dahanne:pof:jar:1.0.0-SNAPSHOT
>> >
>> > But I can tell you javax.servlet:servlet-api:jar:2.5 has a pom, and is
>> > already installed in the local maven repository.
>> >
>> > Could you guys share some light on this ? I think the maven dependency
>> > plugin is not working fine with maven 3 , as opposed to what the
>> > documentation says :
>> > https://cwiki.apache.org/MAVEN/maven-3x-plugin-compatibility-matrix.html
>> >
>> > Thanks,
>> > Anthony
>> >
>> >
>> > -- Forwarded message --
>> > From: Anthony Dahanne >
>> > Date: Thu, May 31, 2012 at 5:50 PM
>> > Subject: maven dependency plugin and maven 3
>> > To: users@maven.apache.org 
>> >
>> >
>> > Hello all,
>> > I'm only using maven 3 on my machine (be it command line or m2e).
>> > I tried to use the maven dependency plugin on a project,
>> >
>> > mvn
>> org.apache.maven.plugins:maven-dependency-plugin:2.4:purge-local-repository
>> > -Dverbose=true   -DresolutionFuzziness=version
>> >
>> > and it printed such warnings :
>> >
>> > [WARNING] Missing POM for javax.servlet:servlet-api:jar:2.5
>> > [WARNING] Missing POM for org.easymock:easymock:jar:3.0
>> > [WARNING] Missing POM for junit:junit:jar:4.8.2
>> >
>> > before telling me that the build was successful.
>> > Thing is, it did not purge anything from my repo; because of those
>> > warnings actually; launching the same command with -X, I could see :
>> > [DEBUG] Verifying availability of
>> >
>> /Users/anthony/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.pom
>> > from []
>> > [WARNING] Missing POM for javax.servlet:servlet-api:jar:2.5: Error
>> > resolving project artifact: Could not find artifact
>> > javax.servlet:servlet-api:pom:2.5 for project
>> > javax.servlet:servlet-api:pom:2.5
>> > [DEBUG]   javax.servlet:servlet-api:jar:2.5:provided (selected for
>> provided)
>> >
>> > and... I can tell you
>> >
>> /Users/anthony/.m2

Re: maven dependency plugin and maven 3

2012-06-04 Thread Anders Hammar
Please don't hijack someone else's thread. Start a new thread instead.
Also, this question is much more appropriate on the Nexus users
mailing list. This is a generic Maven mailing list.

/Anders

On Mon, Jun 4, 2012 at 11:19 AM, Tim Wu T  wrote:
> Do you know if there is any small tool for us to deploy the 3pp jar into 
> nexus in additional to the nexus gui?
>
> Br,
> Tim
>
>
>
> Ericsson
>
> TIM WU
> Software Designer
>
> CBC/XIT/J
> 100102, China
> Phone 84768153 (13153)
> SMS/MMS +86 13810715183
> tim.t...@ericsson.com
> www.ericsson.com
>
>
>
> This Communication is Confidential. We only send and receive email on the 
> basis of the terms set out at www.ericsson.com/email_disclaimer
> -Original Message-
> From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com]
> Sent: Monday, June 04, 2012 4:10 PM
> To: Maven Users List
> Subject: Re: maven dependency plugin and maven 3
>
> From what I recall, nobody has yet updated dependency:tree to query
> aether's graph directly rather than go through the emulation of 2.x's API
> for examining the dependency tree. When I last chatted on this with
> Benjamin, he left me with the distinct impression that I should not rely on
> the output of dependency:tree when run on m3 until it has been adapted to
> query aether's graph more directly... But having said all that, I usually
> find it "good enough" and it may just be some edge cases that Benjamin was
> referring to, in which case I would suspect this is one of those edges.
>
> On Sunday, 3 June 2012, Jason van Zyl wrote:
>
>> You need to make a test case so we can reproduce it. It's impossible to
>> tell whether it's you, your environment, the dependency plugin or Maven
>> itself from looking at the textual output of the build.
>>
>> On Jun 3, 2012, at 11:42 AM, Anthony Dahanne wrote:
>>
>> > Hello  all,
>> > sorry to bump ... :-(
>> > but I'm still having issues understanding what's wrong with the maven
>> > dependency plugin and maven 3...
>> > I attached a pom to demonstrate the problem :
>> > Using maven 3,
>> > 1) do a mvn package
>> > 2) then do a mvn
>> >
>> org.apache.maven.plugins:maven-dependency-plugin:2.4:purge-local-repository
>> > -Dverbose=true   -DresolutionFuzziness=version -U
>> >
>> > You will see the following output :
>> > [INFO] --- maven-dependency-plugin:2.4:purge-local-repository
>> > (default-cli) @ pof ---
>> > [WARNING] Missing POM for javax.servlet:servlet-api:jar:2.5
>> > [INFO] Skipping: pof. It cannot be resolved.
>> > [INFO] Nothing to do for project: net.dahanne:pof:jar:1.0.0-SNAPSHOT
>> >
>> > But I can tell you javax.servlet:servlet-api:jar:2.5 has a pom, and is
>> > already installed in the local maven repository.
>> >
>> > Could you guys share some light on this ? I think the maven dependency
>> > plugin is not working fine with maven 3 , as opposed to what the
>> > documentation says :
>> > https://cwiki.apache.org/MAVEN/maven-3x-plugin-compatibility-matrix.html
>> >
>> > Thanks,
>> > Anthony
>> >
>> >
>> > -- Forwarded message --
>> > From: Anthony Dahanne >
>> > Date: Thu, May 31, 2012 at 5:50 PM
>> > Subject: maven dependency plugin and maven 3
>> > To: users@maven.apache.org 
>> >
>> >
>> > Hello all,
>> > I'm only using maven 3 on my machine (be it command line or m2e).
>> > I tried to use the maven dependency plugin on a project,
>> >
>> > mvn
>> org.apache.maven.plugins:maven-dependency-plugin:2.4:purge-local-repository
>> > -Dverbose=true   -DresolutionFuzziness=version
>> >
>> > and it printed such warnings :
>> >
>> > [WARNING] Missing POM for javax.servlet:servlet-api:jar:2.5
>> > [WARNING] Missing POM for org.easymock:easymock:jar:3.0
>> > [WARNING] Missing POM for junit:junit:jar:4.8.2
>> >
>> > before telling me that the build was successful.
>> > Thing is, it did not purge anything from my repo; because of those
>> > warnings actually; launching the same command with -X, I could see :
>> > [DEBUG] Verifying availability of
>> >
>> /Users/anthony/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.pom
>> > from []
>> > [WARNING] Missing POM for javax.servlet:servlet-api:jar:2.5: Error
>> > resolving project artifact: Could not find artifact
>> > javax.servlet:servlet-api:pom:2.5 for project
>> > javax.servlet:servlet-api:pom:2.5
>> > [DEBUG]   javax.servlet:servlet-api:jar:2.5:provided (selected for
>> provided)
>> >
>> > and... I can tell you
>> >
>> /Users/anthony/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.pom
>> > exists and contains :
>> > 
>> >  4.0.0
>> >  javax.servlet
>> >  servlet-api
>> >  2.5
>> > 
>> >
>> > Debugging the code a little, I could notice that this goal was using
>> >
>> org.apache.maven.artifact.resolver.DefaultArtifactResolver#resolveTransitively
>> > from maven-artifact-manager 2.0.9 to find the dependencies.
>> >
>> > I am wondering if this plugin failed purging my dependencies because
>> > it used a maven 2 library to scan the dependencies, and my local repo
>> > has only been 

RE: maven dependency plugin and maven 3

2012-06-04 Thread Tim Wu T
Do you know if there is any small tool for us to deploy the 3pp jar into nexus 
in additional to the nexus gui?

Br,
Tim



Ericsson

TIM WU
Software Designer

CBC/XIT/J
100102, China
Phone 84768153 (13153)
SMS/MMS +86 13810715183
tim.t...@ericsson.com
www.ericsson.com



This Communication is Confidential. We only send and receive email on the basis 
of the terms set out at www.ericsson.com/email_disclaimer
-Original Message-
From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] 
Sent: Monday, June 04, 2012 4:10 PM
To: Maven Users List
Subject: Re: maven dependency plugin and maven 3

>From what I recall, nobody has yet updated dependency:tree to query
aether's graph directly rather than go through the emulation of 2.x's API
for examining the dependency tree. When I last chatted on this with
Benjamin, he left me with the distinct impression that I should not rely on
the output of dependency:tree when run on m3 until it has been adapted to
query aether's graph more directly... But having said all that, I usually
find it "good enough" and it may just be some edge cases that Benjamin was
referring to, in which case I would suspect this is one of those edges.

On Sunday, 3 June 2012, Jason van Zyl wrote:

> You need to make a test case so we can reproduce it. It's impossible to
> tell whether it's you, your environment, the dependency plugin or Maven
> itself from looking at the textual output of the build.
>
> On Jun 3, 2012, at 11:42 AM, Anthony Dahanne wrote:
>
> > Hello  all,
> > sorry to bump ... :-(
> > but I'm still having issues understanding what's wrong with the maven
> > dependency plugin and maven 3...
> > I attached a pom to demonstrate the problem :
> > Using maven 3,
> > 1) do a mvn package
> > 2) then do a mvn
> >
> org.apache.maven.plugins:maven-dependency-plugin:2.4:purge-local-repository
> > -Dverbose=true   -DresolutionFuzziness=version -U
> >
> > You will see the following output :
> > [INFO] --- maven-dependency-plugin:2.4:purge-local-repository
> > (default-cli) @ pof ---
> > [WARNING] Missing POM for javax.servlet:servlet-api:jar:2.5
> > [INFO] Skipping: pof. It cannot be resolved.
> > [INFO] Nothing to do for project: net.dahanne:pof:jar:1.0.0-SNAPSHOT
> >
> > But I can tell you javax.servlet:servlet-api:jar:2.5 has a pom, and is
> > already installed in the local maven repository.
> >
> > Could you guys share some light on this ? I think the maven dependency
> > plugin is not working fine with maven 3 , as opposed to what the
> > documentation says :
> > https://cwiki.apache.org/MAVEN/maven-3x-plugin-compatibility-matrix.html
> >
> > Thanks,
> > Anthony
> >
> >
> > -- Forwarded message --
> > From: Anthony Dahanne >
> > Date: Thu, May 31, 2012 at 5:50 PM
> > Subject: maven dependency plugin and maven 3
> > To: users@maven.apache.org 
> >
> >
> > Hello all,
> > I'm only using maven 3 on my machine (be it command line or m2e).
> > I tried to use the maven dependency plugin on a project,
> >
> > mvn
> org.apache.maven.plugins:maven-dependency-plugin:2.4:purge-local-repository
> > -Dverbose=true   -DresolutionFuzziness=version
> >
> > and it printed such warnings :
> >
> > [WARNING] Missing POM for javax.servlet:servlet-api:jar:2.5
> > [WARNING] Missing POM for org.easymock:easymock:jar:3.0
> > [WARNING] Missing POM for junit:junit:jar:4.8.2
> >
> > before telling me that the build was successful.
> > Thing is, it did not purge anything from my repo; because of those
> > warnings actually; launching the same command with -X, I could see :
> > [DEBUG] Verifying availability of
> >
> /Users/anthony/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.pom
> > from []
> > [WARNING] Missing POM for javax.servlet:servlet-api:jar:2.5: Error
> > resolving project artifact: Could not find artifact
> > javax.servlet:servlet-api:pom:2.5 for project
> > javax.servlet:servlet-api:pom:2.5
> > [DEBUG]   javax.servlet:servlet-api:jar:2.5:provided (selected for
> provided)
> >
> > and... I can tell you
> >
> /Users/anthony/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.pom
> > exists and contains :
> > 
> >  4.0.0
> >  javax.servlet
> >  servlet-api
> >  2.5
> > 
> >
> > Debugging the code a little, I could notice that this goal was using
> >
> org.apache.maven.artifact.resolver.DefaultArtifactResolver#resolveTransitively
> > from maven-artifact-manager 2.0.9 to find the dependencies.
> >
> > I am wondering if this plugin failed purging my dependencies because
> > it used a maven 2 library to scan the dependencies, and my local repo
> > has only been built and used by mvn3 (and the repo metadata/layout
> > could be different to what this plugin was expecting) ..
> > Any thoughts ?
> > thanks a lot in advance
> > Anthony
> > 
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
>
> Thanks,
>
> Jason
>
> 

Re: maven dependency plugin and maven 3

2012-06-04 Thread Stephen Connolly
>From what I recall, nobody has yet updated dependency:tree to query
aether's graph directly rather than go through the emulation of 2.x's API
for examining the dependency tree. When I last chatted on this with
Benjamin, he left me with the distinct impression that I should not rely on
the output of dependency:tree when run on m3 until it has been adapted to
query aether's graph more directly... But having said all that, I usually
find it "good enough" and it may just be some edge cases that Benjamin was
referring to, in which case I would suspect this is one of those edges.

On Sunday, 3 June 2012, Jason van Zyl wrote:

> You need to make a test case so we can reproduce it. It's impossible to
> tell whether it's you, your environment, the dependency plugin or Maven
> itself from looking at the textual output of the build.
>
> On Jun 3, 2012, at 11:42 AM, Anthony Dahanne wrote:
>
> > Hello  all,
> > sorry to bump ... :-(
> > but I'm still having issues understanding what's wrong with the maven
> > dependency plugin and maven 3...
> > I attached a pom to demonstrate the problem :
> > Using maven 3,
> > 1) do a mvn package
> > 2) then do a mvn
> >
> org.apache.maven.plugins:maven-dependency-plugin:2.4:purge-local-repository
> > -Dverbose=true   -DresolutionFuzziness=version -U
> >
> > You will see the following output :
> > [INFO] --- maven-dependency-plugin:2.4:purge-local-repository
> > (default-cli) @ pof ---
> > [WARNING] Missing POM for javax.servlet:servlet-api:jar:2.5
> > [INFO] Skipping: pof. It cannot be resolved.
> > [INFO] Nothing to do for project: net.dahanne:pof:jar:1.0.0-SNAPSHOT
> >
> > But I can tell you javax.servlet:servlet-api:jar:2.5 has a pom, and is
> > already installed in the local maven repository.
> >
> > Could you guys share some light on this ? I think the maven dependency
> > plugin is not working fine with maven 3 , as opposed to what the
> > documentation says :
> > https://cwiki.apache.org/MAVEN/maven-3x-plugin-compatibility-matrix.html
> >
> > Thanks,
> > Anthony
> >
> >
> > -- Forwarded message --
> > From: Anthony Dahanne >
> > Date: Thu, May 31, 2012 at 5:50 PM
> > Subject: maven dependency plugin and maven 3
> > To: users@maven.apache.org 
> >
> >
> > Hello all,
> > I'm only using maven 3 on my machine (be it command line or m2e).
> > I tried to use the maven dependency plugin on a project,
> >
> > mvn
> org.apache.maven.plugins:maven-dependency-plugin:2.4:purge-local-repository
> > -Dverbose=true   -DresolutionFuzziness=version
> >
> > and it printed such warnings :
> >
> > [WARNING] Missing POM for javax.servlet:servlet-api:jar:2.5
> > [WARNING] Missing POM for org.easymock:easymock:jar:3.0
> > [WARNING] Missing POM for junit:junit:jar:4.8.2
> >
> > before telling me that the build was successful.
> > Thing is, it did not purge anything from my repo; because of those
> > warnings actually; launching the same command with -X, I could see :
> > [DEBUG] Verifying availability of
> >
> /Users/anthony/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.pom
> > from []
> > [WARNING] Missing POM for javax.servlet:servlet-api:jar:2.5: Error
> > resolving project artifact: Could not find artifact
> > javax.servlet:servlet-api:pom:2.5 for project
> > javax.servlet:servlet-api:pom:2.5
> > [DEBUG]   javax.servlet:servlet-api:jar:2.5:provided (selected for
> provided)
> >
> > and... I can tell you
> >
> /Users/anthony/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.pom
> > exists and contains :
> > 
> >  4.0.0
> >  javax.servlet
> >  servlet-api
> >  2.5
> > 
> >
> > Debugging the code a little, I could notice that this goal was using
> >
> org.apache.maven.artifact.resolver.DefaultArtifactResolver#resolveTransitively
> > from maven-artifact-manager 2.0.9 to find the dependencies.
> >
> > I am wondering if this plugin failed purging my dependencies because
> > it used a maven 2 library to scan the dependencies, and my local repo
> > has only been built and used by mvn3 (and the repo metadata/layout
> > could be different to what this plugin was expecting) ..
> > Any thoughts ?
> > thanks a lot in advance
> > Anthony
> > 
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
>
> Thanks,
>
> Jason
>
> --
> Jason van Zyl
> Founder & CTO, Sonatype
> Founder,  Apache Maven
> http://twitter.com/jvanzyl
> -
>
> To do two things at once is to do neither.
>
>  -—Publilius Syrus, Roman slave, first century B.C.
>
>
>
>
>
>


[ANN] Maven Compiler Plugin 2.5.1 Released

2012-06-04 Thread Olivier Lamy
The Maven team is pleased to announce the release of the Maven
Compiler Plugin, version 2.5.1

The Compiler Plugin is used to compile the sources of your project.
The default compiler is javac and is used to compile Java sources.

http://maven.apache.org/plugins/maven-compiler-plugin/

You should specify the version in your project's plugin configuration:


  org.apache.maven.plugins
  maven-compiler-plugin
  2.5.1


Release Notes - Maven 2.x Compiler Plugin - Version 2.5.1

** Bug
* [MCOMPILER-172] - Breaking change to plexus compiler api 1.9

Have fun,

-The Maven team

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