I am new to
maven, and I am having trouble getting it to resolve some dependencies in a pom.xml file that I inherited. Rather than try to tackle all the failed dependencies, I decided to try and resolve just one. I took the original pom.xml and cut out everything except one dependency that was failing.
I know the jar file is in my local repository, but I keep getting an error message from maven that it cannot be found.
Here is my .m2/setttings.xml file. Offline is 'true' because I want to force maven to find the dependency in my local repository.
Here is my pom.xml file:
Here is the physical location of the jboss-jsf-api_2.1_spec artifact:
Here is my attempt to re-add the jar (got an error that it was already in the repository):
mvn install:install-file -Dfile=/Users/admin/.m2/repository/org/jboss/javax/faces/jboss-jsf-api_2.1_spec/2.0.1.Final/jboss-jsf-api_2.1_spec-2.0.1.Final.jar -DgroupId=org.jboss.javax.faces -DartifactId=jboss-jsf-api_2.1_spec -Dversion=2.0.1.Final -Dpackaging=jar
By the way, when I set offline to 'false' in settings.xml, I get this error message:
Could not find artifact org.jboss.javax.faces:jboss-jsf-api_2.1_spec:jar:2.0.1.Final in central (
http://repo.maven.apache.org/maven2) -> [Help 1]
Here is what I get if I take maven offline by setting offline to 'true' in settings.xml: