I have just set up an Artifactory instance on my local machine and deployed a jar to the libs-release repository. I have used the "Set me up" feature within Artifactory to generate my .settings.xml in /home/.m2/. However when I declare the dependency in a projects pom.xml, it is unable to resolve.
.settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<servers>
<server>
<username>username</username>
<password>password</password>
<id>central</id>
</server>
<server>
<username>username</username>
<password>password</password>
<id>snapshots</id>
</server>
</servers>
<profiles>
<profile>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>libs-release</name>
<url>http://localhost:8080/artifactory/libs-release</url>
</repository>
<repository>
<snapshots />
<id>snapshots</id>
<name>libs-snapshot</name>
<url>http://localhost:8080/artifactory/libs-snapshot</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>plugins-release</name>
<url>http://localhost:8080/artifactory/plugins-release</url>
</pluginRepository>
<pluginRepository>
<snapshots />
<id>snapshots</id>
<name>plugins-snapshot</name>
<url>http://localhost:8080/artifactory/plugins-snapshot</url>
</pluginRepository>
</pluginRepositories>
<id>artifactory</id>
</profile>
</profiles>
<activeProfiles>
<activeProfile>artifactory</activeProfile>
</activeProfiles>
</settings>
dependency declaration in project pom.xml
<dependency>
<groupId>com.zeroalpha.struts</groupId>
<artifactId>struts-el</artifactId>
<version>1.3.8</version>
</dependency>
I have confirmed that the deployed resource is located at
libs-release-local/com/zeroalpha/struts/struts-el/1.3.8/struts-el-1.3.8.jar
The error in Eclipse says Missing artifact com.zeroalpha.struts:struts-el:jar:1.3.8
I have tried moving the repositories element from the .settings.xml to my own projects pom.xml, but that doesn't work either. Please advise.