You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mark Eramo <ma...@trustvesta.com> on 2007/09/07 16:06:33 UTC
Maven 2 and Subversion
Hello,
Can anyone point me to detailed information and maybe some examples
on how to integrate maven and subversion. Ideally I would like to be
able to have the build fetch the latest code from subversion before I do
the build. I have looked at the documentation on the Maven site but I am
looking for more information then that on how to actually use the commands.
Regards,
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Maven 2 and Subversion
Posted by "COPPENS, Fabien" <fa...@capgemini.com>.
Continuum integrates really effortlessly with Maven and Subversion.
-----Message d'origine-----
De : Mark Eramo [mailto:mark.eramo@trustvesta.com]
Envoyé : vendredi 7 septembre 2007 16:28
À : Maven Users List
Objet : Re: Maven 2 and Subversion
Eric/Nick,
Thanks for the information. I am fairly new to Maven so I am still trying to feel my way around. I will look at cruise control but I am also thinking about using the Ant plugin to just fetch the code from Subversion before I compile. I don't want to use Ant to much as I am trying to migrate from Ant to Maven but given some of the limitations, Ant is a nice compliment to Maven.
I don't care about checking jars into Subversion because we store out binaries on a different server that is backed up. I figure why bloat the subversion repository with binaries so for me, I am just interested in fetching the code.
Thanks,
Mark
Nick Stolwijk wrote:
> Maybe try something like:
>
> <build>
> [...]
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-scm-plugin</artifactId>
> <version>1.0-SNAPSHOT</version>
> <executions>
> <execution
> <http://maven.apache.org/ref/2.0.4/maven-model/maven.html#class_execution>>
>
> <id>Update scm</id>
> <phase>validate</phase>
> <goals>update</goals>
> </execution>
> </executions>
> </plugin>
> [...]
> </plugins
> [...]
> </build>
> But I don't think it is recommended to do it this way, maybe activate
> it with a profile or indeed looking into a real continuous build server.
>
> Hth,
>
> Nick Stolwijk
>
> Eric Miles wrote:
>> I'd recommend automating that via a system like Continuum or Cruise
>> Control. I'm not sure there's any other way to do that directly with
>> the POM or not...
>>
>>
>> On Fri, 2007-09-07 at 10:06 -0400, Mark Eramo wrote:
>>
>>
>>> Hello,
>>> Can anyone point me to detailed information and maybe some
>>> examples on how to integrate maven and subversion. Ideally I would
>>> like to be able to have the build fetch the latest code from
>>> subversion before I do the build. I have looked at the documentation
>>> on the Maven site but I am looking for more information then that on
>>> how to actually use the commands.
>>>
>>> Regards,
>>> Mark
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven 2 and Subversion
Posted by Mark Eramo <ma...@trustvesta.com>.
Eric/Nick,
Thanks for the information. I am fairly new to Maven so I am still
trying to feel my way around. I will look at cruise control but I am
also thinking about using the Ant plugin to just fetch the code from
Subversion before I compile. I don't want to use Ant to much as I am
trying to migrate from Ant to Maven but given some of the limitations,
Ant is a nice compliment to Maven.
I don't care about checking jars into Subversion because we store out
binaries on a different server that is backed up. I figure why bloat the
subversion repository with binaries so for me, I am just interested in
fetching the code.
Thanks,
Mark
Nick Stolwijk wrote:
> Maybe try something like:
>
> <build>
> [...]
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-scm-plugin</artifactId>
> <version>1.0-SNAPSHOT</version>
> <executions>
> <execution
> <http://maven.apache.org/ref/2.0.4/maven-model/maven.html#class_execution>>
>
> <id>Update scm</id>
> <phase>validate</phase>
> <goals>update</goals>
> </execution>
> </executions>
> </plugin>
> [...]
> </plugins
> [...]
> </build>
> But I don't think it is recommended to do it this way, maybe activate
> it with a profile or indeed looking into a real continuous build server.
>
> Hth,
>
> Nick Stolwijk
>
> Eric Miles wrote:
>> I'd recommend automating that via a system like Continuum or Cruise
>> Control. I'm not sure there's any other way to do that directly with
>> the POM or not...
>>
>>
>> On Fri, 2007-09-07 at 10:06 -0400, Mark Eramo wrote:
>>
>>
>>> Hello,
>>> Can anyone point me to detailed information and maybe some
>>> examples on how to integrate maven and subversion. Ideally I would
>>> like to be able to have the build fetch the latest code from
>>> subversion before I do the build. I have looked at the documentation
>>> on the Maven site but I am looking for more information then that on
>>> how to actually use the commands.
>>>
>>> Regards,
>>> Mark
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven 2 and Subversion
Posted by Nick Stolwijk <ni...@planet.nl>.
Maybe try something like:
<build>
[...]
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<executions>
<execution <http://maven.apache.org/ref/2.0.4/maven-model/maven.html#class_execution>>
<id>Update scm</id>
<phase>validate</phase>
<goals>update</goals>
</execution>
</executions>
</plugin>
[...]
</plugins
[...]
</build>
But I don't think it is recommended to do it this way, maybe activate it
with a profile or indeed looking into a real continuous build server.
Hth,
Nick Stolwijk
Eric Miles wrote:
> I'd recommend automating that via a system like Continuum or Cruise
> Control. I'm not sure there's any other way to do that directly with
> the POM or not...
>
>
> On Fri, 2007-09-07 at 10:06 -0400, Mark Eramo wrote:
>
>
>> Hello,
>> Can anyone point me to detailed information and maybe some examples
>> on how to integrate maven and subversion. Ideally I would like to be
>> able to have the build fetch the latest code from subversion before I do
>> the build. I have looked at the documentation on the Maven site but I am
>> looking for more information then that on how to actually use the commands.
>>
>> Regards,
>> Mark
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven 2 and Subversion
Posted by Mark Eramo <ma...@trustvesta.com>.
I am trying to do automated and semi automated builds so I will look at
Continum as it seems to add a lot of value with Maven/Subversion
integration.
Regards,
Mark
Graham Leggett wrote:
> On Fri, 2007-09-07 at 10:06 -0400, Mark Eramo wrote:
>
>
>>> Can anyone point me to detailed information and maybe some examples
>>> on how to integrate maven and subversion. Ideally I would like to be
>>> able to have the build fetch the latest code from subversion before I do
>>> the build. I have looked at the documentation on the Maven site but I am
>>> looking for more information then that on how to actually use the
>>> commands.
>>>
>
> What are you trying to achieve by doing this?
>
> Usually a developer would not want to do an update before they do a build,
> just in case that update conflicts with their code at that point, which
> would then have to be dealt with immediately and not at a time convenient
> to a developer.
>
> If you are trying to do automated builds, then a continuous integration
> tool like Continuum (amongst others) should do the trick. Continuum will
> update the code, and if the code has changed, build the code, and if the
> build broke, notify people of this.
>
> What you should do all depends on the problem you are trying to solve.
>
> Regards,
> Graham
> --
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven 2 and Subversion
Posted by Graham Leggett <mi...@sharp.fm>.
On Fri, 2007-09-07 at 10:06 -0400, Mark Eramo wrote:
>> Can anyone point me to detailed information and maybe some examples
>> on how to integrate maven and subversion. Ideally I would like to be
>> able to have the build fetch the latest code from subversion before I do
>> the build. I have looked at the documentation on the Maven site but I am
>> looking for more information then that on how to actually use the
>> commands.
What are you trying to achieve by doing this?
Usually a developer would not want to do an update before they do a build,
just in case that update conflicts with their code at that point, which
would then have to be dealt with immediately and not at a time convenient
to a developer.
If you are trying to do automated builds, then a continuous integration
tool like Continuum (amongst others) should do the trick. Continuum will
update the code, and if the code has changed, build the code, and if the
build broke, notify people of this.
What you should do all depends on the problem you are trying to solve.
Regards,
Graham
--
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven 2 and Subversion
Posted by Eric Miles <er...@kronos.com>.
I'd recommend automating that via a system like Continuum or Cruise
Control. I'm not sure there's any other way to do that directly with
the POM or not...
On Fri, 2007-09-07 at 10:06 -0400, Mark Eramo wrote:
> Hello,
> Can anyone point me to detailed information and maybe some examples
> on how to integrate maven and subversion. Ideally I would like to be
> able to have the build fetch the latest code from subversion before I do
> the build. I have looked at the documentation on the Maven site but I am
> looking for more information then that on how to actually use the commands.
>
> Regards,
> Mark
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>