maven打包上传源码
2016-09-22 16:41
260 查看
pom配置:
<?xml version="1.0" encoding="UTF-8"?> <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>com.unisound.audioPlatform</groupId> <artifactId>db-common</artifactId> <version>1.1-SNAPSHOT</version> <properties> <org.springframework.version>4.0.6.RELEASE</org.springframework.version> </properties> <dependencies> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.6</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>2.4</version> <configuration> <attach>true</attach> </configuration> <executions> <execution> <phase>compile</phase> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.10.3</version> <executions> <execution> <id>attach-javadocs</id> <phase>deploy</phase> </execution> </executions> </plugin> <plugin> <!-- explicitly define maven-deploy-plugin after other to force exec order --> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> <version>2.8.2</version> <executions> <execution> <id>deploy</id> <phase>deploy</phase> <goals> <goal>deploy</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <distributionManagement> <repository> <id>audioPlatformRepo</id> <name>AudioPlatform Repo</name> <url>http://ip:8083/nexus/content/repositories/release/</url> </repository> <snapshotRepository> <id>audioPlatformRepoSNAP</id> <url>http://ip:8083/nexus/content/repositories/snapshot</url> </snapshotRepository> </distributionManagement> </project>
相关文章推荐
- maven自动打包上传nexus仓库配置
- 源码打包插件:maven-source-plugin
- 怎么发布一个pom项目且打包maven源码,将源码包与jar包一同deploy到mavenserver
- maven 打包以及上传
- maven常用插件: 打包源码 / 跳过测试 / 单独打包依赖项
- Maven如何打包源码
- maven打包源码<转>
- maven常用插件: 打包源码 / 跳过测试 / 单独打包依赖项
- Maven 上传源码
- 使用Maven打包项目并上传到Linux服务器
- Maven工程中源码打包
- 使用maven打包及发布源码
- Maven 源码打包
- maven打包项目jar并上传到本地仓库
- maven自动打包上传
- Maven打包时生成源码包
- 使用maven打包及发布源码
- Snaker开源工作流研究003——s-web源码Maven编译打包运行
- maven常用插件: 打包源码 / 跳过测试 / 单独打包依赖项
- maven学习-项目打成源码jar包上传私库