Hello everybody, I’m having some issues while building my project, it runs 
perfectly in eclipse or in netbeans but when I build it to get the jar and run 
the jar I’m having some troubles, it seems to add all the dependencies but when 
I try to add a .shp it add it but it won’t draw it. My pom.xml is this:

<!—— START ———!>
<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/xsd/maven-4.0.0.xsd";>
  <modelVersion>4.0.0</modelVersion>

  <groupId>com.mycompany</groupId>
  <artifactId>shiftGis</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>jar</packaging>

  <name>shiftGis</name>
  <url>http://geotools.org</url>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <geotools.version>12-RC1</geotools.version>
  </properties>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.11</version>
      <scope>test</scope>
    </dependency>
    <dependency>
            <groupId>org.geotools</groupId>
            <artifactId>gt-shapefile</artifactId>
            <version>${geotools.version}</version>
    </dependency>
    <dependency>
            <groupId>org.geotools</groupId>
            <artifactId>gt-swing</artifactId>
            <version>${geotools.version}</version>
    </dependency>
    <dependency>
        <groupId>org.geotools</groupId>
        <artifactId>gt-epsg-hsql</artifactId>
        <version>${geotools.version}</version>
  </dependency>
  </dependencies>
  
  <repositories>
        <repository>
            <id>maven2-repository.dev.java.net</id>
            <name>Java.net repository</name>
            <url>https://maven.java.net/content/groups/public/</url>
        </repository>
        <repository>
            <id>osgeo</id>
            <name>Open Source Geospatial Foundation Repository</name>
            <url>http://download.osgeo.org/webdav/geotools/</url>
        </repository>
    </repositories>
    
    <build>
    <plugins>
        <plugin>
              <artifactId>maven-compiler-plugin</artifactId>
              <version>2.3.2</version>
              <configuration>
                  <encoding>UTF-8</encoding>
                  <target>1.5</target>
                  <source>1.5</source>
              </configuration>
          </plugin>
          <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-shade-plugin</artifactId>
              <version>1.3.1</version>
              <executions>
                  <execution>
                      <phase>package</phase>
                      <goals>
                          <goal>shade</goal>
                      </goals>
                      <configuration>
                          <transformers>
                              <!-- This bit sets the main class for the 
executable jar as you otherwise -->
                              <!-- would with the assembly plugin               
                        -->
                              <transformer 
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                                  <manifestEntries>
                                      
<Main-Class>com.mycompany.shiftgis.App</Main-Class>
                                  </manifestEntries>
                              </transformer>
                              <!-- This bit merges the various GeoTools 
META-INF/services files         -->
                              <transformer 
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
                              
                          </transformers>
                      </configuration>
                  </execution>
              </executions>
          </plugin>
  </plugins>
    </build>
    
</project>

<!———— END —————!>

The error that prompts starts as:


Oct 13, 2014 11:54:47 PM org.geotools.factory.FactoryRegistry scanForPlugins
    WARNING: Can't load a service for category "Function". Cause is 
"ServiceConfigurationError: org.opengis.filter.expression.Function: Provider 
org.geotools.styling (...) 
coverage.FilterFunction_isCoverageorg.geotools.filter.function.PropertyExistsFunction
 not found".
    java.util.ServiceConfigurationError: 
org.opengis.filter.expression.Function: Provider 
org.geotools.styling.visitor.RescaleToPixelsFunctionorg.geotools.resources.coverage.FilterFunction_isCoverageorg.geotools.filter.function.PropertyExistsFunction
 not found

As you can see it seems it can’t find some geotools dependencies, can somebody 
please help me?? I’ve been stuck in this for a week :(

Thank you very much!!! 

Ing. J Eduardo Palacio Reyna
Ingeniero en Sistemas y Tecnologías de la Información
juan.palaci...@udlap.mx
Teléfono: (044) 222 58 66 60 2



------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to