Is there a SVN Maven?

China☆狼群 提交于 2019-12-12 19:00:53

问题


Is there something for maven like http://subclipse.tigris.org/svnant.html ? Something to automate your project updates without having to click update?


回答1:


The Maven SCM Plugin does support Subversion. Check the Usage page.




回答2:


There is always the possibility to run ant inside maven. Ant is much more powerful than maven in many respects, but maven excels in dependency management and ease of deployment. So if you need the power of ant inside maven, use the maven antrun plugin:

Taken from http://maven.apache.org/plugins/maven-antrun-plugin/usage.html :

<build>
<plugins>
  <plugin>
    <artifactId>maven-antrun-plugin</artifactId>
    <executions>
      <execution>
        <phase> <!-- a lifecycle phase --> </phase>
        <configuration>
          <tasks>

            <!--
              Place any Ant task here. You can add anything
              you can add between <target> and </target> in a
              build.xml.
            -->

          </tasks>
        </configuration>
        <goals>
          <goal>run</goal>
        </goals>
      </execution>
    </executions>
  </plugin>
</plugins>

Sean



来源:https://stackoverflow.com/questions/2622191/is-there-a-svn-maven

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!