Perhaps you meant "${project.version}" instead of "${currentVersion}" ?Quintin Beukes On Fri, Oct 9, 2009 at 5:43 PM, laredotornado <[email protected]> wrote: > > Hi, > > I'm using Maven 1.1. I have this dependency in my project.xml file ... > > <dependency> > <groupId>myco.oit.governor.citizen.assistanceUtility</groupId> > > <artifactId>myco-oit-governor-citizen-assistanceUtility-webapp</artifactId> > <version>${currentVersion}</version> > <type>war</type> > </dependency> > > However when running a maven command (e.g. maven test:test), I get a failed > dependency error, even though the dependency exists in my local repo. How > do I force maven to check the local repo? > > maven test:test > __ __ > | \/ |__ _Apache__ ___ > | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ > |_| |_\__,_|\_/\___|_||_| v. 1.1 > > Trying to get missing dependencies (and updated snapshots) required by > myco-oit-governor-citizen-assistanceUtility-test: > - Attempting to download > myco.oit.governor.citizen.assistanceUtility:myco-oit-governor-citizen-assistanceUtility-webapp::war > from http://localhost:9999/maven > Error retrieving artifact from [http://localhost:9999/maven]: > org.apache.maven.wagon.TransferFailedException: Connection refused > - Attempting to download > myco.oit.governor.citizen.assistanceUtility:myco-oit-governor-citizen-assistanceUtility-webapp::war > from http://localhost:9999/maven-external > Error retrieving artifact from [http://localhost:9999/maven-external]: > org.apache.maven.wagon.TransferFailedException: Connection refused > - Attempting to download > myco.oit.governor.citizen.assistanceUtility:myco-oit-governor-citizen-assistanceUtility-webapp::war > from http://localhost:9999/maven-remotebox > Error retrieving artifact from [http://localhost:9999/maven-remotebox]: > org.apache.maven.wagon.TransferFailedException: Connection refused > - Attempting to download > myco.oit.governor.citizen.assistanceUtility:myco-oit-governor-citizen-assistanceUtility-webapp::war > from http://localhost:9999/maven-external-indiana > Error retrieving artifact from > [http://localhost:9999/maven-external-indiana]: > org.apache.maven.wagon.TransferFailedException: Connection refused > - Attempting to download > myco.oit.governor.citizen.assistanceUtility:myco-oit-governor-citizen-assistanceUtility-webapp::war > from http://software.ais.pl/repository > - Attempting to download > myco.oit.governor.citizen.assistanceUtility:myco-oit-governor-citizen-assistanceUtility-webapp::war > from http://download.java.net/maven/1/ > - Attempting to download > myco.oit.governor.citizen.assistanceUtility:myco-oit-governor-citizen-assistanceUtility-webapp::war > from http://repo1.maven.org/maven > - Attempting to download > myco.oit.governor.citizen.assistanceUtility:myco-oit-governor-citizen-assistanceUtility-webapp::war > from http://people.apache.org/repo/m1-snapshot-repository/ > - Attempting to download > myco.oit.governor.citizen.assistanceUtility:myco-oit-governor-citizen-assistanceUtility-webapp::war > from http://mirrors.sunsite.dk/maven > ------------------------------------------------------------------------------- >>> The build cannot continue because of the following unsatisfied >>> dependency: > - > myco.oit.governor.citizen.assistanceUtility:myco-oit-governor-citizen-assistanceUtility-webapp::war > > ------------------------------------------------------------------------------- > BUILD FAILED > ------------------------------------------------------------------------------- > > -- > View this message in context: > http://www.nabble.com/Why-doesn%27t-maven-look-for-dependency-in-the-local-repo--tp25823180p25823180.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
