Useless to hide, I'm more the kind of tourist Java coder and not that used to maven, spring etc.
I'm writing a plugin for GeoServer for a new PPIO. With the implemtation details at the and of this posting, I'm at a point where: mvn -Pwps -Pkml eclipse:eclipse creates my eclipse project and mvn -Pwps -Pdxf -Pkml install builds my jar file in ~/.m2/repository/org/geoserver/kml/2.1-SNAPSHOT/. The PPIO in this jar can be deployed on a separate GeoServer instance and shows up correctly in the WPS Builder pulldowns. So far, so good... Anyway, I would like to debug it and if I start geoserver as described in http://docs.geoserver.org/2.1.x/en/developer/quickstart/index.html, this PPIO is not loaded. How can I hint eclipse/jetty to load my jar? Thanks, Peter Implementation details: I've changed community/pom.xml: phopfgartner@pc-phopfgartner:~/devel/geoserver-2.1.x/src$ svn diff community/pom.xml Index: community/pom.xml =================================================================== --- community/pom.xml (revision 17259) +++ community/pom.xml (working copy) @@ -82,6 +82,12 @@ </modules> </profile> <profile> + <id>kml</id> + <modules> + <module>kml</module> + </modules> + </profile> + <profile> <id>scriptlet</id> <modules> <module>scriptlet</module> created the hierarchy under community/kml created the community/kml/pom.xml like: <?xml version="1.0" encoding="ISO-8859-1"?> <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> <!-- set parent pom to community pom --> <parent> <groupId>org.geoserver</groupId> <artifactId>community</artifactId> <version>2.1-SNAPSHOT</version> </parent> <groupId>org.geoserver</groupId> <artifactId>kml</artifactId> <packaging>jar</packaging> <version>2.1-SNAPSHOT</version> <name>KML input and output format</name> <dependencies> <dependency> <groupId>org.geoserver.extension</groupId> <artifactId>wps-core</artifactId> <version>${project.version}</version> <!-- <classifier>tests</classifier> --> <!-- <scope>test</scope> --> </dependency> <dependency> <groupId>org.geoserver</groupId> <artifactId>main</artifactId> <version>${project.version}</version> <classifier>tests</classifier> <scope>test</scope> </dependency> <dependency> <groupId>org.geotools</groupId> <artifactId>gt-xsd-kml</artifactId> <version>2.7-SNAPSHOT</version> </dependency> <dependency> <groupId>com.mockrunner</groupId> <artifactId>mockrunner</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>xmlunit</groupId> <artifactId>xmlunit</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <testResources> <testResource> <directory>src/test/resources</directory> </testResource> </testResources> </build> </project> Created kml/src/main/resources/applicationContext.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <bean id="KMLPPIO" class="org.geoserver.wps.ppio.KMLPPIO"> <!-- <constructor-arg ref="wpsResourceManager"/> --> </bean> </beans> -- Peter Hopfgartner web : www.r3-gis.com ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
