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>
        <artifactId>maven-war-plugin</artifactId>
        <version>1.6.3</version>
        <configuration>
          <attachClasses>true</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 <classifier>classes</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"
>>>>> 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>
>>>>>>>      <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: 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
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> 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: 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
>>>>
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Why-doesn%27t-maven-look-for-dependency-in-the-local-repo--tp25823180p25826148.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
> 
> 
> 

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

Reply via email to