title: SchemaException in java
body: <p>I have found a useful tool to convert .csv files into shape files with <a href="http://docs.geotools.org/latest/userguide/tutorial/feature/csv2shp.html#create-a-shapefile-from-a-featurecollection" rel="noreferrer">geotools</a>: </p>
  
  <p>But I have a problem running it, I get following maven error: </p>
  
  <blockquote>
    <p>Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec
    (default-cli) on project tutorial: Command execution failed. Process
    exited with an error: 1 (Exit value: 1)</p>
  </blockquote>
  
  <p>And an error in this line:</p>
  
  <pre><code>final SimpleFeatureType TYPE = DataUtilities.createType(
                  "Location",                   // &lt;- the name for our feature type
                  "location:Point:srid=4326," + // &lt;- the geometry attribute: Point type
                  "name:String"         // &lt;- a String attribute
          );
  </code></pre>
  
  <p>The error:</p>
  
  <blockquote>
    <p>Exception in thread "main" org.geotools.feature.SchemaException: Error
    decoding srs</p>
  </blockquote>
  
  <p>My POM file is this:</p>
  
  <pre><code>&lt;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"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;org.geotools&lt;/groupId&gt;
      &lt;artifactId&gt;tutorial&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;jar&lt;/packaging&gt;
      &lt;name&gt;tutorial&lt;/name&gt;
      &lt;url&gt;http://maven.apache.org&lt;/url&gt;
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;geotools.version&gt;11-SNAPSHOT&lt;/geotools.version&gt;
      &lt;/properties&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;3.8.1&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.geotools&lt;/groupId&gt;
              &lt;artifactId&gt;gt-shapefile&lt;/artifactId&gt;
              &lt;version&gt;${geotools.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.geotools&lt;/groupId&gt;
              &lt;artifactId&gt;gt-swing&lt;/artifactId&gt;
              &lt;version&gt;${geotools.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
              &lt;artifactId&gt;exec-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.2.1&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
      &lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;maven3-repository.dev.java.net&lt;/id&gt;
              &lt;name&gt;Java.net repository&lt;/name&gt;
              &lt;url&gt;http://download.java.net/maven/3&lt;/url&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
              &lt;id&gt;osgeo&lt;/id&gt;
              &lt;name&gt;Open Source Geospatial Foundation Repository&lt;/name&gt;
              &lt;url&gt;http://download.osgeo.org/webdav/geotools/&lt;/url&gt;
          &lt;/repository&gt;
      &lt;repository&gt; &lt;!--Add the snapshot repository here--&gt;
          &lt;snapshots&gt;
              &lt;enabled&gt;true&lt;/enabled&gt;
          &lt;/snapshots&gt;
          &lt;id&gt;opengeo&lt;/id&gt;
          &lt;name&gt;OpenGeo Maven Repository&lt;/name&gt;
          &lt;url&gt;http://repo.opengeo.org&lt;/url&gt;
      &lt;/repository&gt;
    &lt;/repositories&gt;    
  &lt;/project&gt;
  </code></pre>
  
  <p>I am using Maven 3.1 on Win8.1.</p>
  
  <p>I hope someone can help me!</p>