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 included
in the dependency in question) now when I try to run, such as ...

 maven test:test
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.1

build:start:

test:test:
java:prepare-filesystem:

java:init:

java:compile:
    [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:
    [javac] Compiling 8 source files to
/Users/dalvarado/source/assistanceUtility.cvs/test/target/test-classes
    [javac]
/Users/dalvarado/source/assistanceUtility.cvs/test/src/test/myco/oit/governor/citizen/assistanceUtility/test/env/BaseEnvTest.java:16:
cannot find symbol
    [javac] symbol  : class Constants
    [javac] location: package myco.oit.governor.citizen.assistanceUtility
    [javac] import myco.oit.governor.citizen.assistanceUtility.Constants;



I still don't think maven is looking in the right place because when I run
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 directory
besides MAVEN_REPO (contents of .classpath below).  Any ideas why?


<classpath>
  <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"></classpathentry>
  <classpathentry output="target/test-classes" kind="src"
path="src/test"></classpathentry>
  <classpathentry kind="var"
path="MAVEN_REPO/junit/jars/junit-3.8.1.jar"></classpathentry>
  <classpathentry kind="src"
path="/myco-oit-governor-citizen-assistanceUtility-webapp"></classpathentry>
  <classpathentry kind="var"
path="MAVEN_REPO/org.springframework/jars/spring-1.2.8.jar"></classpathentry>
  <classpathentry kind="var"
path="MAVEN_REPO/org.springframework/jars/spring-mock-1.2.8.jar"></classpathentry>
  <classpathentry kind="var"
path="MAVEN_REPO/commons-digester/jars/commons-digester-1.7.jar"></classpathentry>
  <classpathentry kind="var"
path="MAVEN_REPO/commons-logging/jars/commons-logging-1.0.4.jar"></classpathentry>
  <classpathentry kind="var"
path="MAVEN_REPO/commons-lang/jars/commons-lang-2.3.jar"></classpathentry>
  <classpathentry kind="var"
path="MAVEN_REPO/net.sourceforge.jwebunit/jars/jwebunit-core-1.4.jar"></classpathentry>
  <classpathentry kind="var"
path="MAVEN_REPO/net.sourceforge.jwebunit/jars/htmlunit-1.11.jar"></classpathentry>
  <classpathentry kind="var"
path="MAVEN_REPO/net.sourceforge.jwebunit/jars/jwebunit-htmlunit-plugin-1.4.jar"></classpathentry>
  <classpathentry kind="var"
path="MAVEN_REPO/org.apache.regexp/jars/regexp-1.3.jar"></classpathentry>
  <classpathentry kind="var"
path="MAVEN_REPO/jaxen/jars/jaxen-1.1.jar"></classpathentry>
  <classpathentry kind="var"
path="MAVEN_REPO/commons-httpclient/jars/commons-httpclient-3.0.1.jar"></classpathentry>
  <classpathentry kind="var"
path="MAVEN_REPO/commons-io/jars/commons-io-1.3.jar"></classpathentry>
  <classpathentry kind="var"
path="MAVEN_REPO/commons-collections/jars/commons-collections-3.2.jar"></classpathentry>
  <classpathentry kind="var"
path="MAVEN_REPO/commons-codec/jars/commons-codec-1.3.jar"></classpathentry>
  <classpathentry kind="var"
path="MAVEN_REPO/js/jars/js-1.6R5.jar"></classpathentry>
  <classpathentry kind="var"
path="MAVEN_REPO/nekohtml/jars/nekohtml-0.9.5.jar"></classpathentry>
  <classpathentry kind="output" path="target/classes"></classpathentry>
</classpath>




Quintin Beukes-2 wrote:
> 
> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Why-doesn%27t-maven-look-for-dependency-in-the-local-repo--tp25823180p25824586.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]

Reply via email to