Has anyone else encountered this problem?

Can anyone help me solve this?

TIA!


stug23 wrote:
> 
> I am in the process of developing a multimodule web service project which
> has a parent, service, web and integration testing module. The structure
> looks like this:
> 
> person-service-parent [pom package]
>    person-service [jar package]
>    person-service-web [war package]
>    person-service-testing [pom package; integration test --
> /src/it/java/...]
> 
> The person-service-web module uses war packaging and should contain the
> jar file produced in the person-service module via copying.
> 
> When executing 'mvn clean install' from the person-service-parent module
> within Eclipse (using either the Maven embedder or Maven 2.0.9) an error
> occurs related to copying the person-service jar file into the war -- see
> below for details.
> 
> If I run 'mvn clean install' from the person-service-parent module on the
> command line, the jar is successfully copied into the war with no errors.
> 
> Suggestions would be appreciated -- I already have other workarounds due
> to problems with m2eclipse (related to archetypes) that require dropping
> to the command line and would really like to be able to use m2eclipse for
> this case, without having to resort to the command line again.
> 
> Here is the error that I get when running 'mvn clean install' from the
> person-service-parent module in Eclipse:
> 
> ==========
> ...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> ------------------------------------------------------------------------
> [INFO] person-service-parent project ......................... SUCCESS
> [5.044s]
> [INFO] person-service project ................................ SUCCESS
> [21.827s]
> [INFO] person-service-web project ............................ FAILED
> [2.284s]
> [INFO] person-service-testing project ........................ NOT BUILT
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] 
> 
> The following mojo encountered an error while executing:
> Group-Id: org.apache.maven.plugins
> Artifact-Id: maven-war-plugin
> Version: 2.1-alpha-1
> Mojo: war
> brought in via: packaging: war
> 
> While building project:
> Group-Id: com.foo.service
> Artifact-Id: person-service-web
> Version: 1.0.0-SNAPSHOT
> From file:
> /Users/my_username/Desktop/eclipse_m2e_0.9.7/workspace/person-service-parent/person-service-web/pom.xml
> Reason: Failed to copy file for artifact[active project artifact:
>       artifact = com.foo.service:person-service:jar:1.0.0-SNAPSHOT:compile;
>       project: MavenProject: com.foo.service:person-service:1.0.0-SNAPSHOT @
> /Users/my_username/Desktop/eclipse_m2e_0.9.7/workspace/person-service-parent/person-service/pom.xml]
> ==========
> 
> Is this possibly related to workspace resolution?
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-war-plugin---only-occurs-when-running-in-m2eclipse-tp22149199p22235289.html
Sent from the Maven Eclipse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to