Bill Brown a écrit :
Greetings:
I'm trying to prepare a project for inclusion to the Maven Central
Repository which requires that all dependencies for the project can be found
within the Maven Central Repository. I"m including this dependency: <dependency>
<groupId>com.google.code.maven-license-plugin</groupId>
<artifactId>maven-license-plugin</artifactId>
<version>1.2.5</version>
</dependency>

which can be found in the central repo here: http://repo1.maven.org/maven2/com/google/code/maven-license-plugin/maven-license-plugin/1.2.5/ (I'd really like to use the 1.4.0 version but I note that it is not in the maven-metadata.xml file here: http://repo1.maven.org/maven2/com/google/code/maven-license-plugin/maven-license-plugin/maven-metadata.xml)

Anyway, a simple 'mvn clean package' on an empty .m2 local repository
produces the fillowing build error:

maven-license-plugin is a maven plugin (look at the packaging of his pom in [1]) ... so it's not a dependency. You have to include maven-license-plugin in the <build><plugins> section of your pom, as a <plugin>


1 : 
http://repo1.maven.org/maven2/com/google/code/maven-license-plugin/maven-license-plugin/1.2.5/maven-license-plugin-1.2.5.pom


$ mvn clean install
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building Atomsphere
[INFO]    task-segment: [clean, install]
[INFO]
------------------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] The plugin
'com.google.code.maven-license-plugin:maven-license-plugin' do
es not exist or no valid version could be found
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Fri Sep 18 10:22:29 CDT 2009
[INFO] Final Memory: 2M/6M
[INFO]
------------------------------------------------------------------------


Does anyone know why the maven build is failing to find the
maven-license-plugin ? Thanks for looking at this. Bill



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

Reply via email to