maven发布工程lib包没有发布
maven发布工程lib包没发布
先前出现了maven工程发布到tomcat下时lib包没有发布过去,按网上的方式
工程 -> 右键 -> preferences -> Web Deployment Assembly 下发现没有
Maven Dependencies,添加,问题解决,但是如果使用Maven4Myeclipse的
update project更新pom依赖,发现问题又出现,也就是没有彻底解决问题。
经过查找,是因为pom中的设置packaging我为了使用内嵌jetty打tar包
<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>
而改为了jar方式。需要修改为war方式
即pom.xml修改
<packaging>war</packaging>