I'm still new at maven, but I'm attempting to add a new repository to resolve a dependency in my project with no luck. I've added the following to my POM:
<repositories>
<repository>
<id>com.mvnrepository</id>
<name>mvnrepository.com</name>
<layout>default</layout>
<url>http://repo1.maven.org/maven2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.apache.jmeter</groupId>
<artifactId>ApacheJMeter_parent</artifactId>
<version>2.10</version>
</dependency>
</dependencies>
I tried switching layout from default
to legacy
in the off chance that my maven3 had some conflict with the maven2 repository, but that yielded nothing.
If anyone could tell me what I'm not doing correctly, I'd appreciate it.
UPDATE: I feel really stupid now, here's the output of my terminal. It looks like maven is attempting to resolve the dependency through our corporate repository. I suppose the questions should now be, how do I add this additional repository despite the fact I have a company repository defined in my settings.xml?
[ERROR] Failed to execute goal on project jmeter-analyzer: Could not resolve
dependencies for project <Project name here> Failure to find org.apache.jmeter:
ApacheJMeter_parent:jar:2.10 in http://<our internal corporate repo-url here> was
cached in the local repository, resolution will not be reattempted until the
update interval of <Company mirror name here> has elapsed or updates are forced
-> [Help 1]
UPDATE: It looks like it is definitely defined in my settings.xml file under: <mirrors>
, <profiles>
, and even <pluginGroups>
. This shouldn't completely prevent me from adding a third party repo to this single project should it?