[Gvsig_desarrolladores] Crear plugin en gvSIG desktop 2.0

AngelMVin lsc.anlu.mendoza en gmail.com
Mie Jul 3 07:48:47 CEST 2013


Hola que tal joaquin, ya intente varias veces realizar lo que muestran en los
links que me enviaste pero me sigue marcando el mismo error

agregue esto en mi pom.xml de org.gvsig./MiExtension/.main :

<dependency>
            <groupId>org.gvsig</groupId>
            <artifactId>org.gvsig.proj.lib.proj4j</artifactId>
            <version>1.0.0-SNAPSHOT</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.gvsig</groupId>
            <artifactId>org.gvsig.compat</artifactId>
            <classifier>se</classifier>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.gvsig</groupId>
            <artifactId>org.gvsig.fmap.geometry</artifactId>
            <classifier>impl</classifier>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.gvsig</groupId>
            <artifactId>org.gvsig.timesupport.lib.impl</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.gvsig</groupId>
            <artifactId>org.gvsig.fmap.dal</artifactId>
            <classifier>spi</classifier>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.gvsig</groupId>
            <artifactId>org.gvsig.fmap.dal</artifactId>
            <classifier>impl</classifier>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.gvsig</groupId>
            <artifactId>org.gvsig.fmap.dal.file</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.gvsig</groupId>
            <artifactId>org.gvsig.fmap.dal.file</artifactId>
            <classifier>store.dbf</classifier>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.gvsig</groupId>
            <artifactId>org.gvsig.fmap.dal.file</artifactId>
            <classifier>store.shp</classifier>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.gvsig</groupId>
            <artifactId>org.gvsig.symbology.lib.impl</artifactId>
            <scope>runtime</scope>
        </dependency>

esto es lo que tenia mi pom originalmente:

<?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>
	<artifactId>org.gvsig.integratedtools.main</artifactId>
	<packaging>jar</packaging>
	<name>org.gvsig.integratedtools.main</name>
	<parent>
		<groupId>org.gvsig</groupId>
		<artifactId>org.gvsig.integratedtools</artifactId>
		<version>1.0.0-SNAPSHOT</version>
	</parent>
	<dependencies>
		<dependency>
			<groupId>org.gvsig</groupId>
			<artifactId>org.gvsig.integratedtools.lib.api</artifactId>
		</dependency>
		<dependency>
			<groupId>org.gvsig</groupId>
			<artifactId>org.gvsig.integratedtools.lib.api</artifactId>
			<type>test-jar</type>
		</dependency>
		<dependency>
			<groupId>org.gvsig</groupId>
			<artifactId>org.gvsig.integratedtools.lib.impl</artifactId>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.gvsig</groupId>
			<artifactId>org.gvsig.integratedtools.swing.api</artifactId>
		</dependency>
		<dependency>
			<groupId>org.gvsig</groupId>
			<artifactId>org.gvsig.integratedtools.swing.impl</artifactId>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.gvsig</groupId>
			<artifactId>org.gvsig.metadata.lib.basic.api</artifactId>
			<scope>compile</scope>
		</dependency>
		<dependency>
			<groupId>org.gvsig</groupId>
			<artifactId>org.gvsig.tools.swing.api</artifactId>
			<type>jar</type>
			<scope>compile</scope>
		</dependency>
		<dependency>
			<groupId>org.gvsig</groupId>
			<artifactId>org.gvsig.fmap.control</artifactId>
			<scope>compile</scope>
		</dependency>
		<dependency>
			<groupId>org.gvsig</groupId>
			<artifactId>org.gvsig.fmap.dal</artifactId>
			<scope>compile</scope>
		</dependency>
		<dependency>
			<groupId>org.gvsig</groupId>
			<artifactId>org.gvsig.fmap.geometry</artifactId>
			<scope>compile</scope>
		</dependency>
		<dependency>
			<groupId>org.gvsig</groupId>
			<artifactId>org.gvsig.fmap.mapcontext</artifactId>
			<scope>compile</scope>
		</dependency>
		
	</dependencies>
</project>


y al ponerle al darle click derecho Run As -> a la clase main del proyecto
main marca este error:

22:31:20,340 INFO  [impl.DefaultServiceLoader.<init>()]
  Will use java.util.ServiceLoader to load services
22:31:20,343 INFO  [library.AbstractLibrariesInitializer.loadLibraries()]
  Loading libraries of classloaders:
22:31:20,344 DEBUG [impl.DefaultServiceLoader.postJDK16Load()]
  Using the java.util.ServiceLoader class to load the interface
org.gvsig.tools.library.Library implementations
22:31:20,406 INFO 
[library.AbstractLibrariesInitializer.addLibrariesOfClassLoader()]
  26 new libraries found in the classloader DEFAULT:
- org.gvsig.compat.CompatLibrary (API of org.gvsig.compat.CompatLibrary)
- org.gvsig.fmap.mapcontrol.MapControlLibrary (API of
org.gvsig.fmap.mapcontrol.MapControlLibrary)
- org.gvsig.fmap.mapcontrol.impl.DefaultMapControlLibrary (IMPL of
org.gvsig.fmap.mapcontrol.MapControlLibrary)
- org.gvsig.fmap.dal.DALLibrary (API of org.gvsig.fmap.dal.DALLibrary)
- org.gvsig.fmap.dal.store.memory.MemoryStoreLibrary (SERVICE of
org.gvsig.fmap.dal.DALLibrary)
- org.gvsig.fmap.geom.GeometryLibrary (API of
org.gvsig.fmap.geom.GeometryLibrary)
- org.gvsig.fmap.geom.operation.impl.DefaultGeometryOperationLibrary
(SERVICE of org.gvsig.fmap.geom.GeometryLibrary)
- org.gvsig.fmap.mapcontext.MapContextLibrary (API of
org.gvsig.fmap.mapcontext.MapContextLibrary)
- org.gvsig.fmap.mapcontext.impl.MapContextImplLibrary (IMPL of
org.gvsig.fmap.mapcontext.MapContextLibrary)
- org.gvsig.fmap.geom.operation.MapContextGeomOperationsLibrary (SERVICE of
org.gvsig.fmap.mapcontext.MapContextLibrary)
- org.gvsig.i18n.MessagesLibrary (SERVICE of org.gvsig.tools.ToolsLibrary)
- org.gvsig.integratedtools.IntegratedToolsLibrary (API of
org.gvsig.integratedtools.IntegratedToolsLibrary)
- org.gvsig.metadata.MetadataLibrary (API of
org.gvsig.metadata.MetadataLibrary)
- org.gvsig.metadata.lib.basic.impl.BasicMetadataLibrary (IMPL of
org.gvsig.metadata.MetadataLibrary)
- org.cresques.ProjectionLibrary (API of org.cresques.ProjectionLibrary)
- org.gvsig.timesupport.TimeSupportLibrary
- org.gvsig.tools.ToolsLibrary (API of org.gvsig.tools.ToolsLibrary)
- org.gvsig.tools.persistence.xml.XMLPersistenceLibrary (API of
org.gvsig.tools.persistence.xml.XMLPersistenceLibrary)
- org.gvsig.integratedtools.impl.IntegratedToolsDefaultImplLibrary (IMPL of
org.gvsig.integratedtools.IntegratedToolsLibrary)
- org.gvsig.integratedtools.swing.IntegratedToolsSwingLibrary (API of
org.gvsig.integratedtools.swing.IntegratedToolsSwingLibrary)
-
org.gvsig.integratedtools.swing.impl.IntegratedToolsSwingDefaultImplLibrary
(IMPL of org.gvsig.integratedtools.swing.IntegratedToolsSwingLibrary)
- org.gvsig.tools.swing.api.ToolsSwingLibrary (API of
org.gvsig.tools.swing.api.ToolsSwingLibrary)
- org.gvsig.tools.swing.impl.ToolsSwingDefaultImplLibrary (IMPL of
org.gvsig.tools.swing.api.ToolsSwingLibrary)
- org.gvsig.tools.swing.serv.field.ToolsSwingDefaultFieldImplLibrary
(SERVICE of org.gvsig.tools.swing.api.ToolsSwingLibrary)
- org.gvsig.tools.swing.serv.jform.ToolsSwingDefaultDynObjectImplLibrary
(SERVICE of org.gvsig.tools.swing.api.ToolsSwingLibrary)
- org.gvsig.tools.IverUtilesLibrary (API of
org.gvsig.tools.IverUtilesLibrary)
22:31:20,409 INFO  [library.AbstractLibrariesInitializer.logLibraries()]
  Total libraries to initialize (26 of 26):
- org.gvsig.tools.ToolsLibrary (API of org.gvsig.tools.ToolsLibrary)
- org.gvsig.i18n.MessagesLibrary (SERVICE of org.gvsig.tools.ToolsLibrary)
- org.cresques.ProjectionLibrary (API of org.cresques.ProjectionLibrary)
- org.gvsig.compat.CompatLibrary (API of org.gvsig.compat.CompatLibrary)
- org.gvsig.timesupport.TimeSupportLibrary
- org.gvsig.fmap.geom.GeometryLibrary (API of
org.gvsig.fmap.geom.GeometryLibrary)
- org.gvsig.fmap.geom.operation.impl.DefaultGeometryOperationLibrary
(SERVICE of org.gvsig.fmap.geom.GeometryLibrary)
- org.gvsig.metadata.MetadataLibrary (API of
org.gvsig.metadata.MetadataLibrary)
- org.gvsig.metadata.lib.basic.impl.BasicMetadataLibrary (IMPL of
org.gvsig.metadata.MetadataLibrary)
- org.gvsig.fmap.dal.DALLibrary (API of org.gvsig.fmap.dal.DALLibrary)
- org.gvsig.fmap.dal.store.memory.MemoryStoreLibrary (SERVICE of
org.gvsig.fmap.dal.DALLibrary)
- org.gvsig.fmap.mapcontext.MapContextLibrary (API of
org.gvsig.fmap.mapcontext.MapContextLibrary)
- org.gvsig.fmap.mapcontext.impl.MapContextImplLibrary (IMPL of
org.gvsig.fmap.mapcontext.MapContextLibrary)
- org.gvsig.fmap.geom.operation.MapContextGeomOperationsLibrary (SERVICE of
org.gvsig.fmap.mapcontext.MapContextLibrary)
- org.gvsig.fmap.mapcontrol.MapControlLibrary (API of
org.gvsig.fmap.mapcontrol.MapControlLibrary)
- org.gvsig.fmap.mapcontrol.impl.DefaultMapControlLibrary (IMPL of
org.gvsig.fmap.mapcontrol.MapControlLibrary)
- org.gvsig.integratedtools.IntegratedToolsLibrary (API of
org.gvsig.integratedtools.IntegratedToolsLibrary)
- org.gvsig.integratedtools.impl.IntegratedToolsDefaultImplLibrary (IMPL of
org.gvsig.integratedtools.IntegratedToolsLibrary)
- org.gvsig.integratedtools.swing.IntegratedToolsSwingLibrary (API of
org.gvsig.integratedtools.swing.IntegratedToolsSwingLibrary)
-
org.gvsig.integratedtools.swing.impl.IntegratedToolsSwingDefaultImplLibrary
(IMPL of org.gvsig.integratedtools.swing.IntegratedToolsSwingLibrary)
- org.gvsig.tools.IverUtilesLibrary (API of
org.gvsig.tools.IverUtilesLibrary)
- org.gvsig.tools.persistence.xml.XMLPersistenceLibrary (API of
org.gvsig.tools.persistence.xml.XMLPersistenceLibrary)
- org.gvsig.tools.swing.api.ToolsSwingLibrary (API of
org.gvsig.tools.swing.api.ToolsSwingLibrary)
- org.gvsig.tools.swing.impl.ToolsSwingDefaultImplLibrary (IMPL of
org.gvsig.tools.swing.api.ToolsSwingLibrary)
- org.gvsig.tools.swing.serv.field.ToolsSwingDefaultFieldImplLibrary
(SERVICE of org.gvsig.tools.swing.api.ToolsSwingLibrary)
- org.gvsig.tools.swing.serv.jform.ToolsSwingDefaultDynObjectImplLibrary
(SERVICE of org.gvsig.tools.swing.api.ToolsSwingLibrary)
22:31:20,409 INFO  [tools.ToolsLibrary.initialize()]
  Initializing library 'org.gvsig.tools.ToolsLibrary'.
22:31:20,428 INFO  [i18n.MessagesLibrary.initialize()]
  Initializing library 'org.gvsig.i18n.MessagesLibrary'.
22:31:20,428 INFO  [cresques.ProjectionLibrary.initialize()]
  Initializing library 'org.cresques.ProjectionLibrary'.
22:31:20,429 INFO  [compat.CompatLibrary.initialize()]
  Initializing library 'org.gvsig.compat.CompatLibrary'.
22:31:20,429 INFO  [timesupport.TimeSupportLibrary.initialize()]
  Initializing library 'org.gvsig.timesupport.TimeSupportLibrary'.
22:31:20,429 INFO  [geom.GeometryLibrary.initialize()]
  Initializing library 'org.gvsig.fmap.geom.GeometryLibrary'.
22:31:20,429 INFO  [impl.DefaultGeometryOperationLibrary.initialize()]
  Initializing library
'org.gvsig.fmap.geom.operation.impl.DefaultGeometryOperationLibrary'.
22:31:20,429 INFO  [metadata.MetadataLibrary.initialize()]
  Initializing library 'org.gvsig.metadata.MetadataLibrary'.
22:31:20,429 INFO  [impl.BasicMetadataLibrary.initialize()]
  Initializing library
'org.gvsig.metadata.lib.basic.impl.BasicMetadataLibrary'.
22:31:20,437 INFO  [dal.DALLibrary.initialize()]
  Initializing library 'org.gvsig.fmap.dal.DALLibrary'.
22:31:20,437 INFO  [memory.MemoryStoreLibrary.initialize()]
  Initializing library 'org.gvsig.fmap.dal.store.memory.MemoryStoreLibrary'.
22:31:20,437 INFO  [mapcontext.MapContextLibrary.initialize()]
  Initializing library 'org.gvsig.fmap.mapcontext.MapContextLibrary'.
22:31:20,450 INFO  [impl.MapContextImplLibrary.initialize()]
  Initializing library
'org.gvsig.fmap.mapcontext.impl.MapContextImplLibrary'.
22:31:20,462 INFO  [operation.MapContextGeomOperationsLibrary.initialize()]
  Initializing library
'org.gvsig.fmap.geom.operation.MapContextGeomOperationsLibrary'.
22:31:20,462 INFO  [mapcontrol.MapControlLibrary.initialize()]
  Initializing library 'org.gvsig.fmap.mapcontrol.MapControlLibrary'.
22:31:20,463 INFO  [impl.DefaultMapControlLibrary.initialize()]
  Initializing library
'org.gvsig.fmap.mapcontrol.impl.DefaultMapControlLibrary'.
22:31:20,464 INFO  [integratedtools.IntegratedToolsLibrary.initialize()]
  Initializing library 'org.gvsig.integratedtools.IntegratedToolsLibrary'.
22:31:20,464 INFO  [impl.IntegratedToolsDefaultImplLibrary.initialize()]
  Initializing library
'org.gvsig.integratedtools.impl.IntegratedToolsDefaultImplLibrary'.
22:31:20,467 INFO  [swing.IntegratedToolsSwingLibrary.initialize()]
  Initializing library
'org.gvsig.integratedtools.swing.IntegratedToolsSwingLibrary'.
22:31:20,467 INFO 
[impl.IntegratedToolsSwingDefaultImplLibrary.initialize()]
  Initializing library
'org.gvsig.integratedtools.swing.impl.IntegratedToolsSwingDefaultImplLibrary'.
22:31:20,470 INFO  [tools.IverUtilesLibrary.initialize()]
  Initializing library 'org.gvsig.tools.IverUtilesLibrary'.
22:31:20,470 INFO  [xml.XMLPersistenceLibrary.initialize()]
  Initializing library
'org.gvsig.tools.persistence.xml.XMLPersistenceLibrary'.
22:31:20,483 INFO  [api.ToolsSwingLibrary.initialize()]
  Initializing library 'org.gvsig.tools.swing.api.ToolsSwingLibrary'.
22:31:20,484 INFO  [impl.ToolsSwingDefaultImplLibrary.initialize()]
  Initializing library
'org.gvsig.tools.swing.impl.ToolsSwingDefaultImplLibrary'.
22:31:20,495 INFO  [field.ToolsSwingDefaultFieldImplLibrary.initialize()]
  Initializing library
'org.gvsig.tools.swing.serv.field.ToolsSwingDefaultFieldImplLibrary'.
22:31:20,496 INFO 
[jform.ToolsSwingDefaultDynObjectImplLibrary.initialize()]
  Initializing library
'org.gvsig.tools.swing.serv.jform.ToolsSwingDefaultDynObjectImplLibrary'.
22:31:20,496 INFO  [tools.ToolsLibrary.postInitialize()]
  PostInitializing library 'org.gvsig.tools.ToolsLibrary'.
22:31:20,496 INFO  [i18n.MessagesLibrary.postInitialize()]
  PostInitializing library 'org.gvsig.i18n.MessagesLibrary'.
22:31:20,496 INFO  [cresques.ProjectionLibrary.postInitialize()]
  PostInitializing library 'org.cresques.ProjectionLibrary'.
*Exception in thread "main" An instance of ICRSFactory has not been
registered in the CRSFactory
	at
org.cresques.ProjectionLibrary.doPostInitialize(ProjectionLibrary.java:50)
	at
org.gvsig.tools.library.AbstractLibrary.postInitialize(AbstractLibrary.java:311)
	at
org.gvsig.tools.library.AbstractLibrariesInitializer.initializeLibraries(AbstractLibrariesInitializer.java:198)
	at
org.gvsig.tools.library.AbstractLibrariesInitializer.postInitialize(AbstractLibrariesInitializer.java:103)
	at
org.gvsig.tools.library.AbstractLibrariesInitializer.postInitialize(AbstractLibrariesInitializer.java:93)
	at
org.gvsig.tools.library.AbstractLibrariesInitializer.fullInitialize(AbstractLibrariesInitializer.java:109)
	at org.gvsig.integratedtools.main.Main.main(Main.java:96)*


y dando click derecho al pom.xml Run As -> Maven Build marca este error
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 0.292s
[INFO] Finished at: Tue Jul 02 22:47:08 PDT 2013
[INFO] Final Memory: 4M/15M
[INFO]
------------------------------------------------------------------------
[ERROR] No goals have been specified for this build. You must specify a
valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or
<plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available
lifecycle phases are: validate, initialize, generate-sources,
process-sources, generate-resources, process-resources, compile,
process-classes, generate-test-sources, process-test-sources,
generate-test-resources, process-test-resources, test-compile,
process-test-classes, test, prepare-package, package, pre-integration-test,
integration-test, post-integration-test, verify, install, deploy, pre-clean,
clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifiedException


que puede ser, o que estare haciendo mal??



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Crear-plugin-en-gvSIG-desktop-2-0-tp5061846p5063722.html
Sent from the gvSIG desarrolladores mailing list archive at Nabble.com.


Más información sobre la lista de distribución gvSIG_desarrolladores