Maven スケルトンを使用して、idea でモジュール、pom で maven7 プラグイン、サーブレット プラグインを作成する

pom.xml の内容

<?xml バージョン="1.0" エンコーディング="UTF-8"?>

<プロジェクト xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <モデルバージョン>4.0.0</モデルバージョン>

  <groupId>org.example</groupId>
  <artifactId>ウェブデモ</artifactId>
  <バージョン>1.0-スナップショット</バージョン>


  <パッケージング>戦争</パッケージング>


  <プロパティ>
    <maven.compiler.source>8</maven.compiler.source>
    <maven.compiler.target>8</maven.compiler.target>
  </プロパティ>


  <依存関係>
    <依存関係>
      <groupId>javax.servlet</groupId>
      <artifactId>javax.servlet-api</artifactId>
      <バージョン>3.1.0</バージョン>
      <scope>提供</scope>
    </依存関係>
  </依存関係>

  <ビルド>
    <プラグイン>
<!--tomcat プラグイン-->
      <プラグイン>
        <groupId>org.apache.tomcat.maven</groupId>
        <artifactId>tomcat7-maven-plugin</artifactId>
        <バージョン>2.2</バージョン>

      </プラグイン>
    </プラグイン>
  </ビルド>
</プロジェクト>

Supongo que te gusta

Origin blog.csdn.net/weixin_51825585/article/details/123300360
Recomendado
Clasificación