My current POM is here for referrence :

<?xml version="1.0" encoding="UTF-8"?>
<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>com.mycompany</groupId>
  <artifactId>Map_AppV3</artifactId>
  <packaging>jar</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>Map_AppV3</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>org.geotools</groupId>
            <artifactId>gt-main</artifactId>
            <version>2.5-RC1</version>
        </dependency>

  <dependency>
            <groupId>org.geotools</groupId>
            <artifactId>geotools</artifactId>
            <version>2.5.5</version>
        </dependency>

         <dependency>
            <groupId>org.geotools</groupId>
            <artifactId>gt-shapefile</artifactId>
            <version>2.5-RC1</version>
        </dependency>
    
    <dependency>
            <groupId>org.geotools</groupId>
            <artifactId>gt-mappane</artifactId>
            <version>2.5-RC1</version>
        </dependency>
        
         <!-- epsg-hsql is the European Petroleum Survey Group and contains
cordinate systems
          and is used to send points or features with a cordinate system
code and the receiving app
          knows where to place the features or points on the map-->
    <dependency>
            <groupId>org.geotools</groupId>
            <artifactId>gt-epsg-hsql</artifactId>
            <version>2.5-RC1</version>
        </dependency>
        
    <dependency>
            <groupId>com.vividsolutions</groupId>
            <artifactId>jts</artifactId>
            <version>1.9</version>
        </dependency>
        
         <dependency>
            <groupId>org.geotools</groupId>
            <artifactId>gt-render</artifactId>
            <version>2.5.1</version>
            <scope>compile</scope>
        </dependency>
        
         <dependency>
            <groupId>org.geotools.xsd</groupId>
            <artifactId>gt-xsd-sld</artifactId>
            <version>2.5.6</version>
            <scope>compile</scope>
        </dependency>
        
         
         <dependency>
            <groupId>org.geotools</groupId>
            <artifactId>gt-xml</artifactId>
            <version>2.5.1</version>
            <scope>compile</scope>
        </dependency>

         
     
  </dependencies>
  
  <build>
      <!--finalName>gt-foo-1.0-SNAPSHOT</finalName-->
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <configuration>
                    <archive>
                        <manifest>
                           
<mainClass>org.example.geotools.base.DemoBase</mainClass>
                            <addClasspath>true</addClasspath>
                        </manifest>
                    </archive>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.0.2</version>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                </configuration>
            </plugin>
        </plugins>
        <resources>
            <resource>
                <directory>.</directory>
                <includes>
                    <include>LICENSE*</include>
                    <include>*README*</include>
                </includes>
            </resource>
            <resource>
          <!-- targetPath>data</targetPath -->
                <directory>src/main/resources</directory>
                <includes>
                    <include>**</include>
                </includes>
            </resource>
        </resources>
    </build>
    
    <!-- =========================================================== -->
 <!--     Repositories (ibiblio, refractions...).                 -->
 <!--     This is where Maven looks for dependencies.             -->
 <!-- =========================================================== -->
    <repositories>
        <repository>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            <id>ibiblio</id>
            <name>Ibiblio - the public's library and digital archive</name>
            <url>http://www.ibiblio.org/maven2</url>
        </repository>
        <repository>
            <id>refractions</id>
            <name>Refractions Research Maven 2 Repository</name>
            <url>http://lists.refractions.net/m2</url>
        </repository>
        <repository>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            <id>geotools</id>
            <name>Geotools repository</name>
            <url>http://download.osgeo.org/webdav/geotools/</url>
        </repository>
        <repository>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            <id>central</id>
            <name>Maven Repository Switchboard</name>
            <url>http://repo1.maven.org/maven2</url>
        </repository>
    </repositories>
</project>





Hi, thanks for that Andrea, it took me quite a while to look for the jar
file which i managed to download.

As i built my app, it downloaded the jar files, but came to a build failure
as i got this:

[ERROR]Transitive dependency resolution for scope: compile has failed for
your project.
[ERROR]Error message: Missing:
[ERROR]----------
[ERROR]1) org.geotools:geotools:jar:2.5.5
[ERROR]  Try downloading the file manually from the project website.
[ERROR]  Then, install it using the command: 
[ERROR]      mvn install:install-file -DgroupId=org.geotools
-DartifactId=geotools -Dversion=2.5.5 -Dpackaging=jar -Dfile=/path/to/file
[ERROR]  Alternatively, if you host your own repository you can deploy the
file there: 
[ERROR]      mvn deploy:deploy-file -DgroupId=org.geotools
-DartifactId=geotools -Dversion=2.5.5 -Dpackaging=jar -Dfile=/path/to/file
-Durl=[url] -DrepositoryId=[id]
[ERROR]  Path to dependency: 
[ERROR]          1) com.mycompany:Map_AppV3:jar:1.0-SNAPSHOT
[ERROR]          2) org.geotools:geotools:jar:2.5.5
[ERROR]----------
[ERROR]1 required artifact is missing.
[ERROR]for artifact: 
[ERROR]  com.mycompany:Map_AppV3:jar:1.0-SNAPSHOT
[ERROR]from the specified remote repositories:
[ERROR]  geotools (http://download.osgeo.org/webdav/geotools/),
[ERROR]  ibiblio (http://www.ibiblio.org/maven2),
[ERROR]  central (http://repo1.maven.org/maven2),
[ERROR]  refractions (http://lists.refractions.net/m2)
[ERROR]Group-Id: com.mycompany
[ERROR]Artifact-Id: Map_AppV3
[ERROR]Version: 1.0-SNAPSHOT
[ERROR]From file:
C:\Users\Luong\Documents\NetBeansProjects\Map_Project\Map_AppV3\pom.xml


On the repo
site(http://download.osgeo.org/webdav/geotools/org/geotools/geotools/2.5.5/)
, is their a corresponding jar file because i can't seem to find it.
Although i have downloaded all of the zip files on the geotools site, do i
need to change one of them to a jar folder? and which one?

Thanks again for your assistant.

 
-- 
View this message in context: 
http://n2.nabble.com/Re%3A-SLD-XML-TUT-Query-tp3046875p3050317.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to