Thanks I didn't think of using it like that.

Daniel King
Vurv

The information contained in this message may be privileged and
confidential and protected from disclosure. If the reader of this
message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, you
are hereby notified that any dissemination, distribution or copying of
this communication is strictly prohibited. If you have received this
communication in error, please notify me immediately by replying to the
message and deleting it from your computer. Thank you. 

-----Original Message-----
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 29, 2008 9:23 AM
To: Maven Users List
Subject: Re: scm:checkout question

You can checkout a project without a pom like this:

mvn scm:checkout -DconnectionUrl=[YOUR_SCM_URL]

All options are defined here:
http://maven.apache.org/scm/plugins/checkout-mojo.html

The bootstrap goal should work with something like this:

mvn scm:bootstrap -DconnectionUrl=[YOUR_SCM_URL] -Dgoal=deploy

Emmanuel

On Mon, Apr 28, 2008 at 11:11 PM, Daniel King <[EMAIL PROTECTED]> wrote:

> How can you checkout a fresh copy of a project without a pom.xml or is
> this impossible? I'm assuming it is impossible just like ant needs a
> build.xml.  However how do most people checkout a project without the
> pom.xml the first time? If I copy the pom.xml and put it in my
directory
> and then call mvn scm:bootstrap it will checkout my code, compile, run
> tests and install since I have a goal of install in the configuration.
>
>
>
>   <build>
>
>    <plugins>
>
>      <plugin>
>
>        <groupId>org.apache.maven.plugins</groupId>
>
>        <artifactId>maven-scm-plugin</artifactId>
>
>        <configuration>
>
>          <connectionType>connection</connectionType>
>
>          <goals>install</goals>
>
>        </configuration>
>
>      </plugin>
>
>    </plugins>
>
>  </build>
>
>
>
> The reason I ask is because our build team deletes the project area at
> the beginning of every build.
>
>
>
> Also is scm:bootstrap the best way to checkout, compile, run tests and
> install? I might need to change that goal to deploy since the build
team
> wants to do all those steps and then put it in our internal repo.
>
>
>
> Thanks,
>
> Daniel King
>
>
>
>
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to