I use the Maven with Eclipse. Is possible build the project and then deploy built WAR file to Tomcat server?
I use Windows. I can build WAR
file, and al
Meanwhile I resolved it. There were a few issues.
Firstly I set Goal in the Eclipse run configuration to tomcat:deploy
.
And I changed pom.xml
following
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<configuration>
<url>http://localhost:8080/manager/text</url>
<server>Apache_Tomcat_7_x86</server>
<path>/HelloWorld</path>
</configuration>
</plugin>
URL in configuration depends on Tomcat version. For me works text
, for others works html
on end of URL. And of course, in tomcat-users.xml
must be set role manager-script
or manager-gui
.
Maybe it helps to others.