You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by jerome lacoste <je...@gmail.com> on 2006/01/18 14:05:23 UTC

plugin parent pom not found for multi-module plugin

strange issue: building the keytool-maven-plugin (of type
maven-plugin) without building the root plugin works ok. If I build
the webstart-maven-plugin it does not, failing to find the plugin's
parent pom.


> mvn install
[INFO] Scanning for projects...
Downloading: file://${basedir}/tmp/m2repos/org/codehaus/mojo/mojo-sandbox/2-SNAPSHOT/mojo-sandbox-2-SNAPSHOT.pom
[WARNING] Unable to get resource from repository embedded
(file://${basedir}/tmp/m2repos)
[INFO] ----------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ----------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.codehaus.mojo
ArtifactId: mojo-sandbox
Version: 2-SNAPSHOT

Reason: Unable to download the artifact from any repository

  org.codehaus.mojo:mojo-sandbox:pom:2-SNAPSHOT

from the specified remote repositories:
....




Now the webstart-maven-plugin is a little bit special. It is a
multi-module project with the following structure

  pom.xml
  mod1/
  ...
  mod2/
  ...
  plugin/
  plugin/pom.xml



the plugin/pom.xml references the mojo-sandbox 2-SNAPSHOT pom that it
found one level beneath the plugin root directory.

If I diff the keytool-maven-plugin/pom.xml and the
webstart-maven-plugin/plugin/pom.xml I get the following:

--- plugin/pom.xml      2006-01-18 14:00:24.000000000 +0100
+++ ../keytool-maven-plugin/pom.xml     2006-01-18 13:59:47.000000000 +0100
@@ -7,12 +7,12 @@
     <version>2-SNAPSHOT</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
-  <artifactId>webstart-maven-plugin</artifactId>
+  <artifactId>keytool-maven-plugin</artifactId>
   <packaging>maven-plugin</packaging>
-  <version>1.0-SNAPSHOT</version>
-  <name>Maven Webstart Plugin</name>
+  <version>0.3-SNAPSHOT</version>
+  <name>Maven Keytool Plugin</name>
   <inceptionYear>2005</inceptionYear>
-  <url>http://mojo.codehaus.org/webstart-maven-plugin</url>
+  <url>http://mojo.codehaus.org/keytool-maven-plugin</url>
...

So they look identical to me. Could the failure to find the plugin
parent pom be linked to the fact that I am using modules in my plugin?

Cheers,

Jerome

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org