- Add the following code to pom.xml
-
-
- <build>
- < finalName > plugin </ finalName > #Specify the name of the war package
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.3.2</version>
- <configuration>
- <encoding>${project.build.sourceEncoding}</encoding>
- <source>1.7</source>
- <target>1.7</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <testFailureIgnore>true</testFailureIgnore>
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
- </build>
maven to the name of the specified war package
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326193514&siteId=291194637
Recommended
Ranking