Bug 61001 - mvn tomcat6:deploy on a pom with a war assemply ==> no war to deploy
Summary: mvn tomcat6:deploy on a pom with a war assemply ==> no war to deploy
Status: RESOLVED INVALID
Alias: None
Product: Tomcat 7
Classification: Unclassified
Component: Manager (show other bugs)
Version: 7.0.77
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-18 07:18 UTC by zosrothko
Modified: 2017-04-18 12:29 UTC (History)
0 users



Attachments
war.assembly (1.63 KB, text/xml)
2017-04-18 07:18 UTC, zosrothko
Details
pom.xml (8.12 KB, text/xml)
2017-04-18 07:19 UTC, zosrothko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zosrothko 2017-04-18 07:18:36 UTC
Created attachment 34921 [details]
war.assembly

Hi

Using a pom.xml that build a war using the maven-assembly-plugin to produce the war, the tomcat6-maven-plugin rejects to deploy the war for the reason that the pom is not packaged as a war.
Comment 1 zosrothko 2017-04-18 07:19:12 UTC
Created attachment 34922 [details]
pom.xml
Comment 2 zosrothko 2017-04-18 07:20:12 UTC
[DEBUG] Configuring mojo org.apache.tomcat.maven:tomcat6-maven-plugin:2.2:deploy from plugin realm ClassRealm[plugin>org
.apache.tomcat.maven:tomcat6-maven-plugin:2.2, parent: sun.misc.Launcher$AppClassLoader@631d75b9]
[DEBUG] Configuring mojo 'org.apache.tomcat.maven:tomcat6-maven-plugin:2.2:deploy' with basic configurator -->
[DEBUG]   (f) charset = ISO-8859-1
[DEBUG]   (f) contextFile = C:\MXW\DEMOS\MI-4.1.1\Demos Webapps\smartBasic\target\smartBasic-4.1.1\META-INF\context.xml
[DEBUG]   (f) ignorePackaging = false
[DEBUG]   (f) mode = war
[DEBUG]   (f) packaging = pom
[DEBUG]   (f) path = /smartBasic
[DEBUG]   (f) server = Tomcat6
[DEBUG]   (f) update = false
[DEBUG]   (f) url = http://localhost:8080/manager
[DEBUG]   (f) version = 2.2
[DEBUG]   (f) warFile = C:\MXW\DEMOS\MI-4.1.1\Demos Webapps\smartBasic\target\smartBasic-4.1.1.war
[DEBUG]   (f) settings = org.apache.maven.execution.SettingsAdapter@7ec5ab2
[DEBUG] -- end configuration --
[INFO] Ne traite pas un projet de packaging non war
Comment 3 Violeta Georgieva 2017-04-18 07:23:32 UTC
Hi,

Please consider upgrading your Tomcat instances as Apache Tomcat 6 has reached End of Life.
http://tomcat.apache.org/tomcat-60-eol.html

Regards,
Violeta
Comment 4 zosrothko 2017-04-18 08:31:08 UTC
Hi

That's the same issue for tomcat7-maven-plugin

[INFO] <<< tomcat7-maven-plugin:2.2:deploy (default-cli) < package @ smartBasic <<<
[INFO]
[INFO] --- tomcat7-maven-plugin:2.2:deploy (default-cli) @ smartBasic ---
[INFO] Ne traite pas un projet de packaging non war
Comment 5 Mark Thomas 2017-04-18 08:59:50 UTC
This is an issue with the Maven plug-in (or your usage of it), not Tomcat. The Maven plug-in uses Jira to track issues. You need to open an issue at https://issues.apache.org/jira/browse/MTOMCAT