|
From: zalym <moh...@gm...> - 2007-04-24 05:02:48
|
Hi, I need some help in setting up artifactory. I am new to maven as such, and hence unable to follow some of the documentation in the site. I want to setup a corporate repository, and I am planning to use artifactor= y for it. I am unable to get the basic setup going. I have attached my artifactory config and the my user settings.xml. I am trying to create a maven project from a clean installation and I get the following: C:\projects\zafin\mi3_testWS>mvn archetype:create [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] org.apache.maven.plugins: checking for updates from central [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =3D '48f1131ec365efd34b37dd5c69dd0e1953ffb33f'; remote =3D '<HTML><SCRIPT>parent.locati on.href=3D"http://192.168.254.254"</SCRIPT></HTML>' - RETRYING [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =3D '48f1131ec365efd34b37dd5c69dd0e1953ffb33f'; remote =3D '<HTML><SCRIPT>parent.locati on.href=3D"http://192.168.254.254"</SCRIPT></HTML>' - IGNORING [WARNING] Cannot resolve plugin-mapping metadata for groupId: org.apache.maven.plugins - IGNORING. [INFO] org.codehaus.mojo: checking for updates from central [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =3D 'c4e42891251d8549d71839cd05cdeff377cb7b5b'; remote =3D '<HTML><SCRIPT>parent.locati on.href=3D"http://192.168.254.254"</SCRIPT></HTML>' =E2=80=93 RETRYING Other info: We connect thru a proxy. I have given the proxy settings in the config xml. Is that correct? Looks like its trying to connect to the central repo directly. How do I know if it is contacting artifactory? Look forward to your replies=E2=80=A6 I went through the documentation but= am unable to figure this out. Regards, Saleem Config: <?xml version=3D"1.0" encoding=3D"UTF-8"?> <!-- /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ --> <config xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xmlns=3D"http://artifactory.jfrog.org/xsd/1.0.0" xsi:schemaLocation=3D"http://artifactory.jfrog.org/xsd/1.0.0 http://www.jfrog.org/xsd/artifactory-v1_0_0.xsd"> <!-- Every day at one AM --> <serverName>zafin-mvn-repo</serverName> <backupCronExp>0 0 1 * * ?</backupCronExp> <localRepositories> <localRepository> <key>libs-releases</key> <description>Zafin Repository for Applications Releases</description> <handleReleases>true</handleReleases> <handleSnapshots>false</handleSnapshots> </localRepository> <localRepository> <key>libs-snapshots</key> <description>Zafin Repository for Applications Snapshots</description> <handleReleases>false</handleReleases> <handleSnapshots>true</handleSnapshots> </localRepository> <localRepository> <key>plugins-releases</key> <description>Zafin Repository for Plugins Releases</description= > <handleReleases>true</handleReleases> <handleSnapshots>false</handleSnapshots> </localRepository> <localRepository> <key>plugins-snapshots</key> <description>Zafin Repository for Plugins Snapshots</description> <handleReleases>false</handleReleases> <handleSnapshots>true</handleSnapshots> </localRepository> <localRepository> <key>3rdp-releases</key> <description>Zafin Repository for Third party libraries</description> <handleReleases>true</handleReleases> <handleSnapshots>false</handleSnapshots> </localRepository> <localRepository> <key>3rdp-snapshots</key> <description>Zafin Repository for Third party snapshots</description> <handleReleases>false</handleReleases> <handleSnapshots>true</handleSnapshots> </localRepository> </localRepositories> <remoteRepositories> <remoteRepository> <key>repo1</key> <handleReleases>true</handleReleases> <handleSnapshots>false</handleSnapshots> =20 <excludesPattern>org/artifactory/**,org/jfrog/**</excludesPattern> <url>http://repo1.maven.org/maven2</url> </remoteRepository> <remoteRepository> <key>codehaus-snapshots</key> <blackedOut>true</blackedOut> <handleReleases>false</handleReleases> <handleSnapshots>true</handleSnapshots> =20 <excludesPattern>org/artifactory/**,org/jfrog/**</excludesPattern> <url>http://snapshots.repository.codehaus.org</url> </remoteRepository> <!--<remoteRepository> <key>codehaus</key> <handleReleases>true</handleReleases> <handleSnapshots>false</handleSnapshots> =20 <excludesPattern>org/artifactory/**,org/jfrog/**</excludesPattern> <url>http://dist.codehaus.org</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> =20 <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>zafin-proxy</key> <host>proxy_ip</host> <port>8080</port> </proxy> </proxies> </config> Settings: <settings> =09<profiles> =09=09<profile> =09=09=09<id>zafin</id> =09=09=09<activation> =09=09=09=09<activeByDefault>true</activeByDefault> =09=09=09</activation> =09=09=09<repositories> =09=09=09 <repository> =09=09=09 <id>central</id> =09=09=09 <url>http://localhost:2906/artifactory/repo</url> =09=09=09 <snapshots> =09=09=09 <enabled>false</enabled> =09=09=09 </snapshots> =09=09=09 </repository> =09=09=09 <repository> =09=09=09 <id>snapshots</id> =09=09=09 <url>http://localhost:2906/artifactory/repo</url> =09=09=09 <releases> =09=09=09 <enabled>false</enabled> =09=09=09 </releases> =09=09=09 </repository> =09=09=09</repositories> =09=09=09<pluginRepositories> =09=09=09 <pluginRepository> =09=09=09 <id>central</id> =09=09=09 <url>http://localhost:2906/artifactory/plugins-releases</u= rl> =09=09=09 <snapshots> =09=09=09 <enabled>false</enabled> =09=09=09 </snapshots> =09=09=09 </pluginRepository> =09=09=09 <pluginRepository> =09=09=09 <id>snapshots</id> =09=09=09 <url>http://localhost:2906/artifactory/plugins-snapshots</= url> =09=09=09 <releases> =09=09=09 <enabled>false</enabled> =09=09=09 </releases> =09=09=09 </pluginRepository> =09=09=09</pluginRepositories> =09=09</profile> =09</profiles> </settings> --=20 View this message in context: http://www.nabble.com/Initial-setup-tf3636461= .html#a10154454 Sent from the Artifactory-Users mailing list archive at Nabble.com. |