使用maven插件将源码也打包

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

猜你喜欢

转载自leonmau.iteye.com/blog/1066287