maven release project lib package is not released

Previously, when the maven project was released to tomcat, the lib package was not released in the past, according to the online method

Project -> right click -> preferences -> Web Deployment Assembly found no

Maven Dependencies, added, problem solved, but if using Maven4Myeclipse

update project to update the pom dependency, and found that the problem reappeared, that is, the problem was not completely solved.

 

After searching, it is because of the packaging settings in the pom that I use the embedded jetty to tar the package

<plugin>

<artifactId>maven-assembly-plugin</artifactId>

                <configuration>

                    <descriptor>src/main/assembly/assembly.xml</descriptor>

                </configuration>

                <executions>

<execution>

<id>make-assembly</id>

<phase>package</phase>

<goals>

<goal>single</goal>

</goals>

</execution>

</executions>

            </plugin>

And changed to jar method. Need to be modified to war mode

i.e. pom.xml modification

<packaging>war</packaging>

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326754197&siteId=291194637