gvSIG bugs #2200

Problema al crear un plugin

Added by José Vicente Higón over 10 years ago. Updated over 10 years ago.

Status:Closed% Done:

0%

Priority:NormalSpent time:-
Assignee:Joaquín del Cerro Murciano
Category:Developer tools
Target version:2.1.0-2221-testing
Severity: Add-on version:
gvSIG version:2.1.0 Add-on build:
gvSIG build:2218 Add-on resolve version:
Operative System:Linux Add-on resolve build:
Keywords: Proyecto:
Has patch:No Hito:
Add-on name:Unknown

Description

No puede crearse un plugin con el menú Herramientas->Development->Create Plugin.
El problema parece ser que es porque no encuentra el fichero gvSIG/extensiones/org.gvsig.mkmvnproject.app.mainplugin/templates/landregistryviewer.zip
La excepción completa es:

Caused by: /home/jvhigon/apps/gvSIG-2.1.0_2216/gvSIG/extensiones/org.gvsig.mkmvnproject.app.mainplugin/scripts/landregistryviewer.xml:78: src '/home/jvhigon/apps/gvSIG-2.1.0_2216/gvSIG/extensiones/org.gvsig.mkmvnproject.app.mainplugin/templates/landregistryviewer.zip' doesn't exist.
    at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:128)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:390)
    at org.apache.tools.ant.Target.performTasks(Target.java:411)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
    at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
    ... 71 more
 WARN [Create plugin console update thread] (CreatePluginConsolePanel.java:202) - Error reading from the console string
java.io.IOException: Pipe broken
    at java.io.PipedInputStream.read(PipedInputStream.java:322)
    at java.io.PipedInputStream.read(PipedInputStream.java:378)
    at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:282)
    at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:324)
    at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:176)
    at java.io.InputStreamReader.read(InputStreamReader.java:184)
    at java.io.BufferedReader.fill(BufferedReader.java:153)
    at java.io.BufferedReader.readLine(BufferedReader.java:316)
    at java.io.BufferedReader.readLine(BufferedReader.java:379)
    at org.gvsig.mkmvnproject.gui.CreatePluginConsolePanel$ConsoleThread.run(CreatePluginConsolePanel.java:192)

problema_gvsig-plugin.png (191 KB) José Vicente Higón, 02/04/2014 06:54 PM

730

History

#1 Updated by Álvaro Anguix over 10 years ago

  • Assignee set to Joaquín del Cerro Murciano

#2 Updated by Álvaro Anguix over 10 years ago

  • Target version set to 2.1.0-2219-testing

#3 Updated by Joaquín del Cerro Murciano over 10 years ago

  • Status changed from New to Fixed
  • Target version changed from 2.1.0-2219-testing to 2.1.0-2218-testing

#4 Updated by Álvaro Anguix over 10 years ago

  • Status changed from Fixed to Closed

#5 Updated by José Vicente Higón over 10 years ago

El problema que no encuentra el fichero .zip ya no sucede pero el comportamiento es distinto a otras versiones. Los pasos que sigo son los siguientes:
  • Creo el plugin con gvSIG en un worskpace vacío.
  • Cargo el workspace con Eclipse Juno.
  • Import --> Maven --> Existing Maven Projects. Importo los proyectos creados por gvSIG.
  • Ninguno de los proyectos compila. El proyecto raíz hace referencia en su pom.xml a un pom padre que no existe.
  • Si se comenta el pom padre se soluciona el error del proyecto raiz
        <parent>
            <groupId>org.gvsig</groupId>
            <artifactId>org.gvsig.desktop</artifactId>
            <version>2.0.23</version>
        </parent>
    
  • Pero los otros paquetes presentan problemas de dependencias.

A parte de no conseguir compilar los proyectos (parece que el build path de los proyectos no está bien configurado), tampoco se modifica el .metadata de Eclipse para poder arrancar gvSIG desde el menú Run de Eclipse.

#6 Updated by Álvaro Anguix over 10 years ago

  • Target version changed from 2.1.0-2218-testing to 2.1.0-2223-rc1

#7 Updated by Álvaro Anguix over 10 years ago

  • Target version changed from 2.1.0-2223-rc1 to 2.1.0-2221-testing

#8 Updated by Joaquín del Cerro Murciano over 10 years ago

Hola Chevi,
varias cosas...
  • Ya no se incluye ningun launcher de eclipse, ni se modifica en modo alguno los ficheros de configuracion de eclipse. Lo mas engorroso para el desarrollador era ajustar el classpath, y eso ya se hace automaticamante, sin necesidad de tener que añadir nada al launcher. En el launcher lo unico que hay que configurar es que arranque desde el "Launcher" de andami y el directorio que tiene que usar (donde esta la instalacion de gvSIG), el resto lo toma ya gvSIG correctamente al arrancar.
  • Respecto a que no compilen los proyectos, pues si, me falto por subir los cambios que lo corregian. Creo que ya los he subido todos. Faltaba por añadir en el pom del proyecto padre de la plantilla la seccion "repositories" para indicar donde estaba el repo de maven de gvSIG. Eso hacia que solo se pudiese compilar si previamente habias compilado la version adecuada de org.gvsig.desktop, lo que es bastante absurdo.
    gvsig-plugintemplates:r224

A ver si con esto ya esta arreglado.

Un saludo
Joaquin

#9 Updated by Álvaro Anguix over 10 years ago

  • Status changed from New to Awaiting response

#10 Updated by Álvaro Anguix over 10 years ago

  • Status changed from Awaiting response to Fixed

#11 Updated by Álvaro Anguix over 10 years ago

  • Status changed from Fixed to Closed

Also available in: Atom PDF