[Gvsig_english] Build error developing gvSIG 2.0

Jordi Torres jtorresfabra at gmail.com
Mon Oct 3 10:27:54 CEST 2011


Hi Cesar,

I just discovered that removing the folder extensions in build/product/ is
enough to compile the sources succesful.

Cheers.

2011/10/3 Jordi Torres <jtorresfabra at gmail.com>

> Hi Cesar,
>
> I am getting this error again. I ran maven with -e option. This is the
> error in the build log:
>
> [INFO] Generating the package info for the plugin: org.gvsig.coreplugin
> with the following information:
> [INFO]     Plugin name: Skin management framework
> [INFO]     Plugin description: This is the extension that provide the basic
> skin to
>         gvsig
> [INFO]     Plugin version: 2.0-SNAPSHOT
> [INFO]     Plugin build number: 2035
> [INFO]     Plugin state: devel
> [INFO]     Plugin official: true
> [INFO]     Plugin operatingSystem: all
> [INFO]     Plugin architecture: all
> [INFO]     Plugin javaVM: j1_5
> [INFO]     Plugin gvSIGVersion: 2.0.0
> [INFO]     gvSIG Plugin's folder:
> /home/jtorres/Projects/GIS/gvSIG/gvSIG-2.0/gvsig-sources/libCorePlugin/../build/product/gvSIG/extensiones
> [INFO]     Package info folder:
> /home/jtorres/Projects/GIS/gvSIG/gvSIG-2.0/gvsig-sources/libCorePlugin
> [INFO]     Dependencies: null
> log4j:WARN No appenders could be found for logger
> (org.gvsig.tools.util.impl.DefaultServiceLoader).
> log4j:WARN Please initialize the log4j system properly.
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error getting a MakePluginPackageService for the  plugin folder:
> /home/jtorres/Projects/GIS/gvSIG/gvSIG-2.0/gvsig-sources/libCorePlugin/../build/product/gvSIG/extensiones
>
>
> Embedded error: Exception creating the installer service to create
> installers
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error getting a
> MakePluginPackageService for the  plugin folder:
> /home/jtorres/Projects/GIS/gvSIG/gvSIG-2.0/gvsig-sources/libCorePlugin/../build/product/gvSIG/extensiones
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>     at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>     at
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:597)
>     at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>     at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>     at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>     at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error getting a
> MakePluginPackageService for the  plugin folder:
> /home/jtorres/Projects/GIS/gvSIG/gvSIG-2.0/gvsig-sources/libCorePlugin/../build/product/gvSIG/extensiones
>     at
> org.gvsig.installer.maven.GeneratePackageInfoMojo.execute(GeneratePackageInfoMojo.java:264)
>     at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>     ... 17 more
> Caused by:
> org.gvsig.installer.lib.api.creation.MakePluginPackageServiceException:
> Exception creating the installer service to create installers
>     at
> org.gvsig.installer.lib.impl.DefaultInstallerManager.getMakePluginPackageService(DefaultInstallerManager.java:108)
>     at
> org.gvsig.installer.maven.GeneratePackageInfoMojo.execute(GeneratePackageInfoMojo.java:237)
>     ... 19 more
> Caused by: java.lang.reflect.InvocationTargetException
>     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>     at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>     at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>     at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>     at
> org.gvsig.tools.extensionpoint.impl.DefaultExtensionPointManager.createObject(DefaultExtensionPointManager.java:214)
>     at
> org.gvsig.tools.extensionpoint.impl.DefaultExtensionPointManager.create(DefaultExtensionPointManager.java:59)
>     at
> org.gvsig.tools.extensionpoint.impl.DefaultExtensionPoint$Extension.create(DefaultExtensionPoint.java:99)
>     at
> org.gvsig.tools.extensionpoint.impl.DefaultExtensionPoint.create(DefaultExtensionPoint.java:267)
>     at
> org.gvsig.installer.lib.impl.DefaultInstallerManager.getMakePluginPackageService(DefaultInstallerManager.java:105)
>     ... 20 more
> Caused by: java.lang.NullPointerException
>     at
> org.gvsig.installer.lib.impl.DefaultVersion.parse(DefaultVersion.java:32)
>     at
> org.gvsig.installer.lib.impl.DefaultPackageInfo.setVersion(DefaultPackageInfo.java:133)
>     at
> org.gvsig.installer.lib.impl.info.InstallerInfoFileReader.read(InstallerInfoFileReader.java:115)
>     at
> org.gvsig.installer.lib.impl.info.InstallerInfoFileReader.read(InstallerInfoFileReader.java:82)
>     at
> org.gvsig.installer.lib.impl.info.InstallerInfoFileReader.read(InstallerInfoFileReader.java:64)
>     at
> org.gvsig.installer.lib.impl.DefaultInstallerProviderServices.readPackageInfo(DefaultInstallerProviderServices.java:114)
>     at
> org.gvsig.installer.lib.impl.creation.DefaultMakePluginPackageService.initialize(DefaultMakePluginPackageService.java:116)
>     at
> org.gvsig.installer.lib.impl.creation.DefaultMakePluginPackageService.<init>(DefaultMakePluginPackageService.java:91)
>     ... 29 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 30 seconds
> [INFO] Finished at: Mon Oct 03 10:04:23 CEST 2011
> [INFO] Final Memory: 107M/398M
> [INFO]
> ------------------------------------------------------------------------
>
> Thanks in advance!
>
>
>
>
>
> El 26 de septiembre de 2011 14:44, Cèsar Ordiñana <cordinyana at gvsig.com>escribió:
>
> **
>> El 26/09/11 10:20, Jordi Torres escribió:
>>
>> Hi Cesar,
>>
>> Thanks for your quick answer.
>>
>> When I say "update the sources" I refer to svn up in gvSIG 2.0 sources. I
>> am running maven in the console, and it is when compiling gvSIG 2.0, not my
>> project. Jesus and me are experiencing the same problem
>> when we update the gvSIG 2.0 sources. When we clean the project we can
>> compile it all, but is a little time-consuming task.
>>
>> Correct me if I am wrong, Is not error stack trace (-e option) activated
>> by default? Anyway next time I get the error I will paste the build log.
>>
>>
>> Hi Jordi,
>>
>> No, the -e option is not activated by default in maven. I don't know why,
>> because it is a very useful information, maybe it is too much verbose in
>> some cases. I enabled it by default in the launchers provided to integrate
>> maven in eclipse for the gvSIG projects, I think it is worth it.
>>
>>
>> Regards,
>>
>> --
>> Cèsar Ordiñana Navarro
>> gvSIG software architect
>> DiSiD Technologies (http://www.disid.com)
>>
>>
>>
>>
>> Thank you again.
>>
>>
>>
>> El 26 de septiembre de 2011 10:10, Cèsar Ordiñana <cordinyana at gvsig.com>escribió:
>>
>>> El 26/09/11 09:54, Jordi Torres escribió:
>>> > Hi all,
>>> >
>>> > I am getting a strange build error every time I update the sources,
>>> > the error is:
>>> >
>>> > [ERROR] BUILD ERROR
>>> > [INFO]
>>> >
>>> ------------------------------------------------------------------------
>>> > [INFO] Error getting a MakePluginPackageService for the  plugin
>>> > folder: {**}../build/product/gvSIG/extensiones
>>> >
>>> > Embedded error: Exception creating the installer service to create
>>> > installers
>>> >
>>> > Any clue?
>>>
>>>  Hi Jordi,
>>>
>>> Could you explain a bit more what you mean with "update the sources"?
>>> Maybe you are using the eclipse maven plugin, or running maven in the
>>> process?
>>>
>>> It seems an error related with our installer maven plugin. Could you run
>>> maven in your project with stack traces enabled and attach the result?
>>> (mvn -e install)
>>>
>>> Regards,
>>>
>>> --
>>> Cèsar Ordiñana Navarro
>>> gvSIG software architect
>>> DiSiD Technologies (http://www.disid.com)
>>>
>>>
>>> >
>>> > Thanks.
>>> >
>>> > --
>>> > Jordi Torres Fabra
>>> >
>>> > gvSIG 3D blog
>>> > http://gvsig3d.blogspot.com
>>> > Instituto de Automática e Informática Industrial
>>> > http://www.ai2.upv.es
>>> >
>>>  _______________________________________________
>>> Gvsig_internacional mailing list
>>> Gvsig_internacional at listserv.gva.es
>>> http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional
>>>
>>
>>
>>
>> --
>> Jordi Torres Fabra
>>
>> gvSIG 3D blog
>> http://gvsig3d.blogspot.com
>> Instituto de Automática e Informática Industrial
>> http://www.ai2.upv.es
>>
>>
>>
>> _______________________________________________
>> Gvsig_internacional mailing list
>> Gvsig_internacional at listserv.gva.es
>> http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional
>>
>>
>
>
> --
> Jordi Torres Fabra
>
> gvSIG 3D blog
> http://gvsig3d.blogspot.com
> Instituto de Automática e Informática Industrial
> http://www.ai2.upv.es
>



-- 
Jordi Torres Fabra

gvSIG 3D blog
http://gvsig3d.blogspot.com
Instituto de Automática e Informática Industrial
http://www.ai2.upv.es
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserv.gva.es/pipermail/gvsig_internacional/attachments/20111003/e97e9d93/attachment.htm 


More information about the Gvsig_internacional mailing list