You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Ross, Bryan M" <br...@boeing.com> on 2007/02/27 01:50:07 UTC
Getting the latest versions from CVS
I am just trying to get started with M2. My source files are managed in
CVS, and when I do a compile, I want to compile with the latest versions
of my files in src. Essentially, I want to do a CVS update prior to
compiling class files. I have attempted to use SNAPSHOT versions along
with the -U flag (i.e., mvn -U compile) to ensure I get the latest, but
I must still not be doing something right, because I don't get updated
files from the source repository. Any guidance would be greatly
appreciated. Thanks.
My POM:
project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>project.agps</groupId>
<artifactId>jagps-maven</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>Maven Quick Start Archetype</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>lib</groupId>
<artifactId>VisLib.jar</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
...a bunch of other libraries...
<groupId>lib</groupId>
<artifactId>utils.jar</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
Thanks...
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Getting the latest versions from CVS
Posted by Dan Tran <da...@gmail.com>.
mvn scm:bootstrap -DconnectionUrl=yourcvsurl -Dgoals=install
On 2/26/07, Ross, Bryan M <br...@boeing.com> wrote:
>
> I am just trying to get started with M2. My source files are managed in
> CVS, and when I do a compile, I want to compile with the latest versions
> of my files in src. Essentially, I want to do a CVS update prior to
> compiling class files. I have attempted to use SNAPSHOT versions along
> with the -U flag (i.e., mvn -U compile) to ensure I get the latest, but
> I must still not be doing something right, because I don't get updated
> files from the source repository. Any guidance would be greatly
> appreciated. Thanks.
>
> My POM:
> project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <groupId>project.agps</groupId>
> <artifactId>jagps-maven</artifactId>
> <packaging>jar</packaging>
> <version>1.0-SNAPSHOT</version>
> <name>Maven Quick Start Archetype</name>
> <url>http://maven.apache.org</url>
> <dependencies>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>3.8.1</version>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>lib</groupId>
> <artifactId>VisLib.jar</artifactId>
> <version>1.0-SNAPSHOT</version>
> </dependency>
> <dependency>
> ...a bunch of other libraries...
> <groupId>lib</groupId>
> <artifactId>utils.jar</artifactId>
> <version>1.0-SNAPSHOT</version>
> </dependency>
> </dependencies>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <version>2.0</version>
> <configuration>
> <source>1.5</source>
> <target>1.5</target>
> </configuration>
> </plugin>
> </plugins>
> </build>
> </project>
>
>
>
>
>
> Thanks...
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>