Hi,

     I have an empty application, a main class with no code, and i want to
use the gt2-render jar file for my application. Now when i place the file
dependecy code in my pom file and build the application  i get the following
messages

Scanning for projects...
project-execute
[#process-resources]
[resources:resources]
Using default encoding to copy filtered resources.
[#compile]
Downloading:
http://lists.refractions.net/m2/xml-apis/xml-apis-xerces/2.7.1/xml-apis-xerces-2.7.1.jar
[ERROR]Runtime Exception thrown during execution
[ERROR]null
. 
My pom file is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<!-- =======================================================================    
        User Prototype Configuration File                                       
     
     =======================================================================
--><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>org.luong</groupId>
    <artifactId>displaydemo</artifactId>
    <packaging>jar</packaging>
    <version>1.0-SNAPSHOT</version>
    <name>displaydemo</name>
    <url>http://www.example.org</url>
    
    <!-- TODO: Change the library number dependency to be a soft link rather 
         than a hard link to 2.6-SNAPSHOT as it is here.                    
-->
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.geotools</groupId>
            <artifactId>gt2-main</artifactId>
            <version>2.4.5</version>
        </dependency>
        <dependency>
            <groupId>org.geotools</groupId>
            <artifactId>gt2-render</artifactId>
            <version>2.4.5</version>
        </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://maven.geotools.fr/repository</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>

Now when i take the gt2-render code out of my POM file and then build it, it
build fine. Can somebody tell me what is going on here please???

Thanks

-- 
View this message in context: 
http://www.nabble.com/Jar-problem-tp20051143p20051143.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to