Hi, I have another question relate to scm:bootstrap. When I write a child pom
file which is only checkout source, compile, then package; use mvn
scm:bootstrap to run it is okie. But now I have many pom files and I need a
parent pom to call these children pom. I don't know how to assembly them.
Now I use a .bat file to check out all my pom files, then I run mvn
scm:bootstrap to run children pom files for each children projects but maven
through error:
Cannot run checkout command :
Embedded error: Can't load the scm provider.
You need to define a connectionUrl parameter
Here is my .bat file
svn co svn://my_svn_IP/BuildSystem
cd BuildSystem
mvn scm:bootstrap
Here is my parent pom.xml
<project>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<groupId>com.demo</groupId>
<artifactId>emps</artifactId>
<version>1.0-SNAPSHOT</version>
<name>EPMS [parent]</name>
<modules>
<module>model</module>
<module>workflow-engine</module>
<module>issue-management</module>
<module>workflow-management</module>
<module>execute-workflow</module>
</modules>
</project>
Pls help me !!!!
mydesktop79 wrote:
>
> I got it. Thank you.
>
>
> Dan Tran wrote:
>>
>> see scm:bootstrap
>>
>> On Tue, Sep 30, 2008 at 7:17 PM, mydesktop79
>> <[EMAIL PROTECTED]> wrote:
>>>
>>> Thank Emmanuel a lot! My checkout is running now. I have one more
>>> question:
>>> To check out source so far, I have to run command line mvn scm:checkout.
>>> But
>>> I want to do a chain-actions: check out source, then compile, then
>>> package
>>> ... How can I do that with only a pom file (to compile and package, I
>>> just
>>> have to run mvn install, but check out will not work with this command).
>>> Please help me!
>>>
>>>
>>> Emmanuel Venisse-2 wrote:
>>>>
>>>> It is normal, you don't use the same protocol :-)
>>>>
>>>> In the first case, you use the svn protocol and in the second case, you
>>>> use
>>>> the file protocol.
>>>>
>>>> Modify the scm url in your pom to something like that:
>>>>
>>>> scm:svn:svn://my_svn_Ip/Development/execute-workflow
>>>>
>>>> Emmanuel
>>>>
>>>> On Tue, Sep 30, 2008 at 6:04 AM, mydesktop79 <
>>>> [EMAIL PROTECTED]> wrote:
>>>>
>>>>>
>>>>> Hi,
>>>>> I'm newbie in Maven. I'd like to checkout svn source. When I tried
>>>>> bellow
>>>>> command line
>>>>>
>>>>> svn co svn://my_svn_Ip/Development/execute-workflow
>>>>>
>>>>> my source code checked out successful.
>>>>>
>>>>> But I fail when tried mvn scm:checkout. Bellow is my pom.xml file:
>>>>> <project>
>>>>> ...
>>>>> <build>
>>>>> <plugins>
>>>>> <plugin>
>>>>> <groupId>org.apache.maven.plugins</groupId>
>>>>> <artifactId>maven-scm-plugin</artifactId>
>>>>> <version>1.1</version>
>>>>>
>>>>> <configuration>
>>>>> <username>username</username>
>>>>> <password>password</password>
>>>>> </configuration>
>>>>>
>>>>> </plugin>
>>>>> </plugins>
>>>>> <scm>
>>>>>
>>>>>
>>>>>
>>>>> <connection>scm:svn:file:///my_svn_Ip/Development/execute-workflow</connection>
>>>>>
>>>>> <tag>HEAD</tag>
>>>>>
>>>>> </scm>
>>>>>
>>>>> </build>
>>>>>
>>>>> </project>
>>>>>
>>>>> It said that:
>>>>> [ERROR] svn: Unable to open an ra_local session to URL
>>>>> svn: Unable to open repository
>>>>> 'file:///my_svn_Ip/Development/execute-workflow'
>>>>> svn: Can't open file '\my_svn_Ip/Development/execute-workflow\format':
>>>>> The
>>>>> filename, directory name, or volume label syntax is incorrect
>>>>>
>>>>> My svn url is pure ( don't use http or https url ). Could anybody help
>>>>> me?
>>>>>
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://www.nabble.com/checkout-source-code-from-svn-tp19735835p19735835.html
>>>>> Sent from the Maven - SCM mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/checkout-source-code-from-svn-tp19735835p19753514.html
>>> Sent from the Maven - SCM mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/checkout-source-code-from-svn-tp19735835p19757811.html
Sent from the Maven - SCM mailing list archive at Nabble.com.