eclipse 使用Maven deploy命令打包源码到私服nexus
来源:互联网 发布:台湾导弹事件知乎 编辑:程序博客网 时间:2024/05/22 11:51
不包含源码的方式不再多说,可以参考下这个博客:http://blog.csdn.net/jun55xiu/article/details/39671907
这里主要说的是怎么将源码打包上去,网上的教程都不详细,只好自己动手
1修改pom文件
添加以下内容即可
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.4</version> </plugin> <!-- 编译源代码插件 --> <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> <encoding>${project.build.sourceEncoding}</encoding> </configuration> </plugin> <!-- 打包源代码插件 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>2.2.1</version> <configuration> <attach>true</attach> </configuration> <executions> <execution> <phase>compile</phase> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <!-- 打包过程忽略Junit测试 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.17</version> <configuration> <skip>true</skip> </configuration> </plugin> </plugins> </build>
注:build标签和dependencies标签一个级别。
0 0
- eclipse 使用Maven deploy命令打包源码到私服nexus
- eclipse 使用Maven deploy命令部署构建到Nexus上
- eclipse 使用Maven deploy命令部署构建到Nexus上
- eclipse 使用Maven deploy命令部署构建到Nexus上
- eclipse 使用Maven deploy命令部署构建到Nexus上 【二】
- eclipse android使用Maven deploy构建到Nexus上
- 使用maven将项目deploy至nexus
- maven deploy to Nexus
- Maven使用deploy命令部署构建
- 使用eclipse打包maven
- Maven 自动打包上传到私服 Nexus
- maven之发布项目到nexus【clean deploy命令】(八)
- 使用maven打包发布源码
- 使用maven打包发布源码
- 使用eclipse打包Maven项目
- Maven deploy plugin使用
- win7 + maven + nexus + Eclipse
- eclipse+maven+nexus
- asp.net与Matlab类型转换(待补全)
- Vs工程高版本向低版本迁移
- Multithreaded simple data type access and atomic variables
- In C++, what’s the difference between an inline function and a macro?
- 字符串数组转化成十六进制字符串
- eclipse 使用Maven deploy命令打包源码到私服nexus
- 先贴上代码:Random快排,快排的非递归实现
- JDBC对象
- JS 判断上传 文件 大小
- 机器学习xgboost实战—手写数字识别
- 如何确保项目开发敏捷和安全两者兼得呢?
- LeetCode Peeking Iterator
- 浮点数内存表示---记录一道题目
- iOS应用之间的跳转和传值