Did you try to put a version in your plugin section ?
<version>1.0-SNAPSHOT</version>

If I understand well, you have already installed a maven-tomcat-plugin (from compilation of svn) So may be maven sees that you have a tomcat plugin in your repository and does not search for another since you already have it. May be the version can force it to lookup to remote repository and then force the download (since your version should not match this version).

If your version (your compiled one) is larger than 1.0-SNAPSHOT, may be try with the syntax [1.0-SNAPSHOT] I've read in previous threads that this points to a uniq version. If your version is greater, then you will never download the plugin until a new version is out ;)

Just an idea...

Jakub Pawlowicz a écrit :
Hi!

I would like to install Codehaus tomcat-maven-plugin into my local repository.
One way is to download the sources from subversion repository, compile them
and install with the 'mvn install:install', which works like a charm (but it's
not automatic, though).
AFAIK the other way is to use Codehaus snapshots repository
(http://snapshots.maven.codehaus.org/maven2/).
So how to force maven to download the tomcat-maven-plugin from the Codehaus
repository?
Do I have to add it as a dependency?

I've added <mirrors> section to my settings.xml, but it doesn't work for me.

Here are excerpts from my settings.xml and pom.xml:

settings.xml:
<settings>
...
  <mirrors>
    <mirror>
      <id>codehaus</id>
      <mirrorOf>central</mirrorOf>
      <url>http://snapshots.maven.codehaus.org/maven2/</url>
    </mirror>
  </mirrors>
...
</settings>

pom.xml:
<build>
 <plugins>
...
  <plugin>
   <groupId>org.codehaus.mojo</groupId>
   <artifactId>tomcat-maven-plugin</artifactId>
  </plugin>
...
 </plugins>
</build>

Regards,
Jakub

---------------------------------------------------------------------
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]

Reply via email to