您的位置:首页 > 其它

pom.xml中依赖接口及文件编译拷贝

2015-07-13 10:25 381 查看
pom.xml:

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>install</id>
<phase>install</phase>
<configuration>
<target>
<echo
message="********************copy profile propertie file *************************" />

<copy file="webContent/WEB-INF/temporary-lib/xxx.jar"
tofile="webContent/WEB-INF/lib/xxx.jar"
overwrite="true" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>

<!-- pom.xml中接口模块 -->
<dependency>
<groupId>org.apache</groupId>
<artifactId>test</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/webContent/WEB-INF/temporary-lib/xxx.jar</systemPath>
</dependency>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: