Hi, I have recently downloaded artifactory 2.2.4 and installed as window service.
i am not directly connected to internet, and so i dont know what chnages i need to do in artifactory.config.xml and maven settings.xml so that my setup works. when i try to run mvn clean package from my project this is wat i get in errors [ERROR] Failed to execute goal on project app: Could not resolve dependencies for project org.akhil.testapp:app:jar:1.0-SNAPSHOT: Failure to find junit:junit:jar:3.8.1 in http://localhost:8081/artifactory/repo was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: could anyone suggest me what changes i need to do in proxy setting of artifactory.config.xml and maven settings.xml , so that maven takes artifacts from my artifactory which in turn will connect to remote repository to fetch data in artifactory.. right now in my artifactory there are 0 artifacts.....and how to populate my artifactory from remote apache.maven.org repository. my artifactory.config.xml looks like this <?xml version="1.0" encoding="UTF-8"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://artifactory.jfrog.org/xsd/1.4.10" xsi:schemaLocation="http://artifactory.jfrog.org/xsd/1.4.10 http://www.jfrog.org/xsd/artifactory-v1_4_10.xsd"> <security> <anonAccessEnabled>true</anonAccessEnabled> </security> <backups> <backup> <key>backup-daily</key> <cronExp>0 0 2 ? * MON-FRI</cronExp> <retentionPeriodHours>0</retentionPeriodHours> <excludedRepositories> <repositoryRef>repo1</repositoryRef> </excludedRepositories> </backup> <backup> <key>backup-weekly</key> <cronExp>0 0 2 ? * SAT</cronExp> <retentionPeriodHours>336</retentionPeriodHours> <excludedRepositories> <repositoryRef>repo1</repositoryRef> </excludedRepositories> </backup> </backups> <indexer> <indexingIntervalHours>24</indexingIntervalHours> </indexer> <localRepositories> <localRepository> <key>libs-release-local</key> <description>Local repository for in-house libraries</description> <repoLayoutRef>maven-2-default</repoLayoutRef> <handleReleases>true</handleReleases> <handleSnapshots>false</handleSnapshots> </localRepository> <localRepository> <key>libs-snapshot-local</key> <description>Local repository for in-house snapshots</description> <repoLayoutRef>maven-2-default</repoLayoutRef> <handleReleases>false</handleReleases> <handleSnapshots>true</handleSnapshots> </localRepository> <localRepository> <key>plugins-release-local</key> <description>Local repository for plugins</description> <repoLayoutRef>maven-2-default</repoLayoutRef> <handleReleases>true</handleReleases> <handleSnapshots>false</handleSnapshots> </localRepository> <localRepository> <key>plugins-snapshot-local</key> <description>Local repository for plugins snapshots</description> <repoLayoutRef>maven-2-default</repoLayoutRef> <handleReleases>false</handleReleases> <handleSnapshots>true</handleSnapshots> </localRepository> <localRepository> <key>ext-release-local</key> <description>Local repository for third party libraries</description> <repoLayoutRef>maven-2-default</repoLayoutRef> <handleReleases>true</handleReleases> <handleSnapshots>false</handleSnapshots> </localRepository> <localRepository> <key>ext-snapshot-local</key> <description>Local repository for third party snapshots</description> <repoLayoutRef>maven-2-default</repoLayoutRef> <handleReleases>false</handleReleases> <handleSnapshots>true</handleSnapshots> </localRepository> </localRepositories> <remoteRepositories> <remoteRepository> <key>repo1</key> <description>Central Maven 2 repository</description> <repoLayoutRef>maven-2-default</repoLayoutRef> <handleReleases>true</handleReleases> <handleSnapshots>false</handleSnapshots> <url>http://repo1.maven.org/maven2</url> </remoteRepository> <remoteRepository> <key>java.net.m2</key> <description>java.net Maven2 Format</description> <excludesPattern>commons-*,org/apache/**</excludesPattern> <repoLayoutRef>maven-2-default</repoLayoutRef> <handleReleases>true</handleReleases> <handleSnapshots>true</handleSnapshots> <url>http://download.java.net/maven/2</url> </remoteRepository> <remoteRepository> <key>java.net.m1</key> <description>java.net Maven1 Format</description> <repoLayoutRef>maven-2-default</repoLayoutRef> <handleReleases>true</handleReleases> <handleSnapshots>true</handleSnapshots> <url>http://download.java.net/maven/1</url> <remoteRepoLayoutRef>maven-1-default</remoteRepoLayoutRef> </remoteRepository> <remoteRepository> <key>jfrog-libs</key> <description>JFrog libraries releases</description> <excludesPattern>org/apache/maven/**</excludesPattern> <repoLayoutRef>maven-2-default</repoLayoutRef> <handleReleases>true</handleReleases> <handleSnapshots>false</handleSnapshots> <url>http://repo.jfrog.org/artifactory/libs-releases-local</url> </remoteRepository> <remoteRepository> <key>jfrog-plugins</key> <description>JFrog plugins releases</description> <includesPattern>org/jfrog/**</includesPattern> <repoLayoutRef>maven-2-default</repoLayoutRef> <handleReleases>true</handleReleases> <handleSnapshots>false</handleSnapshots> <url>http://repo.jfrog.org/artifactory/plugins-releases-local</url> </remoteRepository> <remoteRepository> <key>jboss</key> <description>JBoss Maven2 releases</description> <includesPattern>org/jboss/**,org/hibernate/**,org/richfaces/**,org/drools/**</includesPattern> <repoLayoutRef>maven-2-default</repoLayoutRef> <handleReleases>true</handleReleases> <handleSnapshots>false</handleSnapshots> <url>http://repository.jboss.org/nexus/content/groups/public-jboss</url> </remoteRepository> <remoteRepository> <key>codehaus</key> <description>Codehaus Maven2 releases</description> <includesPattern>org/**,com/**,net/**</includesPattern> <excludesPattern>org/apache/**,commons-*,org/artifactory/**,org/jfrog/**</excludesPattern> <repoLayoutRef>maven-2-default</repoLayoutRef> <handleReleases>true</handleReleases> <handleSnapshots>false</handleSnapshots> <url>http://repository.codehaus.org</url> </remoteRepository> <remoteRepository> <key>spring-milestone</key> <description>SpringSource in milestone version</description> <includesPattern>org/springframework/**</includesPattern> <repoLayoutRef>maven-2-default</repoLayoutRef> <handleReleases>true</handleReleases> <handleSnapshots>false</handleSnapshots> <url>http://repository.springsource.com/maven/bundles/milestone</url> </remoteRepository> <remoteRepository> <key>spring-release</key> <description>SpringSource releases</description> <includesPattern>org/springframework/**</includesPattern> <repoLayoutRef>maven-2-default</repoLayoutRef> <handleReleases>true</handleReleases> <handleSnapshots>false</handleSnapshots> <url>http://repository.springsource.com/maven/bundles/release</url> </remoteRepository> <remoteRepository> <key>google-code</key> <description>Google's open source releases</description> <includesPattern>com/google/**</includesPattern> <repoLayoutRef>maven-2-default</repoLayoutRef> <handleReleases>true</handleReleases> <handleSnapshots>false</handleSnapshots> <url>http://google-maven-repository.googlecode.com/svn/repository</url> </remoteRepository> <remoteRepository> <key>gradle-libs</key> <description>Gradle libraries</description> <includesPattern>**/*</includesPattern> <repoLayoutRef>maven-2-default</repoLayoutRef> <handleReleases>true</handleReleases> <handleSnapshots>false</handleSnapshots> <url>http://gradle.artifactoryonline.com/gradle/libs</url> </remoteRepository> <remoteRepository> <key>gradle-plugins</key> <description>Gradle plugins</description> <includesPattern>**/*</includesPattern> <repoLayoutRef>maven-2-default</repoLayoutRef> <handleReleases>true</handleReleases> <handleSnapshots>false</handleSnapshots> <url>http://gradle.artifactoryonline.com/gradle/plugins</url> </remoteRepository> </remoteRepositories> <virtualRepositories> <virtualRepository> <key>remote-repos</key> <artifactoryRequestsCanRetrieveRemoteArtifacts>true</artifactoryRequestsCanRetrieveRemoteArtifacts> <repositories> <repositoryRef>codehaus</repositoryRef> <repositoryRef>jboss</repositoryRef> <repositoryRef>java.net.m2</repositoryRef> <repositoryRef>java.net.m1</repositoryRef> <repositoryRef>repo1</repositoryRef> <repositoryRef>jfrog-libs</repositoryRef> <repositoryRef>jfrog-plugins</repositoryRef> <repositoryRef>spring-milestone</repositoryRef> <repositoryRef>spring-release</repositoryRef> <repositoryRef>google-code</repositoryRef> <repositoryRef>gradle-libs</repositoryRef> <repositoryRef>gradle-plugins</repositoryRef> </repositories> <pomRepositoryReferencesCleanupPolicy>discard_active_reference</pomRepositoryReferencesCleanupPolicy> </virtualRepository> <virtualRepository> <key>libs-release</key> <repositories> <repositoryRef>libs-release-local</repositoryRef> <repositoryRef>ext-release-local</repositoryRef> <repositoryRef>remote-repos</repositoryRef> </repositories> </virtualRepository> <virtualRepository> <key>plugins-release</key> <repositories> <repositoryRef>plugins-release-local</repositoryRef> <repositoryRef>ext-release-local</repositoryRef> <repositoryRef>remote-repos</repositoryRef> </repositories> <pomRepositoryReferencesCleanupPolicy>discard_active_reference</pomRepositoryReferencesCleanupPolicy> </virtualRepository> <virtualRepository> <key>libs-snapshot</key> <repositories> <repositoryRef>libs-snapshot-local</repositoryRef> <repositoryRef>ext-snapshot-local</repositoryRef> <repositoryRef>remote-repos</repositoryRef> </repositories> <pomRepositoryReferencesCleanupPolicy>discard_active_reference</pomRepositoryReferencesCleanupPolicy> </virtualRepository> <virtualRepository> <key>plugins-snapshot</key> <repositories> <repositoryRef>plugins-snapshot-local</repositoryRef> <repositoryRef>ext-snapshot-local</repositoryRef> <repositoryRef>remote-repos</repositoryRef> </repositories> <pomRepositoryReferencesCleanupPolicy>discard_active_reference</pomRepositoryReferencesCleanupPolicy> </virtualRepository> </virtualRepositories> <repoLayouts> <repoLayout> <name>maven-2-default</name> <artifactPathPattern>[orgPath]/[module]/[baseRev](-[folderItegRev])/[module]-[baseRev](-[fileItegRev])(-[classifier]).[ext]</artifactPathPattern> <distinctiveDescriptorPathPattern>true</distinctiveDescriptorPathPattern> <descriptorPathPattern>[orgPath]/[module]/[baseRev](-[folderItegRev])/[module]-[baseRev](-[fileItegRev])(-[classifier]).pom</descriptorPathPattern> <folderIntegrationRevisionRegExp>SNAPSHOT</folderIntegrationRevisionRegExp> <fileIntegrationRevisionRegExp>SNAPSHOT|(?:(?:[0-9]{8}.[0-9]{6})-(?:[0-9]+))</fileIntegrationRevisionRegExp> </repoLayout> <repoLayout> <name>ivy-default</name> <artifactPathPattern>[org]/[module]/[baseRev](-[folderItegRev])/[type]s/[module](-[classifier])-[baseRev](-[fileItegRev]).[ext]</artifactPathPattern> <distinctiveDescriptorPathPattern>true</distinctiveDescriptorPathPattern> <descriptorPathPattern>[org]/[module]/[baseRev](-[folderItegRev])/[type]s/ivy-[baseRev](-[fileItegRev]).xml</descriptorPathPattern> <folderIntegrationRevisionRegExp>\d{14}</folderIntegrationRevisionRegExp> <fileIntegrationRevisionRegExp>\d{14}</fileIntegrationRevisionRegExp> </repoLayout> <repoLayout> <name>gradle-default</name> <artifactPathPattern>[org]/[module]/[baseRev](-[folderItegRev])/[module]-[baseRev](-[fileItegRev])(-[classifier]).[ext]</artifactPathPattern> <distinctiveDescriptorPathPattern>true</distinctiveDescriptorPathPattern> <descriptorPathPattern>[org]/[module]/ivy-[baseRev](-[fileItegRev]).xml</descriptorPathPattern> <folderIntegrationRevisionRegExp>\d{14}</folderIntegrationRevisionRegExp> <fileIntegrationRevisionRegExp>\d{14}</fileIntegrationRevisionRegExp> </repoLayout> <repoLayout> <name>maven-1-default</name> <artifactPathPattern>[org]/[type]s/[module]-[baseRev](-[fileItegRev])(-[classifier]).[ext]</artifactPathPattern> <distinctiveDescriptorPathPattern>true</distinctiveDescriptorPathPattern> <descriptorPathPattern>[org]/[type]s/[module]-[baseRev](-[fileItegRev]).pom</descriptorPathPattern> <folderIntegrationRevisionRegExp>.+</folderIntegrationRevisionRegExp> <fileIntegrationRevisionRegExp>.+</fileIntegrationRevisionRegExp> </repoLayout> </repoLayouts> <gcConfig> <cronExp>0 0 /4 * * ?</cronExp> </gcConfig> </config> and my settings.xml looks like this <?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <pluginGroups> </pluginGroups> <proxies> </proxies> <servers> </servers> <mirrors> </mirrors> <profiles> </profiles> </settings> the proxy which you can see are by default ....... do i need to do changes in the proxy so that setup works............. also if i am directly conneccted to internet (not behind proxy ) what changes and where changes i need to do........... Thanks in Advance....... -- View this message in context: http://forums.jfrog.org/Artifactory-and-maven-configuration-are-not-working-tp7049597p7049597.html Sent from the Artifactory - Users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ Artifactory-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/artifactory-users
