Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 7920 invoked from network); 9 Oct 2009 18:22:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Oct 2009 18:22:58 -0000 Received: (qmail 35640 invoked by uid 500); 9 Oct 2009 18:22:55 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 35540 invoked by uid 500); 9 Oct 2009 18:22:55 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 35529 invoked by uid 99); 9 Oct 2009 18:22:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Oct 2009 18:22:55 +0000 X-ASF-Spam-Status: No, hits=2.7 required=10.0 tests=SPF_NEUTRAL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.217.227] (HELO mail-gx0-f227.google.com) (209.85.217.227) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Oct 2009 18:22:43 +0000 Received: by gxk27 with SMTP id 27so7165187gxk.7 for ; Fri, 09 Oct 2009 11:22:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.80.2 with SMTP id d2mr3506301anb.35.1255112539516; Fri, 09 Oct 2009 11:22:19 -0700 (PDT) In-Reply-To: <25824586.post@talk.nabble.com> References: <25823180.post@talk.nabble.com> <1f3854d50910090901o6dfdce35r69c0ee420a362ce@mail.gmail.com> <25824586.post@talk.nabble.com> From: Quintin Beukes Date: Fri, 9 Oct 2009 20:21:59 +0200 Message-ID: <1f3854d50910091121v4985ab59j64f8fc245b970cee@mail.gmail.com> Subject: Re: Why doesn't maven look for dependency in the local repo? To: Maven Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org In your classpath, is that in fact where the files are put? Can you confirm, from your project root, whether or not you can access those classes using the relative/absolute paths specified in your classpath. Specifically, when in your project's root, type: ls -ld target/classes/myco/oit/governor/citizen/assistanceUtility/Constants.class Does it return anything? Quintin Beukes On Fri, Oct 9, 2009 at 6:59 PM, laredotornado wro= te: > > Thanks, for now, I hard-coded the version to make this error go away. > Problem now is that it doesn't seem the dependency is getting included in= my > classpath, because I get compilation errors (for classes that are include= d > in the dependency in question) now when I try to run, such as ... > > =A0maven test:test > =A0__ =A0__ > | =A0\/ =A0|__ _Apache__ ___ > | |\/| / _` \ V / -_) ' \ =A0~ intelligent projects ~ > |_| =A0|_\__,_|\_/\___|_||_| =A0v. 1.1 > > build:start: > > test:test: > java:prepare-filesystem: > > java:init: > > java:compile: > =A0 =A0[echo] No java source files to compile. > > java:jar-resources: > > test:prepare-filesystem: > > test:test-resources: > Copying 4 files to > /Users/dalvarado/source/assistanceUtility.cvs/test/target/test-classes > > test:compile: > =A0 =A0[javac] Compiling 8 source files to > /Users/dalvarado/source/assistanceUtility.cvs/test/target/test-classes > =A0 =A0[javac] > /Users/dalvarado/source/assistanceUtility.cvs/test/src/test/myco/oit/gove= rnor/citizen/assistanceUtility/test/env/BaseEnvTest.java:16: > cannot find symbol > =A0 =A0[javac] symbol =A0: class Constants > =A0 =A0[javac] location: package myco.oit.governor.citizen.assistanceUtil= ity > =A0 =A0[javac] import myco.oit.governor.citizen.assistanceUtility.Constan= ts; > > > > I still don't think maven is looking in the right place because when I ru= n > the command "maven eclipse:generate-classpath", the generated .classpath > file is looking for the repo in question, > "myco-oit-governor-citizen-assistanceUtility-webapp", in another director= y > besides MAVEN_REPO (contents of .classpath below). =A0Any ideas why? > > > > =A0 path=3D"org.eclipse.jdt.launching.JRE_CONTAINER"> > =A0 path=3D"src/test"> > =A0 path=3D"MAVEN_REPO/junit/jars/junit-3.8.1.jar"> > =A0 path=3D"/myco-oit-governor-citizen-assistanceUtility-webapp"> > =A0 path=3D"MAVEN_REPO/org.springframework/jars/spring-1.2.8.jar"> > =A0 path=3D"MAVEN_REPO/org.springframework/jars/spring-mock-1.2.8.jar"> > =A0 path=3D"MAVEN_REPO/commons-digester/jars/commons-digester-1.7.jar"> > =A0 path=3D"MAVEN_REPO/commons-logging/jars/commons-logging-1.0.4.jar"> > =A0 path=3D"MAVEN_REPO/commons-lang/jars/commons-lang-2.3.jar"> > =A0 path=3D"MAVEN_REPO/net.sourceforge.jwebunit/jars/jwebunit-core-1.4.jar"><= /classpathentry> > =A0 path=3D"MAVEN_REPO/net.sourceforge.jwebunit/jars/htmlunit-1.11.jar"> > =A0 path=3D"MAVEN_REPO/net.sourceforge.jwebunit/jars/jwebunit-htmlunit-plugin= -1.4.jar"> > =A0 path=3D"MAVEN_REPO/org.apache.regexp/jars/regexp-1.3.jar"> > =A0 path=3D"MAVEN_REPO/jaxen/jars/jaxen-1.1.jar"> > =A0 path=3D"MAVEN_REPO/commons-httpclient/jars/commons-httpclient-3.0.1.jar">= > =A0 path=3D"MAVEN_REPO/commons-io/jars/commons-io-1.3.jar"> > =A0 path=3D"MAVEN_REPO/commons-collections/jars/commons-collections-3.2.jar">= > =A0 path=3D"MAVEN_REPO/commons-codec/jars/commons-codec-1.3.jar"> > =A0 path=3D"MAVEN_REPO/js/jars/js-1.6R5.jar"> > =A0 path=3D"MAVEN_REPO/nekohtml/jars/nekohtml-0.9.5.jar"> > =A0 > > > > > > Quintin Beukes-2 wrote: >> >> Perhaps you meant "${project.version}" instead of "${currentVersion}" ? >> >> Quintin Beukes >> >> >> >> On Fri, Oct 9, 2009 at 5:43 PM, laredotornado >> wrote: >>> >>> Hi, >>> >>> I'm using Maven 1.1. =A0I have this dependency in my project.xml file .= .. >>> >>> =A0 =A0 >>> =A0 =A0 =A0myco.oit.governor.citizen.assistanceUtility >>> >>> myco-oit-governor-citizen-assistanceUtility-webapp >>> =A0 =A0 =A0${currentVersion} >>> =A0 =A0 =A0war >>> =A0 =A0 >>> >>> 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. >>> =A0How >>> do I force maven to check the local repo? >>> >>> maven test:test >>> =A0__ =A0__ >>> | =A0\/ =A0|__ _Apache__ ___ >>> | |\/| / _` \ V / -_) ' \ =A0~ intelligent projects ~ >>> |_| =A0|_\__,_|\_/\___|_||_| =A0v. 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-a= ssistanceUtility-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-a= ssistanceUtility-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-a= ssistanceUtility-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-a= ssistanceUtility-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-a= ssistanceUtility-webapp::war >>> from http://software.ais.pl/repository >>> - Attempting to download >>> myco.oit.governor.citizen.assistanceUtility:myco-oit-governor-citizen-a= ssistanceUtility-webapp::war >>> from http://download.java.net/maven/1/ >>> - Attempting to download >>> myco.oit.governor.citizen.assistanceUtility:myco-oit-governor-citizen-a= ssistanceUtility-webapp::war >>> from http://repo1.maven.org/maven >>> - Attempting to download >>> myco.oit.governor.citizen.assistanceUtility:myco-oit-governor-citizen-a= ssistanceUtility-webapp::war >>> from http://people.apache.org/repo/m1-snapshot-repository/ >>> - Attempting to download >>> myco.oit.governor.citizen.assistanceUtility:myco-oit-governor-citizen-a= ssistanceUtility-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-a= ssistanceUtility-webapp::war >>> >>> -----------------------------------------------------------------------= -------- >>> BUILD FAILED >>> -----------------------------------------------------------------------= -------- >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/Why-doesn%27t-maven-look-for-dependency-in-the-lo= cal-repo--tp25823180p25823180.html >>> Sent from the Maven - Users mailing list archive at Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org >>> For additional commands, e-mail: users-help@maven.apache.org >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org >> For additional commands, e-mail: users-help@maven.apache.org >> >> >> > > -- > View this message in context: http://www.nabble.com/Why-doesn%27t-maven-l= ook-for-dependency-in-the-local-repo--tp25823180p25824586.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org