maven项目打包源码一通deploy到mavenserver

<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>

猜你喜欢

转载自my.oschina.net/idea813/blog/1807205