Maven将依赖一起打包--使用maven-assembly-plugin

来源:互联网 发布:mac 使命召唤 编辑:程序博客网 时间:2024/05/19 04:53
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"><modelVersion>4.0.0</modelVersion><groupId>cn.rspread</groupId><artifactId>tigase-extension</artifactId><version>1.0-alpha1-SNAPSHOT</version><packaging>jar</packaging><name>tigase-extension</name><url>http://maven.apache.org</url><properties><project.build.sourceEncoding>UTF-8</project.build.sourceEncoding></properties><build><sourceDirectory>src/main/java</sourceDirectory><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>3.1</version><configuration><source>1.7</source><target>1.7</target></configuration></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-assembly-plugin</artifactId><version>2.5.4</version><configuration><descriptorRefs><descriptorRef>jar-with-dependencies</descriptorRef></descriptorRefs></configuration><executions><execution><id>make-assembly</id><phase>package</phase><span style="font-family: Arial, Helvetica, sans-serif;"><!--绑定到打包阶段--></span><goals><goal>single</goal></goals></execution></executions></plugin></plugins></build><dependencies><dependency><groupId>com.notnoop.apns</groupId><artifactId>apns</artifactId><version>1.0.0.Beta6</version><scope>compile</scope></dependency><dependency><groupId>tigase</groupId><artifactId>tigase-server</artifactId><version>7.0.0</version><scope>provided</scope></dependency><dependency><groupId>junit</groupId><artifactId>junit</artifactId><version>3.8.1</version><scope>test</scope></dependency></dependencies></project>

0 0
原创粉丝点击