How to migrate Maven Release Plugin to from SVN to Git? -


we in process of moving our projects svn git. use maven release plugin mvn release:prepare , mvn release:perform our packages.

along that, modifying pom.xml file scm properties point our git repositories.

however, following error when run mvn release:prepare :

[error] failed execute goal org.apache.maven.plugins:maven-release-plugin:2.5.1:prepare (default-cli) on project myproject: unable check local modifications [error] provider message: [error] svn command failed. [error] command output: [error] 'svn' not recognized internal or external command, [error] operable program or batch file. [error] -> [help 1] [error] [error] see full stack trace of errors, re-run maven -e switch. [error] re-run maven using -x switch enable full debug logging. [error] [error] more information errors , possible solutions, please read following articles: [error] [help 1] http://cwiki.apache.org/confluence/display/maven/mojofailureexception 

why still attempting execute cmd.exe /x /c "svn --non-interactive status" ? else needs configured migrate on release process?

my pom.xml details context:

<scm>     <connection>scm:git:https://mygitprojecturl.git</connection>     <developerconnection>scm:git:https://mygitprojecturl.git</developerconnection>     <url>https://mygitprojecturl</url> </scm> ... <build>     <plugins>         <!-- maven release plugin -->         <plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-release-plugin</artifactid>             <version>2.5.1</version>             <configuration>                 <goals>deploy</goals>             </configuration>         </plugin> 

you can try below plugin maven-invoker dependency :

 <build>     <plugins>         <plugin>           <groupid>org.apache.maven.plugins</groupid>           <artifactid>maven-release-plugin</artifactid>           <version>2.5.1</version>           <dependencies>             <dependency>               <groupid>org.apache.maven.shared</groupid>               <artifactid>maven-invoker</artifactid>               <version>2.2</version>             </dependency>           </dependencies>         </plugin>     </plugins> 


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -