eclipse maven deploy jar包源码发布配置
1、pom.xml 配置
<plugins>
<!-- Compiler maven 编辑器插件--><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>UTF8</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>
</plugins>
</build>
<!-- 配置管理 -->
<distributionManagement>
<snapshotRepository>
<id>snapshots</id>
<url>http://12.0.0.1:8081/nexus/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>releases</id>
<url>http://12.0.0.1:8081/nexus/content/repositories/releases</url>
</repository>
</distributionManagement>
2、操作