In the MAVEN project, the startup service times had the following exceptions:
No goals have been specified for this build. Must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id >:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle Phases Are:validate, initialize,
The reason for this is that there was a problem compiling the Tomcat plug-in. The following code gives an error message:
<build>
<!--configuration plugin-->
<plugins>
<plugin>
<groupId> org.apache.tomcat.maven</groupid>
<artifactId>tomcat7-maven-plugin</artifactId>
< Configuration>
<!--Portal Service port number-->
<port>8082</port>
<path>/</path>
</configuration>
</plugin>
</plugins>
</build>
Workaround: The MAVEN plugin installed by Eclipse is m2eclipse, and the console uses commands mvn compile does not complain.
Need to modify the Pom.xml file, add <defaultGoal>compile</defaultGoal> to the <build> tag.
The modified code looks like this:
<build>
<defaultGoal>compile</defaultGoal>
<!--configuration plugin-->
<plugins>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId> tomcat7-maven-plugin</artifactid>
<configuration>
<!--Portal Service port number-->
<port> 8082</port>
<path>/</path>
</configuration>
</plugin>
</ Plugins>
</build>