maven-tomcat-plugin

Maven - <server/> in settings.xml

故事扮演 提交于 2019-11-28 21:02:08
问题 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: <configuration> ... <url>http://localhost/manager</url> <username>admin</username> <password>admin</password> ... </configuration> But then I obviously want to keep this settings in a different place since I work on my computer but then there's a staging and a live server as well where the settings of the server are different. So let's use the .m2/settings.xml : <servers> <server

SSL Configuration on Maven Tomcat Plugin

强颜欢笑 提交于 2019-11-28 20:36:11
问题 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 command It's in the in user directory on windows.It's password is password. This is how I defined tomcat in pom.xml: <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.0-beta-1</version> <executions

mvn tomcat7:run - How does it work?

落花浮王杯 提交于 2019-11-28 19:57:43
问题 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 following configuration: <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.0-SNAPSHOT</version> <configuration> <path>/${project.build.finalName}</path> </configuration> </plugin> It creates

How to run Tomcat 7 using Maven 2 Tomcat plugin?

陌路散爱 提交于 2019-11-28 16:40:10
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. This works for me: http://tomcat.apache.org/maven-plugin-2.1/ With this plugin config: <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.1</version> <configuration> <path>/</path> </configuration> </plugin> And running with mvn clean install tomcat7:run (Please note that tomcat7:run , not tomcat:run .) Plugin documentation is here: http:/

tomcat-maven-plugin 403 error

纵饮孤独 提交于 2019-11-28 03:49:31
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: 403 for URL: http://localhost:8080/manager/text/deploy?path=%2Fdms&war= I think it because of null war parameter. But why is it null??? In pom.xml there is: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>tomcat-maven-plugin</artifactId> <configuration> <warFile>target\my-webapp.war</warFile> <server>myserver</server> <url>http://localhost

Tomcat 8 Maven Plugin for Java 8

亡梦爱人 提交于 2019-11-27 00:25:00
Is the tomcat7-maven-plugin working with a tomcat 8 server and java 8? I can't find any tomcat8-maven-plugin . Yes you can, In your pom.xml, add the tomcat plugin. (You can use this for both Tomcat 7 and 8): pom.xml <!-- Tomcat plugin --> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> <configuration> <url>http:// localhost:8080/manager/text</url> <server>TomcatServer</server> *(From maven > settings.xml)* <username>*yourtomcatusername*</username> <password>*yourtomcatpassword*</password> </configuration> </plugin> tomcat

Tomcat 8 Maven Plugin for Java 8

好久不见. 提交于 2019-11-26 09:22:14
问题 Is the tomcat7-maven-plugin working with a tomcat 8 server and java 8? I can\'t find any tomcat8-maven-plugin . 回答1: Yes you can, In your pom.xml, add the tomcat plugin. (You can use this for both Tomcat 7 and 8): pom.xml <!-- Tomcat plugin --> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> <configuration> <url>http:// localhost:8080/manager/text</url> <server>TomcatServer</server> *(From maven > settings.xml)*