Here is th pom.xml I use. It's the initial one downloaded by Maven and 
completed by me (geotools version, dependency gt-main, repositories), that's 
all.

I verify my .m2\repository and a gt-main package exists since this morning : so 
it's not a problem of downloading. But it seems to be Eclipse that doesn't 
"see" it. I verify I have a clean M2_REPO in the classvariables of Eclipse.

Do you have another idea of why each package makes compiling error as : 
"Missing artifact org.geotools:gt-main:jar:2.6.3:compile" ?
Tahnks
Sidonie



________________________________
De : Sidonie Christophe <[email protected]>
À : Jody Garnett <[email protected]>
Cc : geotools <[email protected]>
Envoyé le : Ven 30 avril 2010, 11 h 53 min 29 s
Objet : [Geotools-gt2-users] Re : QuickStart example : missing artifacts and 
POM not found


But it's not a dependency, it's a module of the example. (I have two modules 
spa and web). 





________________________________
De : Jody Garnett <[email protected]>
À : Sidonie Christophe <[email protected]>
Cc : geotools <[email protected]>
Envoyé le : Ven 30 avril 2010, 11 h 49 min 51 s
Objet : Re: [Geotools-gt2-users] QuickStart example : missing artifacts and POM 
not found

web is no longer needed I don't think; the wms layer code was contirbuted to 
the wms plugin.
Can we remove this dependency and try again?

Jody

On 30/04/2010, at 7:35 PM, Sidonie Christophe wrote:

Hello everybody,
>
>
> I face a lot of problems with my Maven/Eclipse. I try to start with the 
> QuickStart example.
> I have two problems :
>
>- when I run a "mvn eclipse:eclipse" command, I get a fatal error due to :
>"Caused by: org.apache.maven.project.ProjectBuildingException: POM 
>'org.geotools. demo:web' not found in repository: Unable to download the 
>artifact from any repository"
>I don't know why because my project "example" is well loaded in Eclipse and 
>can see the pom.xml from the web repository.
>
>- I didn't face any problem with JUnit. When I try to update a GT dependency 
>(the gt-main first) in my pom, I get : 
>"[WARN] Missing POM for org.geotools:gt-main:jar:2.6.3
> Missing artifact org.geotools:gt-main:jar:2.6.3:compile". 
>
>
>I have no idea to solve that. Is it a problem of downloading files ? of a 
>missing repository ? My Maven and Eclipse are apparently well configured.
>Has anybody an idea about
> that?
>Thanks
>Sidonie
>
>
>
>
>
>------------------------------------------------------------------------------
>_______________________________________________
>Geotools-gt2-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>


      
<?xml version="1.0" encoding="UTF-8"?>
<project>
  <modelVersion>4.0.0</modelVersion>

  <groupId>org.geotools.demo</groupId>
  <version>1.0-SNAPSHOT</version>
  <artifactId>example</artifactId>
  <name>example Master</name>
  <packaging>pom</packaging>
  
  <modules>
    <module>web</module>
    <module>spa</module>
  </modules>

  <properties>
    <scala.version>2.7.4</scala.version>
    <geotools.version>2.6.3</geotools.version>
  </properties>

  <!-- Set up repo for ScalaJPA -->
  <repositories>
    <repository>
      <id>scala-tools</id>
      <url>http://scala-tools.org/repo-snapshots</url>
    </repository>
    <repository>
      <id>scala-tools</id>
      <url>http://scala-tools.org/repo-releases</url>
    </repository>
    <repository>
      <id>maven2-repository.dev.java.net</id>
      <name>Java.net repository</name>
      <url>http://download.java.net/maven/2/</url>
    </repository>
    <repository>
      <id>osgeo</id>
      <name>Open Source Geospatial Foundation Repository</name>
      <url>http://download.osgeo.org/webdav/geotools/org/geotools/</url>
    </repository>
  </repositories>

  <!-- Master properties (inherited by modules) -->
  <dependencies>
    <dependency>
      <groupId>org.scala-lang</groupId>
      <artifactId>scala-compiler</artifactId>
      <version>${scala.version}</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.scala-lang</groupId>
      <artifactId>scala-library</artifactId>
      <version>${scala.version}</version>
    </dependency>
    <dependency>
      <groupId>org.apache.derby</groupId>
      <artifactId>derby</artifactId>
      <version>10.4.2.0</version>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.4</version>
      <scope>test</scope>
    </dependency>
  <dependency>
     <groupId>org.geotools</groupId>
      <artifactId>gt-main</artifactId>
      <version>${geotools.version}</version>
    </dependency>  </dependencies>


  <!-- add in Scala compiler plugin -->
  <build>
    <sourceDirectory>src/main/scala</sourceDirectory>
    <testSourceDirectory>src/test/scala</testSourceDirectory>
    <plugins>
      <plugin>
        <groupId>org.scala-tools</groupId>
        <artifactId>maven-scala-plugin</artifactId>
        <version>2.9</version>
        <executions>
          <execution>
            <goals>
              <goal>compile</goal>
              <goal>testCompile</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <jvmArgs>
            <jvmArg>-Xmx1024m</jvmArg>
          </jvmArgs>
          <args>
            <!-- arg>-unchecked</arg -->
            <arg>-deprecation</arg>
            <arg>-Xno-varargs-conversion</arg>
          </args>
          <scalaVersion>${scala.version}</scalaVersion>
        </configuration>
      </plugin>
    </plugins>
  </build>

</project>
------------------------------------------------------------------------------
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to