Automated project deployment, maven+svn

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-release-plugin</artifactId>
    <version>2.5.1</version>
</plugin>

<scm>
    <connection>scm :svn:svn library url</connection>
    <developerConnection>scm:svn:svn library url</developerConnection>
</scm>

release:prepare

1. Automatically modify the version number FROM 1.0-SNAPSHOT TO 1.0

2. Play svn tag, tag Named: project name-1.0

3. Then package the project war package, project name.war

4. Modify the project version number FROM 1.0 TO 1.1-SNAPSHOT

5. Develop and iterate this process.

If you need to automatically publish to the remote machine tomcat, you need to configure the tomcat6-maven-plugin. For details, see the configuration instructions of the plugin.

Guess you like

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