|
From: kcr sk <sk...@ya...> - 2007-04-06 21:22:52
|
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. |