Questions tagged [maven-tomcat-plugin]

The Tomcat Maven Plugin provides goals to manipulate WAR projects within the Tomcat servlet container.

The Tomcat Maven Plugin provides goals to manipulate WAR projects within the Tomcat servlet container.

Please note that the plugin as changed its artifactId since version 2.0-beta-1 from tomcat6-maven-plugin and tomcat7-maven-plugin with the same goals.

More info

202 questions
81
votes
6 answers

Tomcat 8 Maven Plugin for Java 8

Is the tomcat7-maven-plugin working with a tomcat 8 server and java 8? I can't find any tomcat8-maven-plugin.
myborobudur
  • 4,385
  • 8
  • 40
  • 61
44
votes
2 answers

How to run Tomcat 7 using Maven 2 Tomcat plugin?

I am using Maven 2 and I have an external Tomcat 7. I was wondering how to run Tomcat 7 from using Maven Tomcat plugin. And does Maven Tomcat plugin in Maven 3 runs the Tomcat 7 by default. Thanks.
fresh_dev
  • 6,694
  • 23
  • 67
  • 95
40
votes
9 answers

tomcat:deploy: "Cannot invoke Tomcat manager: Connection refused"

I tried to deploy my app to Tomcat using Maven and I've found this sample. That's fragment of my pom.xml: org.codehaus.mojo
uncle Lem
  • 4,954
  • 8
  • 33
  • 53
33
votes
21 answers

tomcat-maven-plugin 403 error

When I use mvn tomcat:deploy of tomcat-maven-plugin there is a 403 error: Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.0:deploy (default-cli) on project my-webapp: Cannot invoke Tomcat manager: Server returned HTTP response code:…
29
votes
2 answers

Maven - in settings.xml

I use tomcat-maven-plugin to deploy my war to a server. What I have to do is configure it like this in my pom.xml: ... http://localhost/manager admin
Balázs Németh
  • 6,222
  • 9
  • 45
  • 60
27
votes
1 answer

mvn tomcat7:run - How does it work?

I just want to understand, because I got the code from another question, and it's working fine, but I don't understand the flow of this operation. This is my understanding of Apache Maven Tomcat plugin for Tomcat 7, when using mvn tomcat7:run with…
fresh_dev
  • 6,694
  • 23
  • 67
  • 95
15
votes
2 answers

SSL Configuration on Maven Tomcat Plugin

I am trying to develop a Wicket app. It's login page must open with SSL. So I did some coding. But I can't find to configure the maven tomcat 7 plugin for SSL. I created keystore file properly.Using keytool -genkey -alias tomcat -keyalg RSA…
yyy
  • 437
  • 2
  • 9
  • 23
14
votes
3 answers

Maven: Where to put generated resources for tomcat-maven-plugin?

I have CSS and JavaScript files in src/main/webapp directory of my project. I want to join add joined and minified version of these resources to my WAR file and to the place where tomcat-maven-plugin picks it up. I used yuicompressor-maven-plugin to…
user1547039
13
votes
3 answers

How to set agentlib property for mvn tomcat plugin (jpda)

Related to eclipse debug remote web application => How do I debug a remote application in my eclipse How can I set / archive this in the mvn tomcat plugin? http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/tomcat7-maven-plugin/ The only thing that…
childno͡.de
  • 4,679
  • 4
  • 31
  • 57
10
votes
1 answer

Maven global plugin configuration

I'd like to have a plugin configuration that will not exist inside the pom.xml file (and also in any project files). What I want to do is to have a plugin that will be used only by me on my workstation. Specifically, I want to deploy my project onto…
devrogs
  • 533
  • 3
  • 13
9
votes
1 answer

How do I exclude extraDependency META-INF files for exec-war goal?

My question is exactly the problem faced by this user of maven-shade plugin: How to exclude META-INF files from bundle? But I am using tomcat7-maven-plugin to build a self-running webapp. I have recently switched database drivers to use Microsoft's…
carbontax
  • 2,164
  • 23
  • 37
9
votes
1 answer

tomcat 7 embedded doesn't shutdown correctly ClassNotFoundException ContainerBase$StopChild

I'm trying to make work integration test with Tomcat7 embedded plugin with this config: org.apache.tomcat.maven tomcat7-maven-plugin
user358501
  • 438
  • 6
  • 8
9
votes
5 answers

maven tomcat7 plugin authentication fail, 403 Forbidden

I'm posting this after weeks of effort. I try and try because I felt guilty of posting this because there are thread similar to this. But still I'm getting slightly different error. So what I have is a very simple spring(no need to be spring of…
Susitha Ravinda Senarath
  • 1,648
  • 2
  • 27
  • 49
8
votes
2 answers

tomcat7-maven-plugin / tomcat7:run where to store custom context.xml?

I like to develop using the tomcat7-maven-plugin, especially the mvn tomcat7:run / tomcat7:run-war goal in order to quickly test my app, this plugin allows you to specify a custom Context.xml (which is very handy to provide stub for jndi…
gjambet
  • 369
  • 5
  • 13
8
votes
1 answer

Where does settings.xml live, for tomcat 7?

In order to use the tomcat 7 manager (or mvn tomcat:deploy), I need to put a settings.xml file somewhere. The file will contain the following: myserver myusername
Liam
  • 1,041
  • 2
  • 17
  • 31
1
2 3
13 14