On 03/18/2011 04:21 PM, Felix Knecht wrote:
Hi

I have clone git james server from github

When i have import project into Eclipse the pom.xml in james-server
projet
is wrong with:

Unable to find resource
'org.apache.james:james-server-root:pom:1.6-SNAPSHOT'

on
http://mvnrepository.com/artifact/org.apache.james/james-server-root they
are only 1.5 version

It's available on Apaches repository [1]. I just wonder why this isn't
used when trying to download snapshots.

You can add following to your .m2/settings.xml:

  <profiles>
    <profile>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <repositories>
        <repository>
        <id>apache.snapshots</id>
        <name>Apache Snapshot Repository</name>
        <url>http://repository.apache.org/snapshots</url>
        <releases>
          <enabled>false</enabled>
        </releases>
      </repository>
     </repositories>
    </profile>
  </profiles>

HTH
Felix


[1] https://repository.apache.org/content/groups/public/


so i have modified the pom.xml like this:

<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";>
<parent>
<artifactId>james-server-root</artifactId>
<groupId>org.apache.james</groupId>
<version>1.5</version>
</parent>
... ...



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to