采用webx框架开发多module web应用,开发环境是eclipse4.2 + maven3。
建立专门的deploy子module,配置assembly.xml如下
<?xml version="1.0" encoding="UTF-8"?>
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.1">
<id></id>
<baseDirectory>pontus.war</baseDirectory>
<formats>
<format>tar.gz</format>
</formats>
<destName>pontus.tgz</destName>
<fileSets>
<fileSet>
<directory>../web/target/pontus</directory>
<outputDirectory></outputDirectory>
<includes>
<include>**/**</include>
</includes>
</fileSet>
</fileSets>
</assembly>
插件配置:
<?xml version="1.0" encoding="UTF-8"?> <
建立专门的deploy子module,配置assembly.xml如下
<?xml version="1.0" encoding="UTF-8"?>
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.1">
<id></id>
<baseDirectory>pontus.war</baseDirectory>
<formats>
<format>tar.gz</format>
</formats>
<destName>pontus.tgz</destName>
<fileSets>
<fileSet>
<directory>../web/target/pontus</directory>
<outputDirectory></outputDirectory>
<includes>
<include>**/**</include>
</includes>
</fileSet>
</fileSets>
</assembly>
插件配置:
<?xml version="1.0" encoding="UTF-8"?> <