You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stanbol.apache.org by Enrico Daga <en...@gmail.com> on 2011/05/04 13:45:03 UTC

Cannot compile latest version

Dear Rupert,
I'm looking at the latest code and cannot end the compile process.
Trace was:

7274 [main] INFO
org.apache.stanbol.entityhub.indexing.destination.solryard.SolrYardIndexingDestination
- add conf/spellings.txt
7274 [main] INFO
org.apache.stanbol.entityhub.indexing.destination.solryard.SolrYardIndexingDestination
- add conf/elevate.xml
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.364 sec

Results :

Tests run: 6, Failures: 0, Errors: 0, Skipped: 0

[INFO] [bundle:bundle {execution: default-bundle}]
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] [enforcer:enforce {execution: enforce-java}]
[INFO] [source:jar {execution: attach-sources}]
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] null
Failed to retrieve numeric file attributes using: '/bin/sh -c ls
-1nlaR /home/x-marley/Development/Stanbol/trunk/entityhub/indexing/destination/solryard/src/main/java'
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.reflect.UndeclaredThrowableException
        at org.codehaus.plexus.archiver.AbstractArchiver.getFiles(AbstractArchiver.java:519)
        at org.apache.maven.plugin.source.AbstractSourceJarMojo.packageSources(AbstractSourceJarMojo.java:262)
        at org.apache.maven.plugin.source.AbstractSourceJarMojo.packageSources(AbstractSourceJarMojo.java:232)
        at org.apache.maven.plugin.source.AbstractSourceJarMojo.execute(AbstractSourceJarMojo.java:201)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        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.codehaus.plexus.archiver.ArchiverException: Failed to
retrieve numeric file attributes using: '/bin/sh -c ls -1nlaR
/home/x-marley/Development/Stanbol/trunk/entityhub/indexing/destination/solryard/src/main/java'
        at org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:427)
        at org.codehaus.plexus.archiver.AbstractArchiver.getFiles(AbstractArchiver.java:507)
        ... 22 more
Caused by: java.io.IOException: Failed to retrieve numeric file
attributes using: '/bin/sh -c ls -1nlaR
/home/x-marley/Development/Stanbol/trunk/entityhub/indexing/destination/solryard/src/main/java'
        at org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.executeLs(PlexusIoResourceAttributeUtils.java:281)
        at org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.getFileAttributesByPath(PlexusIoResourceAttributeUtils.java:223)
        at org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.getFileAttributesByPath(PlexusIoResourceAttributeUtils.java:189)
        at org.codehaus.plexus.components.io.resources.PlexusIoFileResourceCollection.getResources(PlexusIoFileResourceCollection.java:175)
        at org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:423)
        ... 23 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6 minutes 13 seconds
[INFO] Finished at: Wed May 04 13:41:54 CEST 2011
[INFO] Final Memory: 182M/325M
[INFO] ------------------------------------------------------------------------


I have also tried cleaning the local repo from org/apache/stanbol/

best

Enrico


-- 
Enrico Daga

--
http://www.enridaga.net
skype: enri-pan

Re: Cannot compile latest version

Posted by Enrico Daga <en...@gmail.com>.
On 4 May 2011 17:30, Rupert Westenthaler <ru...@gmail.com> wrote:
> Hi
>
> Based on the log it looks like the error occurred during creating the
> jar with the source files of the Apache Stanbol Entityhub Indexing:
> SolrYard Indexing Destination (within the maven jar plugin)
>
> based on the provided log I conclude like that the version of maven
> you are using is still affected by
> http://jira.codehaus.org/browse/PLXCOMP-149
>
> So upgrading to a newer version should solve the problem.
I cleaned the entire maven repository and it looks fixed now. Maybe
the maven plugin have been updated also.

Enrico

>
> best
> Rupert Westenthaler
>
> On Wed, May 4, 2011 at 1:45 PM, Enrico Daga <en...@gmail.com> wrote:
>> Dear Rupert,
>> I'm looking at the latest code and cannot end the compile process.
>> Trace was:
>>
>> 7274 [main] INFO
>> org.apache.stanbol.entityhub.indexing.destination.solryard.SolrYardIndexingDestination
>> - add conf/spellings.txt
>> 7274 [main] INFO
>> org.apache.stanbol.entityhub.indexing.destination.solryard.SolrYardIndexingDestination
>> - add conf/elevate.xml
>> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.364 sec
>>
>> Results :
>>
>> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0
>>
>> [INFO] [bundle:bundle {execution: default-bundle}]
>> [INFO] Preparing source:jar
>> [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
>> [INFO] [enforcer:enforce {execution: enforce-java}]
>> [INFO] [source:jar {execution: attach-sources}]
>> [INFO] ------------------------------------------------------------------------
>> [ERROR] FATAL ERROR
>> [INFO] ------------------------------------------------------------------------
>> [INFO] null
>> Failed to retrieve numeric file attributes using: '/bin/sh -c ls
>> -1nlaR /home/x-marley/Development/Stanbol/trunk/entityhub/indexing/destination/solryard/src/main/java'
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Trace
>> java.lang.reflect.UndeclaredThrowableException
>>        at org.codehaus.plexus.archiver.AbstractArchiver.getFiles(AbstractArchiver.java:519)
>>        at org.apache.maven.plugin.source.AbstractSourceJarMojo.packageSources(AbstractSourceJarMojo.java:262)
>>        at org.apache.maven.plugin.source.AbstractSourceJarMojo.packageSources(AbstractSourceJarMojo.java:232)
>>        at org.apache.maven.plugin.source.AbstractSourceJarMojo.execute(AbstractSourceJarMojo.java:201)
>>        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>>        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.codehaus.plexus.archiver.ArchiverException: Failed to
>> retrieve numeric file attributes using: '/bin/sh -c ls -1nlaR
>> /home/x-marley/Development/Stanbol/trunk/entityhub/indexing/destination/solryard/src/main/java'
>>        at org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:427)
>>        at org.codehaus.plexus.archiver.AbstractArchiver.getFiles(AbstractArchiver.java:507)
>>        ... 22 more
>> Caused by: java.io.IOException: Failed to retrieve numeric file
>> attributes using: '/bin/sh -c ls -1nlaR
>> /home/x-marley/Development/Stanbol/trunk/entityhub/indexing/destination/solryard/src/main/java'
>>        at org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.executeLs(PlexusIoResourceAttributeUtils.java:281)
>>        at org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.getFileAttributesByPath(PlexusIoResourceAttributeUtils.java:223)
>>        at org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.getFileAttributesByPath(PlexusIoResourceAttributeUtils.java:189)
>>        at org.codehaus.plexus.components.io.resources.PlexusIoFileResourceCollection.getResources(PlexusIoFileResourceCollection.java:175)
>>        at org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:423)
>>        ... 23 more
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Total time: 6 minutes 13 seconds
>> [INFO] Finished at: Wed May 04 13:41:54 CEST 2011
>> [INFO] Final Memory: 182M/325M
>> [INFO] ------------------------------------------------------------------------
>>
>>
>> I have also tried cleaning the local repo from org/apache/stanbol/
>>
>> best
>>
>> Enrico
>>
>>
>> --
>> Enrico Daga
>>
>> --
>> http://www.enridaga.net
>> skype: enri-pan
>>
>
>
>
> --
> | Rupert Westenthaler             rupert.westenthaler@gmail.com
> | Bodenlehenstraße 11                             ++43-699-11108907
> | A-5500 Bischofshofen
>



-- 
Enrico Daga

--
http://www.enridaga.net
skype: enri-pan

Re: Cannot compile latest version

Posted by Rupert Westenthaler <ru...@gmail.com>.
Hi

Based on the log it looks like the error occurred during creating the
jar with the source files of the Apache Stanbol Entityhub Indexing:
SolrYard Indexing Destination (within the maven jar plugin)

based on the provided log I conclude like that the version of maven
you are using is still affected by
http://jira.codehaus.org/browse/PLXCOMP-149

So upgrading to a newer version should solve the problem.

best
Rupert Westenthaler

On Wed, May 4, 2011 at 1:45 PM, Enrico Daga <en...@gmail.com> wrote:
> Dear Rupert,
> I'm looking at the latest code and cannot end the compile process.
> Trace was:
>
> 7274 [main] INFO
> org.apache.stanbol.entityhub.indexing.destination.solryard.SolrYardIndexingDestination
> - add conf/spellings.txt
> 7274 [main] INFO
> org.apache.stanbol.entityhub.indexing.destination.solryard.SolrYardIndexingDestination
> - add conf/elevate.xml
> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.364 sec
>
> Results :
>
> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0
>
> [INFO] [bundle:bundle {execution: default-bundle}]
> [INFO] Preparing source:jar
> [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
> [INFO] [enforcer:enforce {execution: enforce-java}]
> [INFO] [source:jar {execution: attach-sources}]
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] null
> Failed to retrieve numeric file attributes using: '/bin/sh -c ls
> -1nlaR /home/x-marley/Development/Stanbol/trunk/entityhub/indexing/destination/solryard/src/main/java'
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.reflect.UndeclaredThrowableException
>        at org.codehaus.plexus.archiver.AbstractArchiver.getFiles(AbstractArchiver.java:519)
>        at org.apache.maven.plugin.source.AbstractSourceJarMojo.packageSources(AbstractSourceJarMojo.java:262)
>        at org.apache.maven.plugin.source.AbstractSourceJarMojo.packageSources(AbstractSourceJarMojo.java:232)
>        at org.apache.maven.plugin.source.AbstractSourceJarMojo.execute(AbstractSourceJarMojo.java:201)
>        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>        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.codehaus.plexus.archiver.ArchiverException: Failed to
> retrieve numeric file attributes using: '/bin/sh -c ls -1nlaR
> /home/x-marley/Development/Stanbol/trunk/entityhub/indexing/destination/solryard/src/main/java'
>        at org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:427)
>        at org.codehaus.plexus.archiver.AbstractArchiver.getFiles(AbstractArchiver.java:507)
>        ... 22 more
> Caused by: java.io.IOException: Failed to retrieve numeric file
> attributes using: '/bin/sh -c ls -1nlaR
> /home/x-marley/Development/Stanbol/trunk/entityhub/indexing/destination/solryard/src/main/java'
>        at org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.executeLs(PlexusIoResourceAttributeUtils.java:281)
>        at org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.getFileAttributesByPath(PlexusIoResourceAttributeUtils.java:223)
>        at org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributeUtils.getFileAttributesByPath(PlexusIoResourceAttributeUtils.java:189)
>        at org.codehaus.plexus.components.io.resources.PlexusIoFileResourceCollection.getResources(PlexusIoFileResourceCollection.java:175)
>        at org.codehaus.plexus.archiver.AbstractArchiver$1.hasNext(AbstractArchiver.java:423)
>        ... 23 more
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 6 minutes 13 seconds
> [INFO] Finished at: Wed May 04 13:41:54 CEST 2011
> [INFO] Final Memory: 182M/325M
> [INFO] ------------------------------------------------------------------------
>
>
> I have also tried cleaning the local repo from org/apache/stanbol/
>
> best
>
> Enrico
>
>
> --
> Enrico Daga
>
> --
> http://www.enridaga.net
> skype: enri-pan
>



-- 
| Rupert Westenthaler             rupert.westenthaler@gmail.com
| Bodenlehenstraße 11                             ++43-699-11108907
| A-5500 Bischofshofen