[ 
https://jira.codehaus.org/browse/MWAR-309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=347678#comment-347678
 ] 

Karl-Heinz Marbaise edited comment on MWAR-309 at 6/8/14 7:15 AM:
------------------------------------------------------------------

In the log there are at least two versions of maven-war-plugin 2.3 and 2.4. so 
i would suggest to define the maven-war-plugin in a pluginManagement part in 
the parent of the project and retry it.

{code}
cat build.ubuntu2.log | grep "\-\-\- maven-war-plugin"
[INFO] --- maven-war-plugin:2.3:war (default-war) @ devapi ---
[INFO] --- maven-war-plugin:2.4:war (default-war) @ api ---
[INFO] --- maven-war-plugin:2.3:war (default-war) @ neo-rest ---
{code}


was (Author: khmarbaise):
In the log there are at least two versions of maven-war-plugin 2.3 and 2.4. so 
i would suggest to define the maven-war-plugin in a pluginManagement part in 
the parent of the project and retry it.

> 'mvn package' duplicates WEB-INF/classes on linux only
> ------------------------------------------------------
>
>                 Key: MWAR-309
>                 URL: https://jira.codehaus.org/browse/MWAR-309
>             Project: Maven WAR Plugin
>          Issue Type: Bug
>         Environment: OSX & windows seem to be in sync, ubuntu is not
>            Reporter: mike kozelsky
>         Attachments: build.centos_6.log, build.osx.log, build.ubuntu2.log, 
> build.ubuntu.log, build.windows.log, compare.png, pom.core.xml, pom.main.xml, 
> pom.rest-service.xml, pom.rest.xml
>
>
> We have a multi-module n-tiered project.   The endpoints (spring services) 
> rely on a core service project, which relies on a core logic project, which 
> relies on 2 others.  So this is all set up using a main pom.xml file, listing 
> each module.  I can then run 'mvn package' from the project root.
> The issue is that running 'mvn package' on my windows workstation appears to 
> package things (what i would consider to be) correctly, and running the same 
> command on our server creates something slightly different.  In essence, 
> there are class files from the core logic project which end up in the service 
> project's WEB-INF/classes output (as well as in the core's jar).  Again, this 
> only happens on the ubuntu server.
> In the attached screenshot, you can see on the left, the output of my 
> workstation, where there's two packages inside of WEB-INF/classes: 
> com.doolli.admin & com.doolli.rest.  On the right side, you can see more 
> packages - additionally, you see com.doolli.database, com.doolli.main, 
> com.doolli.manager, com.doolli.object, as well as an org.sphx package - which 
> are defined further down in the dependency tree.
> The duplicate definition is causing our server to throw runtime errors - 
> class and method not found exceptions.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to