Stefano Bagnara a écrit :
The problem is that you have apache.snapshot configured in the
repositories and someone published a new maven-jar-plugin
Yeah, I understand that :) But who ??? (the electric chair is ready,
with full power :)
with no dependencies to
http://people.apache.org/maven-snapshot-repository/org/apache/maven/plugins/maven-jar-plugin/
Can you add a "help:effective-pom" to your mvn command and paste the
resulting pom.xml?
Done. The pom.xml is added at the end.
Maybe you simply have to remove the apache.snapshot repository for
maven plugins.
Not sure I understand that... I'm really a maven agnostic :)
Otherwise you could add a
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.0</version>
</plugin>
section to your build/plugins section in pom.xml: maybe this solve
your issue.
Yeah, it works, but I'm afraid that I have to move that to the root pom.xml.
I think I will use this trick right now, and wait for the guy who
committed the falty jar to fix it.
Thanks for the help, Stefano ! Its good to have mercyful people who
spend time to help guys like me who <rant> ...
Emmanuel
mvn help:effective-pom
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'help'.
[INFO]
----------------------------------------------------------------------------
[INFO] Building ApacheDS Server Sar Maven Plugin
[INFO] task-segment: [help:effective-pom] (aggregator-style)
[INFO]
----------------------------------------------------------------------------
[INFO] [help:effective-pom]
[INFO]
************************************************************************************
Effective POM for project
'org.apache.directory.server:apacheds-sar-plugin:maven-plugin:1.0-RC4-SNAPSHOT'
************************************************************************************
<?xml version="1.0"?><project>
<parent>
<artifactId>build</artifactId>
<groupId>org.apache.directory.server</groupId>
<version>1.0-RC4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.directory.server</groupId>
<artifactId>apacheds-sar-plugin</artifactId>
<packaging>maven-plugin</packaging>
<name>ApacheDS Server Sar Maven Plugin</name>
<version>1.0-RC4-SNAPSHOT</version>
<url>http://directory.apache.org/subprojects/apacheds/apacheds-sar-plugin</url>
<issueManagement>
<system>JIRA</system>
<url>http://issues.apache.org/jira/browse/DIRSERVER</url>
</issueManagement>
<inceptionYear>2003</inceptionYear>
<mailingLists>
<mailingList>
<name>The Directory Developers List</name>
<subscribe>[EMAIL PROTECTED]</subscribe>
<unsubscribe>[EMAIL PROTECTED]</unsubscribe>
<post>[email protected]</post>
<archive>http://mail-archives.apache.org/mod_mbox/directory-dev</archive>
</mailingList>
<mailingList>
<name>The Directory Commits (SVN) List</name>
<subscribe>[EMAIL PROTECTED]</subscribe>
<unsubscribe>[EMAIL PROTECTED]</unsubscribe>
<archive>http://mail-archives.apache.org/mod_mbox/directory-commits</archive>
</mailingList>
</mailingLists>
<developers>
<developer>
<id>adc</id>
</developer>
<developer>
<id>akarasulu</id>
<url>http://directory.apache.org/community/who/akarasulu.html</url>
</developer>
<developer>
<id>bayard</id>
</developer>
<developer>
<id>bloritsch</id>
</developer>
<developer>
<id>brett</id>
</developer>
<developer>
<id>elecharny</id>
<url>http://directory.apache.org/community/who/elecharny.html</url>
</developer>
<developer>
<id>erodriguez</id>
<url>http://directory.apache.org/community/who/erodriguez.html</url>
</developer>
<developer>
<id>ersiner</id>
<url>http://directory.apache.org/community/who/ersiner.html</url>
</developer>
<developer>
<id>jmachols</id>
<url>http://directory.apache.org/community/who/jmachols.html</url>
</developer>
<developer>
<id>niklas</id>
</developer>
<developer>
<id>noel</id>
<url>http://directory.apache.org/community/who/noel.html</url>
</developer>
<developer>
<id>psteitz</id>
<url>http://directory.apache.org/community/who/psteitz.html</url>
</developer>
<developer>
<id>szoerner</id>
<url>http://directory.apache.org/community/who/szoerner.html</url>
</developer>
<developer>
<id>trustin</id>
<url>http://directory.apache.org/community/who/trustin.html</url>
</developer>
<developer>
<id>vtence</id>
<url>http://directory.apache.org/community/who/vtence.html</url>
</developer>
<developer>
<id>wesmckean</id>
<url>http://directory.apache.org/community/who/wesmckean.html</url>
</developer>
</developers>
<contributors>
<contributor>
<name>Nick Faiz</name>
</contributor>
</contributors>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
</license>
</licenses>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/directory/branches/apacheds/1.0/apacheds-sar-plugin</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/directory/branches/apacheds/1.0/apacheds-sar-plugin</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/directory/branches/apacheds/1.0/apacheds-sar-plugin</url>
</scm>
<organization>
<name>Apache Software Foundation</name>
<url>http://www.apache.org</url>
</organization>
<build>
<sourceDirectory>/home/elecharny/apacheds/apacheds-branches/1.0-trunks/apacheds/sar-plugin/src/main/java</sourceDirectory>
<scriptSourceDirectory>src/main/scripts</scriptSourceDirectory>
<testSourceDirectory>/home/elecharny/apacheds/apacheds-branches/1.0-trunks/apacheds/sar-plugin/src/test/java</testSourceDirectory>
<outputDirectory>/home/elecharny/apacheds/apacheds-branches/1.0-trunks/apacheds/sar-plugin/target/classes</outputDirectory>
<testOutputDirectory>/home/elecharny/apacheds/apacheds-branches/1.0-trunks/apacheds/sar-plugin/target/test-classes</testOutputDirectory>
<resources>
<resource>
<directory>/home/elecharny/apacheds/apacheds-branches/1.0-trunks/apacheds/sar-plugin/src/main/resources</directory>
</resource>
</resources>
<testResources>
<testResource>
<directory>/home/elecharny/apacheds/apacheds-branches/1.0-trunks/apacheds/sar-plugin/src/test/resources</directory>
</testResource>
</testResources>
<directory>/home/elecharny/apacheds/apacheds-branches/1.0-trunks/apacheds/sar-plugin/target</directory>
<finalName>apacheds-sar-plugin-1.0-RC4-SNAPSHOT</finalName>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.4</source>
<target>1.4</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-help-plugin</artifactId>
<version>2.0.1</version>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>apache.snapshots</id>
<name>Apache Snapshot Repository</name>
<url>http://people.apache.org/maven-snapshot-repository</url>
</repository>
<repository>
<id>safehaus</id>
<name>Alternate Repository for Missing Ibiblio Artifacts</name>
<url>http://m2.safehaus.org</url>
</repository>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>Maven Repository Switchboard</name>
<url>http://repo1.maven.org/maven2</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>apache.snapshots</id>
<name>Apache Snapshot Plugins</name>
<url>http://people.apache.org/maven-snapshot-repository</url>
</pluginRepository>
<pluginRepository>
<id>snapshots</id>
<name>snapshot plugins</name>
<url>http://snapshots.maven.codehaus.org/maven2</url>
</pluginRepository>
<pluginRepository>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>Maven Plugin Repository</name>
<url>http://repo1.maven.org/maven2</url>
</pluginRepository>
</pluginRepositories>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-archiver</artifactId>
<version>2.0.1</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.0.1</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>1.0.5</version>
</dependency>
<dependency>
<groupId>org.apache.directory.shared</groupId>
<artifactId>shared-ldap</artifactId>
<version>0.9.5.2-SNAPSHOT</version>
</dependency>
</dependencies>
<reporting>
<outputDirectory>target/site</outputDirectory>
<plugins>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
<reportSets>
<reportSet>
<reports>
<report>project-team</report>
<report>mailing-list</report>
<report>issue-tracking</report>
<report>license</report>
<report>scm</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
<distributionManagement>
<repository>
<id>apache.snapshots</id>
<name>ASF Mirrored M2 Distributions</name>
<url>scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository</url>
</repository>
<snapshotRepository>
<id>apache.snapshots</id>
<url>scp://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository</url>
</snapshotRepository>
<site>
<id>apache.websites</id>
<url>scp://minotaur.apache.org/www/directory.apache.org/subprojects/apacheds/apacheds-sar-plugin</url>
</site>
</distributionManagement>
</project>
************************************************************************************
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Mon Aug 28 21:39:17 CEST 2006
[INFO] Final Memory: 2M/5M
[INFO]
------------------------------------------------------------------------