tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Lamy (*$^¨%`£) (JIRA) <j...@apache.org>
Subject [jira] [Commented] (MTOMCAT-79) Running "package" before tomcat:deploy breaks build
Date Tue, 05 Nov 2013 23:26:17 GMT

    [ https://issues.apache.org/jira/browse/MTOMCAT-79?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13814395#comment-13814395
] 

Olivier Lamy (*$^¨%`£) commented on MTOMCAT-79:
-----------------------------------------------

you should be able to use deploy-only for that?

> Running "package" before tomcat:deploy breaks build
> ---------------------------------------------------
>
>                 Key: MTOMCAT-79
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-79
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: Bug
>    Affects Versions: 1.1
>         Environment: Maven 2.2.11
>            Reporter: Michael Osipov
>            Assignee: Olivier Lamy (*$^¨%`£)
>            Priority: Blocker
>             Fix For: 1.1
>
>
> @execute="package" breaks multi-module builds with overlays.
> I have this situation:
> {noformat}
> parent
> |-war1
> |-war2 (overlayed with war1)
> {noformat}
> To have war2 overlayed with war1 from reactor, I have to build from parent. I.e., to
deploy a correctly overlayed war2, I have to have to go from parent. Otherwise overlay happens
from local repo which is incorrect. So, because tomcat-maven-p invokes "package" at war2 and
only at war2, the overlay war1 is taken from local repo. The overlayed WAR is incorrect. I
explicitly have to call "package" from parent.
> I have logs available which prove the issue but cannot make them public. I can send them
privately.
> All this means, that the automatic execution of package needs to be removed. If there
is no warFile to deploy, exit with build failure and tell that package has to run first.
> Remove this line: http://mojo.codehaus.org/tomcat-maven-plugin/xref/org/codehaus/mojo/tomcat/DeployMojo.html#26



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message