Hi all,

I'm working on a module that is a dependency of our main project. I
created this module as a snapshot since its currently under development
as well and its not a stable version yet. I upload it to our internal
remote repository, however, whenever anyone updates their dependencies
they don't get the latest version of my module, the copy still remains
the same as the previous version until they delete their local copy of
the dependency.

This is a sample of my module's pom file

<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>ca.abc</groupId>
        <artifactId>list</artifactId>
        <version>1.0-SNAPSHOT</version>
        <name>some List</name>
        <description>XMLBeans created schema jar</description>
</project>

I use mvn deploy plugin to deploy this file (its an xmlbean created jar
file if anyone cares to know). And this is what I use to deploy the jar
file
>mvn deploy:deploy-file -Durl=scp://address -DrepositoryId=repo_id
-Dfile=file.jar -DpomFile=pom.xml

This part seems to be working fine since it creates a new jar file on
the repo with a new timestamp everytime I deploy the new verison of my
jar file, however the other users can't get the latest copy.

This is the sample pom file of our main project
<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>ca.abc</groupId>
    <artifactId>qc</artifactId>
    <packaging>jar</packaging>
    <version>2.0</version>
    <name>QC</name>
    <build>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.0.2</version>
                <configuration>
                    <source>1.6</source>
                    <target>1.6</target>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <repositories>
        <repository>
            <id>repo_id</id>
            <url>http://address</url>
        </repository>
    </repositories>
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.3.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>ca.abc</groupId>
            <artifactId>list</artifactId>
            <version>1.0-SNAPSHOT</version>
            <scope>compile</scope>
        </dependency>
    </dependencies>
</project>

Any ideas? Or do I've the whole idea of SNAPSHOT wrong?


Thank you 

Reply via email to