I don't think this particular issue is related to m2eclipse and general Maven questions should be asked in Maven users mailing list. See http://maven.apache.org/mail-lists.html

Your issue is probably related to the fact that Maven default policy is to never update released artifacts (why would released jar ever change?). So, you should really change version when you deploy new artifacts or use XX-SNAPSHOT version while developing. You can also change update policy for released artifacts for your repository, but I strongly advice against that.

 regards,
 Eugene


Qureshi,Shahzad [Ontario] wrote:

Hi all,

I am using m2eclipse 0.9.5.20080530 with eclipse 3.4.0

I've created an internal repository on one of our servers and uploaded some jar files created using Maven on the repository. Everything works beautifully except when I've to update those jar files. I recreate the jar files using the same name/version and everything whenever I find a bug in the code that comprises the jar files and deploy it on the repository. However, my peers can't download the most updated version of those jar files. They've to delete their local copies of the jar files from .m2 directory to be able to get the latest versions. Does anybody else have this problem?

Here is the sample project pom file

<?xml version="1.0" encoding="UTF-8"?>
<project>
    <modelVersion>4.0.0</modelVersion>
    <groupId>ca</groupId>
    <artifactId>qc</artifactId>
    <packaging>jar</packaging>
    <version>2.0</version>
    <name>test</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>maven-repo</id>
            <url>http://url</url>
        </repository>
    </repositories>
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.3.1</version>
            <scope>test</scope>
        </dependency>
            <groupId>ca.qc</groupId>
            <artifactId>rules</artifactId>
            <version>1.0</version>
            <scope>compile</scope>
        </dependency>
</project>

And here is the sample pom for the dependency

<?xml version="1.0" encoding="UTF-8"?>
<project>
        <modelVersion>4.0.0</modelVersion>
        <groupId>ca.qc</groupId>
        <artifactId>rules</artifactId>
        <version>1.0</version>
        <name>Rules</name>
</project>


Any help will be appreciated.

thanks



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to