I believe you have to specify your repository as a plugin repository
(using the pluginRepository element) if you want Maven to look there for
plugins.
<profiles>
<profile>
<id>provider-profile</id>
<pluginRepositories>
<repository>
<id>provider-repository</id>
<name>Repositorio de libs interno da Provider
Sistemas</name>
<url>http://192.168.10.254/maven</url>
</repository>
</pluginRepositories>
</profile>
</profiles>
-----Original Message-----
From: Marcos Silva Pereira [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 07, 2007 12:20 PM
To: Maven Users List
Subject: Custom plugins are not found in internal repository.
Hello, I've developed some custom mojos to Maven and try to install and
deploy to a internal repository. The internal repo is configured to me
using /local/repository/.m2/settings.xml like I show below:
<profiles>
<profile>
<id>provider-profile</id>
<repositories>
<repository>
<id>provider-repository</id>
<name>Repositorio de libs interno da Provider
Sistemas</name>
<url>http://192.168.10.254/maven</url>
</repository>
</repositories>
</profile>
</profiles>
And I have configured deployment management in mojos' pom.xml like the
code
below:
<distributionManagement>
<repository>
<id>provider-deploy-repository</id>
<name>Repositorio para Deploy das libs Provider</name>
<url>file:////192.168.10.254/maven</url>
</repository>
<snapshotRepository>
<id>provider-snapshot-repository</id>
<name>Repositorio para guardar Snapshots</name>
<url>file:////192.168.10.254/maven</url>
</snapshotRepository>
<site>
<id>${project.groupId}.${project.artifactId}</id>
<name>${project.name}</name>
<url>file:////192.168.10.254/maven/sites/${project.artifactId}</url>
</site>
</distributionManagement>
I have fully access rights to this network path, after execute "mvn
clean install deploy" to some mojo, when I loook to its deployment path,
the files are there. But, when some other developers, that have settings
configured like me, try to use the mojo, he(she) get the following
message:
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file
-DgroupId=com.provider.maven.plugins-DartifactId=maven-i18n-plugin
-Dversion=1.0 -Dpackaging=maven-plugin -Dfile=/path/to/file
Must I configure profiles - or internal repositories - in some place in
order to enable mojos downloads?
Thanks.
--
Marcos Silva Pereira
recife - pe
[EMAIL PROTECTED]
skype: marcos.silva.pereira
http://blastemica.blogspot.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]