Hi fellow developers,
I have a web application that relies on several modules. So to build it, I
have a master pom.xml file. What I want this pom file to do is to checkout
out all the modules.
below is my pom file.
project
define
modelVersion4.0.0/modelVersion
groupIdnet.srirangan.packt.maven/groupId
artifactIdTestModularApp/artifactId
version1.0-SNAPSHOT/version
packagingpom/packaging
nameMyLargeModularApp/name
/define
build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-scm-plugin/artifactId
version1.1/version
executions
execution
idcheck-out-project1/id
phasegenerate-sources/phase
goals
goalcheckout/goal
/goals
configuration
checkoutDirectory${project.build.directory}/module1/checkoutDirectory
connectionUrlscm:svn:svn://svnserver/svn/module1/trunk/connectionUrl
connectionTypeconnection/connectionType
developerConnectionscm:svn:svn://svnserver/svn/module1/trunk/developerConnection
usernameusername/username
passwordpassword/password
/configuration
/execution
execution
idcheck-out-project2/id
phasegenerate-sources/phase
goals
goalcheckout/goal
/goals
configuration
checkoutDirectory${project.build.directory}/module1/checkoutDirectory
connectionUrlscm:svn:svn://svnserver/svn/module1/trunk/connectionUrl
connectionTypeconnection/connectionType
usernameusername/username
passwordpassword/password
/configuration
/execution
/executions
/plugin
/plugins
/build
/project
I have tried **mvn scm:checkout** and **mvn scm:checkout
-check-out-project1** but it give me the error:
**Cannot run checkout command : Can't load the scm provider. You need to
define a connectionUrl parameter.**
I don't understand why this is happening since I have the connectionUrl
parameters defined inside the pom file already,the ideas point that I want
to get to is having the pom file configured to be able to checkout multiple
projects at the same time. Please let me know what I am doing wrong here,
Thanks in Advance.
Also, how would you set up a master pom.xml file so that you could checkout
all the modules all at once and istall them all? Please help a lost
developer!!! Thank you very much.
--
View this message in context:
http://maven.40175.n5.nabble.com/multi-module-checkout-tp396061p5538934.html
Sent from the Maven - Users mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org