On 5/12/06, Kenney Westerhof <[EMAIL PROTECTED]> wrote:

I think you're somehow stuck with an old maven-install-plugin.
Try deleting ~/.m2/plugin-registry.xml (or just the lines for the
maven-install-plugin), and delete the
~/.m2/repository/org/apache/maven/plugins/maven-install-plugin/ directory,

then mvn install again.


Yup. No ~/.m2/repository/javax/persistence/ejb/3.0/ejb-3.0.pom

I don't have a plugin-registry.xml. There is a
~/.m2/repository/org/apache/maven/plugins/maven-install-plugin/2.0 though.
And I just deleted it.

Now when I add the EJB3 jar, I see this:

mvn install:install-file -Dfile=lib/ejb3-persistence.jar -DgroupId=
javax.persistence -DartifactId=ejb -Dversion=3.0 -Dpackaging=jar
-DgeneratePom=true
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'install'.
[INFO] artifact org.apache.maven.plugins:maven-install-plugin: checking for
updates from central
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.1/maven-install-plugin-2.1.pom
981b downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.1/maven-install-plugin-2.1.jar
8K downloaded
[INFO]
----------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [install:install-file] (aggregator-style)
[INFO]
----------------------------------------------------------------------------
[INFO] [install:install-file]
[INFO] Installing /Users/stefan/Development/Java/hibernate-
entitymanager-3.1.0.Beta8/lib/ejb3-persistence.jar to
/Users/stefan/.m2/repository/javax/persistence/ejb/3.0/ejb-3.0.jar
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL

It did get a newer version of the maven-install-plugin, 2.1, but it did not
install a pom file.

Maybe this is a bug?

S.

Reply via email to