Re: Why doesn't maven look for dependency in the local repo?

2009-10-13 Thread laredotornado

I wanted to give you an update as to where I am with this as what you
included seems exactly like my problem.  However, when I included the
plugins directive in the project.xml from where I build my webapp, 


  build
plugins
  plugin
artifactIdmaven-war-plugin/artifactId
version1.6.3/version
configuration
  attachClassestrue/attachClasses
/configuration
  /plugin
/plugins
...
  /build

I get this error ...

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

---
 Error parsing project.xml
 '/Users/dalvarado/source/assistanceUtility/webapp/project.xml'
 ParseError at [row,col]:[231,14]
Message: Unrecognised tag: 'plugins'
---
BUILD FAILED
---
Total time   : 0 seconds 
Finished at  : Tuesday, October 13, 2009 7:32:52 AM MDT
Final Memory : 1M/2M
---


Is plugins in the wrong place?  Thanks, - Dave





Quintin Beukes-2 wrote:
 
 Hey,
 
 This might help:
 http://is.gd/4bPYH
 
 If you have 2.1 of the WAR maven plugin, then it would work. Otherwise
 you can just use the SNAPSHOT (all described on the thread).
 
 Then, when you build it, the WAR will be installed into your local
 repo, as well as an additional JAR (which only has the classes).
 
 Then you can reference the WAR as a dependency in your POM, by adding
 the classifierclasses/classifier element into the dependency
 element.
 
 Quintin Beukes
 
 
 
 On Sat, Oct 10, 2009 at 12:49 PM, Quintin Beukes quin...@skywalk.co.za
 wrote:
 Are you referring to this entry:
 classpathentry kind=src
 path=/myco-oit-governor-citizen-assistanceUtility-webapp/classpathentry

 If so, try changing it to reference:
 /myco-oit-governor-citizen-assistanceUtility-webapp/WEB-INF/classes

 Unless Maven notices it's a WAR, and transforms the classpath entry to
 reference the classes directory, it won't work. Maybe there is a
 different kind attribute? something like kind=war? I tried to find
 the documentation for classpathentry, but was unsuccessful.

 Quintin Beukes



 On Fri, Oct 9, 2009 at 8:50 PM, laredotornado laredotorn...@gmail.com
 wrote:

 First off, thanks so much for taking the time to respond.  To answer
 your
 questions ...

 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.

 No where do I explicitly list a classpath . I thought that the classpath
 was
 built from the dependency list.  Is this not correct, or is there some
 exception for war dependencies?

 Does it return anything?

 No.  there is nothing in the target/classes directory.  The class in
 question is in the war's WEB-INF/classes directory.  But if maven
 ignores
 wars, then I should resort to something else?

 Thanks ,- Dave






 Quintin Beukes-2 wrote:

 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 laredotorn...@gmail.com
 wrote:

 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 

Re: Why doesn't maven look for dependency in the local repo?

2009-10-13 Thread Quintin Beukes
You have to wrap plugins in pluginManagement. The examples in the
documentation doesn't seem to mention this either, so it's a common
mistake for me as well. Ex:

build
pluginManagement
plugins
plugin
.
/plugin

Quintin Beukes



On Tue, Oct 13, 2009 at 3:41 PM, laredotornado laredotorn...@gmail.com wrote:

 I wanted to give you an update as to where I am with this as what you
 included seems exactly like my problem.  However, when I included the
 plugins directive in the project.xml from where I build my webapp,


  build
    plugins
      plugin
        artifactIdmaven-war-plugin/artifactId
        version1.6.3/version
        configuration
          attachClassestrue/attachClasses
        /configuration
      /plugin
    /plugins
    ...
  /build

 I get this error ...

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

 ---
 Error parsing project.xml
 '/Users/dalvarado/source/assistanceUtility/webapp/project.xml'
 ParseError at [row,col]:[231,14]
 Message: Unrecognised tag: 'plugins'
 ---
 BUILD FAILED
 ---
 Total time   : 0 seconds
 Finished at  : Tuesday, October 13, 2009 7:32:52 AM MDT
 Final Memory : 1M/2M
 ---


 Is plugins in the wrong place?  Thanks, - Dave





 Quintin Beukes-2 wrote:

 Hey,

 This might help:
 http://is.gd/4bPYH

 If you have 2.1 of the WAR maven plugin, then it would work. Otherwise
 you can just use the SNAPSHOT (all described on the thread).

 Then, when you build it, the WAR will be installed into your local
 repo, as well as an additional JAR (which only has the classes).

 Then you can reference the WAR as a dependency in your POM, by adding
 the classifierclasses/classifier element into the dependency
 element.

 Quintin Beukes



 On Sat, Oct 10, 2009 at 12:49 PM, Quintin Beukes quin...@skywalk.co.za
 wrote:
 Are you referring to this entry:
 classpathentry kind=src
 path=/myco-oit-governor-citizen-assistanceUtility-webapp/classpathentry

 If so, try changing it to reference:
 /myco-oit-governor-citizen-assistanceUtility-webapp/WEB-INF/classes

 Unless Maven notices it's a WAR, and transforms the classpath entry to
 reference the classes directory, it won't work. Maybe there is a
 different kind attribute? something like kind=war? I tried to find
 the documentation for classpathentry, but was unsuccessful.

 Quintin Beukes



 On Fri, Oct 9, 2009 at 8:50 PM, laredotornado laredotorn...@gmail.com
 wrote:

 First off, thanks so much for taking the time to respond.  To answer
 your
 questions ...

 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.

 No where do I explicitly list a classpath . I thought that the classpath
 was
 built from the dependency list.  Is this not correct, or is there some
 exception for war dependencies?

 Does it return anything?

 No.  there is nothing in the target/classes directory.  The class in
 question is in the war's WEB-INF/classes directory.  But if maven
 ignores
 wars, then I should resort to something else?

 Thanks ,- Dave






 Quintin Beukes-2 wrote:

 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 laredotorn...@gmail.com
 wrote:

 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]
 

Re: Why doesn't maven look for dependency in the local repo?

2009-10-13 Thread Lukas Theussl


You are mixing up the maven 2 pom with maven 1's project.xml, the maven 1 model 
description is here:


http://maven.apache.org/maven-1.x/reference/maven-model/3.0.2/maven.html

In maven 1 you don't specify the plugins in the build section of your pom, you 
either install them with 'maven plugin:install...' or declare them as dependencies 
with type 'plugin'. You should browse the m1 docs (it's old!), eg


http://maven.apache.org/maven-1.x/using/managing-dependencies.html
http://maven.apache.org/maven-1.x/using/war.html
http://maven.apache.org/maven-1.x/plugins/war/

HTH,
-Lukas


laredotornado wrote:

I wanted to give you an update as to where I am with this as what you
included seems exactly like my problem.  However, when I included the
plugins directive in the project.xml from where I build my webapp, 



  build
plugins
  plugin
artifactIdmaven-war-plugin/artifactId
version1.6.3/version
configuration
  attachClassestrue/attachClasses
/configuration
  /plugin
/plugins
...
  /build

I get this error ...

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

---

Error parsing project.xml
'/Users/dalvarado/source/assistanceUtility/webapp/project.xml'
ParseError at [row,col]:[231,14]

Message: Unrecognised tag: 'plugins'
---
BUILD FAILED
---
Total time   : 0 seconds 
Finished at  : Tuesday, October 13, 2009 7:32:52 AM MDT

Final Memory : 1M/2M
---


Is plugins in the wrong place?  Thanks, - Dave





Quintin Beukes-2 wrote:

Hey,

This might help:
http://is.gd/4bPYH

If you have 2.1 of the WAR maven plugin, then it would work. Otherwise
you can just use the SNAPSHOT (all described on the thread).

Then, when you build it, the WAR will be installed into your local
repo, as well as an additional JAR (which only has the classes).

Then you can reference the WAR as a dependency in your POM, by adding
the classifierclasses/classifier element into the dependency
element.

Quintin Beukes



On Sat, Oct 10, 2009 at 12:49 PM, Quintin Beukes quin...@skywalk.co.za
wrote:

Are you referring to this entry:
classpathentry kind=src
path=/myco-oit-governor-citizen-assistanceUtility-webapp/classpathentry

If so, try changing it to reference:
/myco-oit-governor-citizen-assistanceUtility-webapp/WEB-INF/classes

Unless Maven notices it's a WAR, and transforms the classpath entry to
reference the classes directory, it won't work. Maybe there is a
different kind attribute? something like kind=war? I tried to find
the documentation for classpathentry, but was unsuccessful.

Quintin Beukes



On Fri, Oct 9, 2009 at 8:50 PM, laredotornado laredotorn...@gmail.com
wrote:

First off, thanks so much for taking the time to respond.  To answer
your
questions ...


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.

No where do I explicitly list a classpath . I thought that the classpath
was
built from the dependency list.  Is this not correct, or is there some
exception for war dependencies?


Does it return anything?

No.  there is nothing in the target/classes directory.  The class in
question is in the war's WEB-INF/classes directory.  But if maven
ignores
wars, then I should resort to something else?

Thanks ,- Dave






Quintin Beukes-2 wrote:

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 laredotorn...@gmail.com
wrote:

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 

Re: Why doesn't maven look for dependency in the local repo?

2009-10-13 Thread laredotornado

I did as you suggested, but got the parse error ...

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

---
 Error parsing project.xml
 '/Users/dalvarado/source/assistanceUtility/webapp/project.xml'
 ParseError at [row,col]:[231,23]
Message: Unrecognised tag: 'pluginManagement'
---
BUILD FAILED
---
Total time   : 0 seconds 
Finished at  : Tuesday, October 13, 2009 8:06:08 AM MDT
Final Memory : 1M/2M
---


Do you think its the version of Maven that I'm using (1.1)?  Is the syntax
different for that version?  Here's the snippet from the project.xml file
...

  build
pluginManagement
plugins
  plugin
artifactIdmaven-war-plugin/artifactId
version1.6.3/version
configuration
  attachClassestrue/attachClasses
/configuration
  /plugin
/plugins
/pluginManagement
...
  /build





Quintin Beukes-2 wrote:
 
 You have to wrap plugins in pluginManagement. The examples in the
 documentation doesn't seem to mention this either, so it's a common
 mistake for me as well. Ex:
 
 build
 pluginManagement
 plugins
 plugin
 .
 /plugin
 
 Quintin Beukes
 
 
 
 On Tue, Oct 13, 2009 at 3:41 PM, laredotornado laredotorn...@gmail.com
 wrote:

 I wanted to give you an update as to where I am with this as what you
 included seems exactly like my problem.  However, when I included the
 plugins directive in the project.xml from where I build my webapp,


  build
    plugins
      plugin
        artifactIdmaven-war-plugin/artifactId
        version1.6.3/version
        configuration
          attachClassestrue/attachClasses
        /configuration
      /plugin
    /plugins
    ...
  /build

 I get this error ...

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

 ---
 Error parsing project.xml
 '/Users/dalvarado/source/assistanceUtility/webapp/project.xml'
 ParseError at [row,col]:[231,14]
 Message: Unrecognised tag: 'plugins'
 ---
 BUILD FAILED
 ---
 Total time   : 0 seconds
 Finished at  : Tuesday, October 13, 2009 7:32:52 AM MDT
 Final Memory : 1M/2M
 ---


 Is plugins in the wrong place?  Thanks, - Dave





 Quintin Beukes-2 wrote:

 Hey,

 This might help:
 http://is.gd/4bPYH

 If you have 2.1 of the WAR maven plugin, then it would work. Otherwise
 you can just use the SNAPSHOT (all described on the thread).

 Then, when you build it, the WAR will be installed into your local
 repo, as well as an additional JAR (which only has the classes).

 Then you can reference the WAR as a dependency in your POM, by adding
 the classifierclasses/classifier element into the dependency
 element.

 Quintin Beukes



 On Sat, Oct 10, 2009 at 12:49 PM, Quintin Beukes quin...@skywalk.co.za
 wrote:
 Are you referring to this entry:
 classpathentry kind=src
 path=/myco-oit-governor-citizen-assistanceUtility-webapp/classpathentry

 If so, try changing it to reference:
 /myco-oit-governor-citizen-assistanceUtility-webapp/WEB-INF/classes

 Unless Maven notices it's a WAR, and transforms the classpath entry to
 reference the classes directory, it won't work. Maybe there is a
 different kind attribute? something like kind=war? I tried to find
 the documentation for classpathentry, but was unsuccessful.

 Quintin Beukes



 On Fri, Oct 9, 2009 at 8:50 PM, laredotornado laredotorn...@gmail.com
 wrote:

 First off, thanks so much for taking the time to respond.  To answer
 your
 questions ...

 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.

 No where do I explicitly list a classpath . I thought that the
 classpath
 was
 built from the dependency list.  Is this not correct, or is there some
 exception for war dependencies?

 Does it return anything?

 No.  there is nothing in the target/classes directory.  The class in
 question is in the war's WEB-INF/classes directory.  But if maven
 ignores
 wars, then I should resort to something else?

 Thanks ,- Dave






 Quintin Beukes-2 wrote:

 In your classpath, is that in fact where the files are put? Can you
 confirm, from your project 

Re: Why doesn't maven look for dependency in the local repo?

2009-10-13 Thread laredotornado

Thanks.  I'm getting closer.  I now have this in my dependency list ...

dependency
groupIdmaven-war-plugin/groupId
artifactIdmaven-war-plugin/artifactId
version1.6.3/version
typeplugin/type
configuration
  attachClassestrue/attachClasses
/configuration
/dependency

but I'm getting the error

 Error parsing project.xml
 '/Users/dalvarado/source/assistanceUtility/webapp/project.xml'
 ParseError at [row,col]:[232,24]
Message: Unrecognised tag: 'configuration'


My goal is to build some kind of -classes.jar file in addition to my WAR
because when I try and include my WAR as a dependency in another test
project, maven cannot recognizes the classes inside that war.

Thanks to all, - Dave








Lukas Theussl-4 wrote:
 
 
 You are mixing up the maven 2 pom with maven 1's project.xml, the maven 1
 model 
 description is here:
 
 http://maven.apache.org/maven-1.x/reference/maven-model/3.0.2/maven.html
 
 In maven 1 you don't specify the plugins in the build section of your pom,
 you 
 either install them with 'maven plugin:install...' or declare them as
 dependencies 
 with type 'plugin'. You should browse the m1 docs (it's old!), eg
 
 http://maven.apache.org/maven-1.x/using/managing-dependencies.html
 http://maven.apache.org/maven-1.x/using/war.html
 http://maven.apache.org/maven-1.x/plugins/war/
 
 HTH,
 -Lukas
 
 
 laredotornado wrote:
 I wanted to give you an update as to where I am with this as what you
 included seems exactly like my problem.  However, when I included the
 plugins directive in the project.xml from where I build my webapp, 
 
 
   build
 plugins
   plugin
 artifactIdmaven-war-plugin/artifactId
 version1.6.3/version
 configuration
   attachClassestrue/attachClasses
 /configuration
   /plugin
 /plugins
 ...
   /build
 
 I get this error ...
 
 maven war:war
  __  __
 |  \/  |__ _Apache__ ___
 | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
 |_|  |_\__,_|\_/\___|_||_|  v. 1.1
 
 ---
 Error parsing project.xml
 '/Users/dalvarado/source/assistanceUtility/webapp/project.xml'
 ParseError at [row,col]:[231,14]
 Message: Unrecognised tag: 'plugins'
 ---
 BUILD FAILED
 ---
 Total time   : 0 seconds 
 Finished at  : Tuesday, October 13, 2009 7:32:52 AM MDT
 Final Memory : 1M/2M
 ---
 
 
 Is plugins in the wrong place?  Thanks, - Dave
 
 
 
 
 
 Quintin Beukes-2 wrote:
 Hey,

 This might help:
 http://is.gd/4bPYH

 If you have 2.1 of the WAR maven plugin, then it would work. Otherwise
 you can just use the SNAPSHOT (all described on the thread).

 Then, when you build it, the WAR will be installed into your local
 repo, as well as an additional JAR (which only has the classes).

 Then you can reference the WAR as a dependency in your POM, by adding
 the classifierclasses/classifier element into the dependency
 element.

 Quintin Beukes



 On Sat, Oct 10, 2009 at 12:49 PM, Quintin Beukes quin...@skywalk.co.za
 wrote:
 Are you referring to this entry:
 classpathentry kind=src
 path=/myco-oit-governor-citizen-assistanceUtility-webapp/classpathentry

 If so, try changing it to reference:
 /myco-oit-governor-citizen-assistanceUtility-webapp/WEB-INF/classes

 Unless Maven notices it's a WAR, and transforms the classpath entry to
 reference the classes directory, it won't work. Maybe there is a
 different kind attribute? something like kind=war? I tried to find
 the documentation for classpathentry, but was unsuccessful.

 Quintin Beukes



 On Fri, Oct 9, 2009 at 8:50 PM, laredotornado laredotorn...@gmail.com
 wrote:
 First off, thanks so much for taking the time to respond.  To answer
 your
 questions ...

 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.

 No where do I explicitly list a classpath . I thought that the
 classpath
 was
 built from the dependency list.  Is this not correct, or is there some
 exception for war dependencies?

 Does it return anything?
 No.  there is nothing in the target/classes directory.  The class in
 question is in the war's WEB-INF/classes directory.  But if maven
 ignores
 wars, then I should resort to something else?

 Thanks ,- Dave






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

Re: Why doesn't maven look for dependency in the local repo?

2009-10-10 Thread Quintin Beukes
Are you referring to this entry:
classpathentry kind=src
path=/myco-oit-governor-citizen-assistanceUtility-webapp/classpathentry

If so, try changing it to reference:
/myco-oit-governor-citizen-assistanceUtility-webapp/WEB-INF/classes

Unless Maven notices it's a WAR, and transforms the classpath entry to
reference the classes directory, it won't work. Maybe there is a
different kind attribute? something like kind=war? I tried to find
the documentation for classpathentry, but was unsuccessful.

Quintin Beukes



On Fri, Oct 9, 2009 at 8:50 PM, laredotornado laredotorn...@gmail.com wrote:

 First off, thanks so much for taking the time to respond.  To answer your
 questions ...

 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.

 No where do I explicitly list a classpath . I thought that the classpath was
 built from the dependency list.  Is this not correct, or is there some
 exception for war dependencies?

 Does it return anything?

 No.  there is nothing in the target/classes directory.  The class in
 question is in the war's WEB-INF/classes directory.  But if maven ignores
 wars, then I should resort to something else?

 Thanks ,- Dave






 Quintin Beukes-2 wrote:

 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 laredotorn...@gmail.com
 wrote:

 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
 

Re: Why doesn't maven look for dependency in the local repo?

2009-10-10 Thread Quintin Beukes
Hey,

This might help:
http://is.gd/4bPYH

If you have 2.1 of the WAR maven plugin, then it would work. Otherwise
you can just use the SNAPSHOT (all described on the thread).

Then, when you build it, the WAR will be installed into your local
repo, as well as an additional JAR (which only has the classes).

Then you can reference the WAR as a dependency in your POM, by adding
the classifierclasses/classifier element into the dependency
element.

Quintin Beukes



On Sat, Oct 10, 2009 at 12:49 PM, Quintin Beukes quin...@skywalk.co.za wrote:
 Are you referring to this entry:
 classpathentry kind=src
 path=/myco-oit-governor-citizen-assistanceUtility-webapp/classpathentry

 If so, try changing it to reference:
 /myco-oit-governor-citizen-assistanceUtility-webapp/WEB-INF/classes

 Unless Maven notices it's a WAR, and transforms the classpath entry to
 reference the classes directory, it won't work. Maybe there is a
 different kind attribute? something like kind=war? I tried to find
 the documentation for classpathentry, but was unsuccessful.

 Quintin Beukes



 On Fri, Oct 9, 2009 at 8:50 PM, laredotornado laredotorn...@gmail.com wrote:

 First off, thanks so much for taking the time to respond.  To answer your
 questions ...

 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.

 No where do I explicitly list a classpath . I thought that the classpath was
 built from the dependency list.  Is this not correct, or is there some
 exception for war dependencies?

 Does it return anything?

 No.  there is nothing in the target/classes directory.  The class in
 question is in the war's WEB-INF/classes directory.  But if maven ignores
 wars, then I should resort to something else?

 Thanks ,- Dave






 Quintin Beukes-2 wrote:

 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 laredotorn...@gmail.com
 wrote:

 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
 

Why doesn't maven look for dependency in the local repo?

2009-10-09 Thread laredotornado

Hi,

I'm using Maven 1.1.  I have this dependency in my project.xml file ...

dependency
  groupIdmyco.oit.governor.citizen.assistanceUtility/groupId
 
artifactIdmyco-oit-governor-citizen-assistanceUtility-webapp/artifactId
  version${currentVersion}/version
  typewar/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:/maven
Error retrieving artifact from [http://localhost:/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:/maven-external
Error retrieving artifact from [http://localhost:/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:/maven-remotebox
Error retrieving artifact from [http://localhost:/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:/maven-external-indiana
Error retrieving artifact from
[http://localhost:/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: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Why doesn't maven look for dependency in the local repo?

2009-10-09 Thread Quintin Beukes
Perhaps you meant ${project.version} instead of ${currentVersion} ?

Quintin Beukes



On Fri, Oct 9, 2009 at 5:43 PM, laredotornado laredotorn...@gmail.com wrote:

 Hi,

 I'm using Maven 1.1.  I have this dependency in my project.xml file ...

    dependency
      groupIdmyco.oit.governor.citizen.assistanceUtility/groupId

 artifactIdmyco-oit-governor-citizen-assistanceUtility-webapp/artifactId
      version${currentVersion}/version
      typewar/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:/maven
 Error retrieving artifact from [http://localhost:/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:/maven-external
 Error retrieving artifact from [http://localhost:/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:/maven-remotebox
 Error retrieving artifact from [http://localhost:/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:/maven-external-indiana
 Error retrieving artifact from
 [http://localhost:/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: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Why doesn't maven look for dependency in the local repo?

2009-10-09 Thread laredotornado

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 laredotorn...@gmail.com
 wrote:

 Hi,

 I'm using Maven 1.1.  I have this dependency in my project.xml file ...

    dependency
      groupIdmyco.oit.governor.citizen.assistanceUtility/groupId

 artifactIdmyco-oit-governor-citizen-assistanceUtility-webapp/artifactId
      version${currentVersion}/version
      typewar/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:/maven
 Error retrieving artifact from [http://localhost:/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:/maven-external
 Error 

Re: Why doesn't maven look for dependency in the local repo?

2009-10-09 Thread Quintin Beukes
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 laredotorn...@gmail.com wrote:

 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 laredotorn...@gmail.com
 wrote:

 Hi,

 I'm using Maven 1.1.  I have this dependency in my project.xml file ...

    dependency
      groupIdmyco.oit.governor.citizen.assistanceUtility/groupId

 artifactIdmyco-oit-governor-citizen-assistanceUtility-webapp/artifactId
      version${currentVersion}/version
      typewar/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
 

Re: Why doesn't maven look for dependency in the local repo?

2009-10-09 Thread laredotornado

First off, thanks so much for taking the time to respond.  To answer your
questions ...

 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.

No where do I explicitly list a classpath . I thought that the classpath was
built from the dependency list.  Is this not correct, or is there some
exception for war dependencies?

 Does it return anything? 

No.  there is nothing in the target/classes directory.  The class in
question is in the war's WEB-INF/classes directory.  But if maven ignores
wars, then I should resort to something else?

Thanks ,- Dave






Quintin Beukes-2 wrote:
 
 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 laredotorn...@gmail.com
 wrote:

 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