I copied the pom file from
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.0.2/
(and the md5's and sha's for the pom and the jar) into
~/.m2/repository/org/apache/maven/plugins/maven-war-plugin/2.0.2/
but still mvn install says
'The plugin 'org.apache.maven.plugins:maven-war-plugin' does not exist
or no valid version could be found'
I am connected to the internet, and as you say, Maven should
automatically install the plugin. But it doesn't.
Thanks for your rapid turnaround, btw. I've never known a commercial
company with this level of support.
Wayne Fay wrote:
I would assume that you didn't install the pom file along with the
jar. Easiest thing would be to just grab the pom file and literally
copy and paste it into the proper place in your filesystem.
On a related note... why are you installing these files manually -- so
long as you are connected to the Internet, Maven should automatically
resolve, download, and install this plugin and all related files.
Wayne
On 3/21/07, Rod Mclaughlin <[EMAIL PROTECTED]> wrote:
Can anyone help me with this?
mvn install:install-file -DgroupId=org.apache.maven.plugins
-DartifactId=maven-war-plugin -Dfile=maven-war-plugin-2.0.2.jar
-Dversion=2.0.2 -Dpackaging=maven-plugin
creates
~/.m2/repository/org/apache/maven/plugins/maven-war-plugin/2.0.2/maven-war-plugin-2.0.2.jar
but
mvn install
says
'The plugin 'org.apache.maven.plugins:maven-war-plugin' does not exist
or no valid version could be found'
My colleague has the plugin in exactly the same place in his .m2 folder,
but when he enters mvn install, it builds.
The pom says
<modelVersion>4.0.0</modelVersion>
<name>XYZ</name>
<groupId>com.ourcompany</groupId>
<artifactId>abc</artifactId>
<packaging>war</packaging>
<version>0.1-SNAPSHOT</version>
<url>http://ourcompany.com</url>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Rod McLaughlin
[EMAIL PROTECTED]
.m2/repository/org/omnimedix/mclaughlin/rod/1.0-SNAPSHOT/rod-1.0-SNAPSHOT.jar
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]