The project through maven production source packages and documentation package and publish to your own private servers

<! - the project through maven production source packages and documentation package and publish their own private servers to 
execute maven command, mvn clean package, after the implementation of complete 
command: mvn deploy posting to your own private servers, so the same project staff group can view the source code and documentation of your project
 -> 
                    <plugin> 
                        <groupId> org.apache.maven.plugins </ groupId> 
                        <artifactId> Maven-Source-plugin </ artifactId> 
                        <Executions> 
                            < Execution> 
                                <ID> the attach-Sources </ ID> 
                                <Goals> 
                                    <Goal> JAR </ Goal> 
                                </ Goals> 
                            </ Execution>
                        </executions>
                    </plugin>

                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>attach-javadocs</id>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>

 

Guess you like

Origin www.cnblogs.com/endv/p/11204697.html