Webアプリケーション(WARアーティファクト)をTomcat 8サーバーにデプロイするには、まだtomcat7-maven-plugin
を使用してください。
pom.xml
<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>tomcat8_vy</server>
<username>tomcat_username</username>
<password>tomcat_password</password>
</configuration>
</plugin>
インサイドインサイドMavenのは、ファイルsettings.xml
を見て、ディレクトリをインストールし、パスがこの/apache-maven-3.3.9/conf/settings.xml
<servers>
<server>
<id>tomcat8_vy</id>
<username>tomcat_username</username>
<password>tomcat_password</password>
</server>
</servers>
インサイドTomcatがファイルtomcat-users.xml
を見て、ディレクトリをインストール好き、パスはこの/apache-tomcat-8.0.36/conf/tomcat-users.xml
<tomcat-users xmlns="http://tomcat.apache.org/xml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd"
version="1.0">
<role rolename="manager-gui"/>
<role rolename="manager-status"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<user username="tomcat_username" password="tomcat_password" roles="manger-gui,manager-status,manager-script,manager-jmx"/>
</tomcat-users>
好き持っ
ゴーウェブアプリのディレクトリに、typeコマンド
mvn tomcat7:deploy
または2回目以降の展開のための
mvn tomcat7:redeploy
(もしサーバーがないシャットダウン)。
deploy
は、IDEのMavenプラグインから実行/実行できます。
あなたの質問は、あなたがpom.xmlにmaven tomcat 7プラグインを使用しているのに対して、tomcat 8にアプリケーションを配備したいと言っています。 –