Hi,

there is a project called JAK http://code.google.com/p/javaapiforkml/ which
generates a java library for accessing and generating KML.
It uses the KML schema definition and extensions (kml22gx.xsd, ogckml22.xsd,
...*.xsd) as an input and maven for the building process.
The SVN version already contains a generated library (java source files).
Since the project is of 2009 and in the meantime the schemas have been
extended, a lot of people have tried to build a new version of the library
(using new versions of the *.xsd files).
It seems that all of them have more or less failed. I tried myself and after
circumventing some JAXB issue, I am now stuck with maven.
As I have no experience with it, I have a hard time to really find out what
is going wrong.
The project or parts of it use ant (maven-antrun-plugin) to accomplish some
tasks. The following error is raised when doing a

>mvn install -e
...
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-antrun-plugin:1.3:run (xjc-invocation) on
project JavaAPIforKml: An Ant BuildException has occured: taskdef A class
needed by class com.sun.tools.xjc.XJCTask cannot be found:
org/apache/tools/ant/DynamicConfigurator -> [Help 1]

So it seems the maven ant integration is somehow broken as parts of ant
cannot be loaded due to unknown reasons.
How to further dig down to solve this issue?

Thanks
panam

Tried maven 2+3, the error stays the same.
>mvn -version
Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Java version: 1.6.0_24
Java home: C:\Program Files\Java\current\jre
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows"


POM.xml:


        4.0.0
        de.micromata.jak
        JavaAPIforKml
        2.2.0-SNAPSHOT
        a Java API for Kml
        This is JavaAPIforKMml, Micromata's library for use with applications 
that
want to parse, generate and operate on KML. It is an implementation of the
OGC KML 2.2 standard. It is written entirely in Java and makes heavy use of
JAXB.
        jar
        http://code.google.com/p/javaapiforkml/
        
                Micromata GmbH
                http://micromata.de
        
        
                scm:svn:http://javaapiforkml.googlecode.com/svn/trunk/
                scm:svn:https://javaapiforkml.googlecode.com/svn/trunk/
        
        
                
                        bachmann.florian
                        Florian Bachmann
                        f.bachm...@micromata.de
                        Micromata GmbH
                        http://www.micromata.com
                        -1
                        
                                architect
                                developer
                        
                
                
                        schnitzelhugo
                        Bernd Kratz
                        b.kr...@micromata.de
                        Micromata GmbH
                        http://www.micromata.com
                        -1
                        
                                developer
                        
                
                
                        landgraf1967
                        Thomas Landgraf
                        t...@micromata.de
                        Micromata GmbH
                        http://www.micromata.com
                        -1
                        
                                developer
                        
                
        
        
                
                        BSD license
                        /LICENSE.txt
                        All rights reserved.
                        manual
                
        
        
                ${project.artifactId}
                
                        
                        

                                org.apache.maven.plugins
                                maven-antrun-plugin
                                
                                        
                                                xjc-invocation
                                                generate-sources
                                                
                                                        
                                                                
                                                                
                                                                
                                                                
                                                                
                                                                
                                                                generate JAK 
from OGC's KML schema
                                                                
                                                                
                                                                        
                                                                
                                                                
                                                                        
                                                                
                                                                
                                                                        
                                                                        
                                                                
                                                        
                                                
                                                
                                                        run
                                                
                                        
                                
                        

                        
                                org.apache.maven.plugins
                                maven-antrun-plugin
                        
                        
                                org.apache.maven.plugins
                                maven-compiler-plugin
                                
                                        1.5
                                        1.5
                                        UTF-8
                                
                        
                        
                                org.apache.maven.plugins
                                maven-surefire-plugin
                                
                                        true
                                
                        
                        
                                maven-assembly-plugin
                        
                        
                                org.apache.maven.plugins
                                maven-source-plugin
                                
                                        
                                                package
                                                
                                                        jar
                                                
                                        
                                
                        
                
                
                        
                                org.jvnet.wagon-svn
                                wagon-svn
                                1.9
                        
                
        
        
                
                        com.sun.xml.bind
                        jaxb-impl
                        2.2
                
                
                        com.sun.xml.bind
                        jaxb-xjc
                        2.2
                
                
                        log4j
                        log4j
                        1.2.14
                        test
                
                
                        junit
                        junit
                        4.5
                        test
                
                
                        xmlunit
                        xmlunit
                        1.2
                
                
                
                        de.micromata.jak
                        XJCPluginJavaApiforKml
                        1.0-SNAPSHOT
                        jar
                        compile
                

        

        
                
                        java.net-m2-repository
                        java-net:/maven2-repository/trunk/repository/
                
        

        
                
                        maven2-repository.dev.java.net
                        Java.net Maven 2 Repository
                        http://download.java.net/maven/2
                        default
                        
                                true
                        
                
                
                        maven-repository.dev.java.net
                        Java.net Maven 1 Repository (legacy)
                        http://download.java.net/maven/1
                        legacy
                        
                                true
                        
                
        
        
                
                        maven2-repository.dev.java.net
                        Java.net Maven 2 Repository
                        http://download.java.net/maven/2
                
                
                        maven-repository.dev.java.net
                        Java.net Maven 1 Repository (legacy)
                        http://download.java.net/maven/1
                        legacy
                
        
        
                
                        
                                org.apache.maven.plugins
                                maven-javadoc-plugin
                                2.5
                                
                                
                                
                                        
                                                html
                                                
                                                        My API for 
${project.name} ${project.version}
                                                        My API for 
${project.name} ${project.version}
                                                
                                                
                                                        javadoc
                                                
                                        
                                        
                                                test-html
                                                
                                                        My Test API for 
${project.name} ${project.version}
                                                        My Test API for 
${project.name}
                                                                
${project.version}
                                                
                                                
                                                        test-javadoc
                                                
                                        
                                
                        
                        
                                org.apache.maven.plugins
                                maven-changelog-plugin
                                2.1
                        
                        
                                org.apache.maven.plugins
                                maven-source-plugin
                                2.1
                        
                
        
        
                
                        clover.all
                        
                                
                                        
                                                com.atlassian.maven.plugins
                                                maven-clover2-plugin
                                                2.5.1
                                                
                                                        
${user.home}/.clover/${groupId}-${artifactId}/clover.snapshot
                                                        
                                                        
                                                        
                                                                
**/de/micromata/opengis/kml/v_2_2_0/annotations/**
                                                                
**/de/micromata/opengis/kml/v_2_2_0/atom/**
                                                                
**/de/micromata/opengis/kml/v_2_2_0/xal/**
                                                                
**/de/micromata/jak/**
                                                                
**/de/micromata/jak/jugh/**
                                                                
**/de/micromata/jak/incubator/**
                                                                
**/de/micromata/jak/internal/**
                                                        
                                                        true
                                                        true
                                                        true
                                                
                                                
                                                        
                                                                clover
                                                                
                                                                        setup
                                                                        optimize
                                                                        snapshot
                                                                
                                                        
                                                        
                                                                verify
                                                                
                                                                        clover
                                                                        log
                                                                
                                                        
                                                
                                        
                                
                        
                
        



--
View this message in context: 
http://maven.40175.n5.nabble.com/Newbie-needs-help-with-ant-plugin-tp4274393p4274393.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to