artifactory - maven plugin not found error.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

artifactory - maven plugin not found error.

kcr sk
Hi all,
 
I am new to artifactory.
 
I am currently doing only snapshots in Maven and thus had related settings in the settings.xml and pom.xml but I when I do run  maven clean command, I get the following error:
The plugin 'org.apache.maven.plugins:maven-clean-plugin' does not exist or no valid version could be found.
 
Any input is highly appreciated. Thanks in advance.
 
 
The settings.xml is as follows:
 
<settings>
<localRepository>C:\m2-repository</localRepository>
<servers>
<server>
<id>xx-repository</id>
<username>xxx</username>
<password>xxx</password>
</server>
<server>
<id>xx-website</id>
<username>xxx</username>
<password>xxx</password>
</server>
<server>
<id>xx-tomcat</id>
<username>xx</username>
<password>xx</password>
</server>
</servers>
<profiles>
<profile>
<id>default</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repository>
<id>central</id>
<url>http://[server name]:[port]/artifactory/repo</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>http://[server name]:[port]/artifactory/repo</url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<mirrors>
<mirror>
<id>Maven Artifactory</id>
<name>Maven Artifactory</name>
<url>http://[server name]:[port]/artifactory/repo</url>
<mirrorOf>*</mirrorOf>
</mirror>
</mirrors>
</settings>
 
The related content in pom.xml:
 
<distributionManagement>
<repository>
<id>xx-repository</id>
<name>Maven Artifactory</name>
<url>http://[server name]:[port]/artifactory/repo</url>
</repository>
<site>
<id>xx-website</id>
<url>xxxxxxxx</url>
</site>
</distributionManagement>
<repositories>
<repository>
<id>central</id>
<name>Maven Artifactory</name>
<url>http://[server name]:[port]/artifactory/repo</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
 
<pluginRepositories>
<pluginRepository>
<id>central</id>
<name>Maven Artifactory</name>
<url>http://[server name]:[port]/artifactory/repo</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
 
artifactory.config.xml:
 
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://artifactory.jfrog.org/xsd/1.0.0"
xsi:schemaLocation="http://artifactory.jfrog.org/xsd/1.0.0
<!-- Backup every 12 hours -->
<!--<backupCronExp>0 0 /12 * * ?</backupCronExp>-->
<localRepositories>
<localRepository>
<key>local-repo</key>
<description>local repoitory</description>
<handleReleases>false</handleReleases>
<handleSnapshots>true</handleSnapshots>
</localRepository>
</localRepositories>
<remoteRepositories>
<!--<remoteRepository>
<key>repo1</key>
<handleReleases>true</handleReleases>
<handleSnapshots>false</handleSnapshots>
<excludesPattern>org/artifactory/**</excludesPattern>
<url>http://repo1.maven.org/maven2</url>
</remoteRepository>-->
<remoteRepository>
<key>codehaus</key>
<handleReleases>true</handleReleases>
<handleSnapshots>false</handleSnapshots>
<url>http://dist.codehaus.org</url>
</remoteRepository>
<remoteRepository>
<key>codehaus-snapshots</key>
<handleReleases>false</handleReleases>
<handleSnapshots>true</handleSnapshots>
<url>http://snapshots.repository.codehaus.org</url>
</remoteRepository>
<remoteRepository>
<key>ibiblio</key>
<excludesPattern>org/artifactory/**</excludesPattern>
<url>http://www.ibiblio.org/maven2</url>
</remoteRepository>
<!--<remoteRepository>
<key>ibiblio</key>
<excludesPattern>org/artifactory/**</excludesPattern>
<url>http://www.ibiblio.org/maven2</url>
</remoteRepository>-->
<!--<remoteRepository>
<key>apache-m2-snapshots</key>
<handleReleases>false</handleReleases>
<handleSnapshots>true</handleSnapshots>
<url>http://people.apache.org/repo/m2-snapshot-repository</url>
</remoteRepository>-->
<!--<remoteRepository>
<key>java.net</key>
<description>java.net repo</description>
<blackedOut>true</blackedOut>
<includesPattern>*/**</includesPattern>
<excludesPattern></excludesPattern>
<url>https://maven-repository.dev.java.net/nonav/repository</url>
<hardFail>true</hardFail>
<storeArtifactsLocally>true</storeArtifactsLocally>
<username>un</username>
<password>pw</password>
<socketTimeoutMillis>2000</socketTimeoutMillis>
<proxyRef>proxy1</proxyRef>
</remoteRepository>-->
</remoteRepositories>
<proxies>
<proxy>
<key>proxy1</key>
<host>somehost</host>
<port>8080</port>
<username>un</username>
<password>pw</password>
<domain>domain</domain>
</proxy>
</proxies>
</config>


Get your own web address.
Have a HUGE year through Yahoo! Small Business.
Reply | Threaded
Open this post in threaded view
|

Re: artifactory - maven plugin not found error.

Jorg Heymans-4
You might have hit an age old maven bug, can you verify that in your
local repository
org/apache/maven/plugins/maven-clean-plugin/<latest-version>/ there
only exists a metadata.xml ? If so you should be ok by just removing
the entire maven-clean-plugin directory and rerun your build.

Alternatively run mvn -U, that has worked for me in the past as well.

HTH
Jorg

On 4/6/07, kcr sk <[hidden email]> wrote:

> Hi all,
>
> I am new to artifactory.
>
> I am currently doing only snapshots in Maven and thus had related settings
> in the settings.xml and pom.xml but I when I do run  maven clean command, I
> get the following error:
> The plugin 'org.apache.maven.plugins:maven-clean-plugin'
> does not exist or no valid version could be found.
>
> Any input is highly appreciated. Thanks in advance.
>
>
> The settings.xml is as follows:
>
> <settings>
> <localRepository>C:\m2-repository</localRepository>
> <servers>
> <server>
> <id>xx-repository</id>
> <username>xxx</username>
> <password>xxx</password>
> </server>
> <server>
> <id>xx-website</id>
> <username>xxx</username>
> <password>xxx</password>
> </server>
> <server>
> <id>xx-tomcat</id>
> <username>xx</username>
> <password>xx</password>
> </server>
> </servers>
> <profiles>
> <profile>
> <id>default</id>
> <activation>
> <activeByDefault>true</activeByDefault>
> </activation>
> <repository>
> <id>central</id>
> <url>http://[server name]:[port]/artifactory/repo</url>
> </repository>
> </repositories>
> <pluginRepositories>
> <pluginRepository>
> <id>central</id>
> <url>http://[server name]:[port]/artifactory/repo</url>
> </pluginRepository>
>
> </pluginRepositories>
> </profile>
> </profiles>
>
> <mirrors>
> <mirror>
> <id>Maven Artifactory</id>
> <name>Maven Artifactory</name>
> <url>http://[server name]:[port]/artifactory/repo</url>
> <mirrorOf>*</mirrorOf>
> </mirror>
> </mirrors>
> </settings>
>
> The related content in pom.xml:
>
> <distributionManagement>
> <repository>
> <id>xx-repository</id>
> <name>Maven Artifactory</name>
> <url>http://[server name]:[port]/artifactory/repo</url>
> </repository>
> <site>
> <id>xx-website</id>
> <url>xxxxxxxx</url>
> </site>
> </distributionManagement>
>
> <repositories>
> <repository>
> <id>central</id>
> <name>Maven Artifactory</name>
> <url>http://[server name]:[port]/artifactory/repo</url>
> <snapshots>
> <enabled>true</enabled>
> </snapshots>
> </repository>
>
> <pluginRepositories>
> <pluginRepository>
> <id>central</id>
> <name>Maven Artifactory</name>
> <url>http://[server name]:[port]/artifactory/repo</url>
> <snapshots>
> <enabled>true</enabled>
> </snapshots>
> </pluginRepository>
>
> artifactory.config.xml:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <config
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://artifactory.jfrog.org/xsd/1.0.0"
> xsi:schemaLocation="http://artifactory.jfrog.org/xsd/1.0.0
> http://www.jfrog.org/xsd/artifactory-v1_0_0.xsd">
> <!-- Backup every 12 hours -->
> <!--<backupCronExp>0 0 /12 * * ?</backupCronExp>-->
> <localRepositories>
> <localRepository>
> <key>local-repo</key>
> <description>local repoitory</description>
> <handleReleases>false</handleReleases>
> <handleSnapshots>true</handleSnapshots>
> </localRepository>
> </localRepositories>
> <remoteRepositories>
> <!--<remoteRepository>
> <key>repo1</key>
> <handleReleases>true</handleReleases>
> <handleSnapshots>false</handleSnapshots>
> <excludesPattern>org/artifactory/**</excludesPattern>
> <url>http://repo1.maven.org/maven2</url>
> </remoteRepository>-->
> <remoteRepository>
> <key>codehaus</key>
> <handleReleases>true</handleReleases>
> <handleSnapshots>false</handleSnapshots>
> <url>http://dist.codehaus.org</url>
> </remoteRepository>
> <remoteRepository>
> <key>codehaus-snapshots</key>
> <handleReleases>false</handleReleases>
> <handleSnapshots>true</handleSnapshots>
> <url>http://snapshots.repository.codehaus.org</url>
> </remoteRepository>
> <remoteRepository>
> <key>ibiblio</key>
> <excludesPattern>org/artifactory/**</excludesPattern>
> <url>http://www.ibiblio.org/maven2</url>
> </remoteRepository>
> <!--<remoteRepository>
> <key>ibiblio</key>
> <excludesPattern>org/artifactory/**</excludesPattern>
> <url>http://www.ibiblio.org/maven2</url>
> </remoteRepository>-->
> <!--<remoteRepository>
> <key>apache-m2-snapshots</key>
> <handleReleases>false</handleReleases>
> <handleSnapshots>true</handleSnapshots>
> <url>http://people.apache.org/repo/m2-snapshot-repository</url>
> </remoteRepository>-->
> <!--<remoteRepository>
> <key>java.net</key>
> <description>java.net repo</description>
> <blackedOut>true</blackedOut>
> <includesPattern>*/**</includesPattern>
> <excludesPattern></excludesPattern>
> <url>https://maven-repository.dev.java.net/nonav/repository</url>
> <hardFail>true</hardFail>
> <storeArtifactsLocally>true</storeArtifactsLocally>
> <username>un</username>
> <password>pw</password>
> <socketTimeoutMillis>2000</socketTimeoutMillis>
> <proxyRef>proxy1</proxyRef>
> </remoteRepository>-->
> </remoteRepositories>
> <proxies>
> <proxy>
> <key>proxy1</key>
> <host>somehost</host>
> <port>8080</port>
> <username>un</username>
> <password>pw</password>
> <domain>domain</domain>
> </proxy>
> </proxies>
> </config>
>
>
>  ________________________________
>  Get your own web address.
>  Have a HUGE year through Yahoo! Small Business.
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Artifactory-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
>