idea打包jar将源码到maven nexus 私服
原创    lido_me    发表于:2019-10-12 15:59:09
  阅读 :35   收藏   编辑
<build>
       <plugins>
       <!--   要将源码放上去,需要加入此配置    -->
        <plugin>  
            <artifactId>maven-source-plugin</artifactId>  
            <version>2.1</version>  
            <configuration>  
                <attach>true</attach>  
            </configuration>  
            <executions>  
                <execution>  
                    <phase>compile</phase>  
                    <goals>  
                        <goal>jar</goal>  
                    </goals>  
                </execution>  
            </executions>  
        </plugin>            
    </plugins>
</build>

执行mvn deploy即可. 如单独的打源码包可执行 mvn source:jar

评论
条评论

推荐阅读