The maven project packages the source code and deploys it to the mavenserver

<build>

           <plugins>

           <!-- To put the source code, you need to add this plugin -->

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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325330727&siteId=291194637