Maven Source Plugin
项目pom文件build下添加配置:
01 <plugin>
02 <groupId>org.apache.maven.plugins</groupId>
03 <artifactId>maven-source-plugin</artifactId>
04 <version>2.2.1</version>
05 <executions>
06 <execution>
07 <id>attach-sources</id>
08 <goals>
09 <goal>jar-no-fork<span></span></goal>
10 </goals>
11 </execution>
12 </executions>
13 </plugin> execution下可配置phase属性, 意思是在什么阶段打包源文件。如<phase>package</phase> 执行 mvn install,maven会自动将source install到repository 。
执行 mvn deploy,maven会自动将source deploy到remote-repository 。
执行 mvn source:jar,单独打包源码。
Maven Source Plugin的更多相关文章
- 学习Maven之Maven Enforcer Plugin
		1.Maven Enforcer plugin是什么鬼? 在说这个插件是什么前我们先思考这么一个问题:当我们开发人员进入项目组进行开发前,要准备开发环境,而领导总是会强调工具的统一,编译环境的统一.比 ... 
- [Maven] - Eclipse "maven compiler plugin" 冲突解决
		刚安装最新的Maven 3.2.5,在eclipse中使用maven的Run As->Maven Install,总会提示: Failed to execute goal org.apache. ... 
- [Apache Maven Shade Plugin] [example] [001] 官方例子:includes-excludes
		链接地址:[Selecting Contents for Uber JAR](http://maven.apache.org/plugins/maven-shade-plugin/examples/i ... 
- Discuz使用tools修复数据文件后,访问URL多出/source/plugin/tools,导致文章栏目无法访问
		今天我的婚嫁亲子网数据库出了点错误,于是就用dz官方的tool工具修复了以下,然后就发生了这个错误.. 本来频道页面的地址是:http://www.ifen8.com/article/ 结果自动跳转成 ... 
- maven jetty plugin
		转载:http://blog.163.com/xueling1231989@126/blog/static/1026408072013101311395492/ 前言: 在 maven 下测试调试时, ... 
- 施用 maven shade plugin 解决 jar 或类的多版本冲突
		施用 maven shade plugin 解决 jar 或类的多版本冲突 使用 maven shade plugin 解决 jar 或类的多版本冲突java 应用经常会碰到的依赖的三方库出现版本 ... 
- 解决Maven出现Plugin execution not covered by lifecycle configuration 错误
		http://blog.163.com/xh_ding/blog/static/1939032892015222368827/ 解决Maven出现Plugin execution not covere ... 
- Jenkins安装maven integration plugin失败解决方法
		最近装了一个jenkins准备搞一个自动化测试的持续集成,但是在安装maven integration这个插件时报错,试了几次都是失败! 错误原因如下: javadoc安装失败: java.io.IO ... 
- 记录一次maven打包时将test目录下的类打包到jar中,Maven Assembly Plugin的使用
		今天有人问我打包后找不到主类,运行的类写在test中.按照常规,test目录下的文件不会打包到jar包中.(但是我测试一个springboot工程就可以,这里之后再研究) 具体解决如下 第一步:在po ... 
随机推荐
- 软件工程—WC功能实现 (JAVA)
			软件工程-WC功能实现(JAVA) Github项目地址:https://github.com/Ousyoung/wc 项目要求  wc.exe 是一个常见的工具,它能统计文本文件的字符数.单词数和 ... 
- mysql的sql性能分析器
			MySQL 的SQL性能分析器主要用途是显示SQL执行的整个过程中各项资源的使用情况.分析器可以更好的展示出不良SQL的性能问题所在. mysql sql profile的使用方法 1.开启mysql ... 
- Redis键迁移
			Redis键迁移 在使用Redis的过程中,很多时候我们会遇到需要进行键迁移的问题,需要将指定Redis中的指定数据迁移到其他Redis当中,键迁移有三种方法,我们来进行一一介绍. 一.move ... 
- bash基本命令速查表
			来源:https://github.com/skywind3000/awesome-cheatsheets/blob/master/languages/bash.sh ################ ... 
- C# 实现邮件代发
			由于自己很好奇,有一些推广之类的 邮件,发件人后面,都有一个 由 .... 代发. 所以,查找了一些资料,来验证了一下实现方法. 咱们先来看看,实现代发的 理想效果图 当然,这一种,是利用 代发的 邮 ... 
- The service definition selected is invalid
			吐槽下 最近在学Java 听闻Java生态很好 社区很多 但实际操作起来确实另一番风景 不多说了 说正事 添加WebService服务Client时有密码认证得服务 Eclipse抛出 The ser ... 
- ODP.NET 之 ExecuteNoQuery 执行 Merge into 返回值
			当执行Oracle.ManagedDataAccess.Client.OracleCommand.ExecuteNonQuery时,如果sql语句是 merge into ...,则返回值表现不稳定, ... 
- A tiny program to benchmark image transpose algorithms
			Here is the code: #include <stdio.h> #include <xmmintrin.h> #include <windows.h> t ... 
- Android Studio -  No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android
			错误提示: No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android 错 ... 
- 838. Push Dominoes
			There are N dominoes in a line, and we place each domino vertically upright. In the beginning, we si ... 
