You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@isis.apache.org by GESCONSULTOR - Óscar Bou <o....@gesconsultor.com> on 2013/06/06 19:58:56 UTC

Compiling last snapshot

I'm trying to compile the last snapshot and install locally.

The JDO package is not properly generated and cannot be installed into the local repository. The active Maven profile is "deploy-local". Any ideas? 

Thanks in advance!


[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Isis JDO ObjectStore .............................. FAILURE [2.225s]
[INFO] Isis JDO ObjectStore AppLib ....................... SKIPPED
[INFO] Isis JDO ObjectStore MetaModel Support ............ SKIPPED
[INFO] Isis JDO ObjectStore DataNucleus impl ............. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.234s
[INFO] Finished at: Thu Jun 06 19:58:05 CEST 2013
[INFO] Final Memory: 12M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.4:process (process-remote-resources) on project isis-objectstore-jdo: Execution process-remote-resources of goal org.apache.maven.plugins:maven-remote-resources-plugin:1.4:process failed. NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.4:process (process-remote-resources) on project isis-objectstore-jdo: Execution process-remote-resources of goal org.apache.maven.plugins:maven-remote-resources-plugin:1.4:process failed.
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
	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.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution process-remote-resources of goal org.apache.maven.plugins:maven-remote-resources-plugin:1.4:process failed.
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:116)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
	... 19 more
Caused by: java.lang.NullPointerException
	at org.apache.maven.artifact.DefaultArtifact.equals(DefaultArtifact.java:344)
	at java.util.HashMap.put(HashMap.java:376)
	at java.util.HashSet.add(HashSet.java:200)
	at java.util.AbstractCollection.addAll(AbstractCollection.java:305)
	at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.aggregateProjectDependencyArtifacts(ProcessRemoteResourcesMojo.java:702)
	at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.getProjects(ProcessRemoteResourcesMojo.java:575)
	at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.configureVelocityContext(ProcessRemoteResourcesMojo.java:945)
	at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.execute(ProcessRemoteResourcesMojo.java:463)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
	... 20 more
[ERROR] 
[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/PluginExecutionException


Re: Compiling last snapshot

Posted by GESCONSULTOR <o....@gesconsultor.com>.
Thanks Dan. 

I will try.

Enviado desde mi iPhone

El 06/06/2013, a las 21:50, Dan Haywood <da...@haywood-associates.co.uk> escribió:

> Hi Oscar,
> Yes, I noticed this today myself.   It's because of this bug in one of the
> maven plugins [1].
> 
> Two things you can do.
> 
> First, if you build all of Isis from trunk, then it should compile fine.
> 
> Or, second, if you just want to build the JDO objectstore, then you need to
> set a property as a workaround for this bug.  The following:
> 
> mvn clean install -o -D datanucleus.version=3.2.2
> 
> should work fine.  (Have a look at the pom.xml to see how it is used).
> 
> Cheers
> Dan
> 
> 
> 
> 
> [1] http://jira.codehaus.org/browse/MRRESOURCES-58
> 
> 
> On 6 June 2013 18:58, GESCONSULTOR - Óscar Bou <o....@gesconsultor.com>wrote:
> 
>> 
>> I'm trying to compile the last snapshot and install locally.
>> 
>> The JDO package is not properly generated and cannot be installed into the
>> local repository. The active Maven profile is "deploy-local". Any ideas?
>> 
>> Thanks in advance!
>> 
>> 
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] Isis JDO ObjectStore .............................. FAILURE [2.225s]
>> [INFO] Isis JDO ObjectStore AppLib ....................... SKIPPED
>> [INFO] Isis JDO ObjectStore MetaModel Support ............ SKIPPED
>> [INFO] Isis JDO ObjectStore DataNucleus impl ............. SKIPPED
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 3.234s
>> [INFO] Finished at: Thu Jun 06 19:58:05 CEST 2013
>> [INFO] Final Memory: 12M/81M
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-remote-resources-plugin:1.4:process
>> (process-remote-resources) on project isis-objectstore-jdo: Execution
>> process-remote-resources of goal
>> org.apache.maven.plugins:maven-remote-resources-plugin:1.4:process failed.
>> NullPointerException -> [Help 1]
>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
>> goal org.apache.maven.plugins:maven-remote-resources-plugin:1.4:process
>> (process-remote-resources) on project isis-objectstore-jdo: Execution
>> process-remote-resources of goal
>> org.apache.maven.plugins:maven-remote-resources-plugin:1.4:process failed.
>>        at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
>>        at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>>        at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>>        at
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>>        at
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>>        at
>> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>>        at
>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>>        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
>>        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>>        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.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>>        at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>>        at
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>>        at
>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
>> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
>> process-remote-resources of goal
>> org.apache.maven.plugins:maven-remote-resources-plugin:1.4:process failed.
>>        at
>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:116)
>>        at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>>        ... 19 more
>> Caused by: java.lang.NullPointerException
>>        at
>> org.apache.maven.artifact.DefaultArtifact.equals(DefaultArtifact.java:344)
>>        at java.util.HashMap.put(HashMap.java:376)
>>        at java.util.HashSet.add(HashSet.java:200)
>>        at java.util.AbstractCollection.addAll(AbstractCollection.java:305)
>>        at
>> org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.aggregateProjectDependencyArtifacts(ProcessRemoteResourcesMojo.java:702)
>>        at
>> org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.getProjects(ProcessRemoteResourcesMojo.java:575)
>>        at
>> org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.configureVelocityContext(ProcessRemoteResourcesMojo.java:945)
>>        at
>> org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.execute(ProcessRemoteResourcesMojo.java:463)
>>        at
>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
>>        ... 20 more
>> [ERROR]
>> [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/PluginExecutionException
>> 
>> 

Re: Compiling last snapshot

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
Hi Oscar,
Yes, I noticed this today myself.   It's because of this bug in one of the
maven plugins [1].

Two things you can do.

First, if you build all of Isis from trunk, then it should compile fine.

Or, second, if you just want to build the JDO objectstore, then you need to
set a property as a workaround for this bug.  The following:

mvn clean install -o -D datanucleus.version=3.2.2

should work fine.  (Have a look at the pom.xml to see how it is used).

Cheers
Dan




[1] http://jira.codehaus.org/browse/MRRESOURCES-58


On 6 June 2013 18:58, GESCONSULTOR - Óscar Bou <o....@gesconsultor.com>wrote:

>
> I'm trying to compile the last snapshot and install locally.
>
> The JDO package is not properly generated and cannot be installed into the
> local repository. The active Maven profile is "deploy-local". Any ideas?
>
> Thanks in advance!
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Isis JDO ObjectStore .............................. FAILURE [2.225s]
> [INFO] Isis JDO ObjectStore AppLib ....................... SKIPPED
> [INFO] Isis JDO ObjectStore MetaModel Support ............ SKIPPED
> [INFO] Isis JDO ObjectStore DataNucleus impl ............. SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 3.234s
> [INFO] Finished at: Thu Jun 06 19:58:05 CEST 2013
> [INFO] Final Memory: 12M/81M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-remote-resources-plugin:1.4:process
> (process-remote-resources) on project isis-objectstore-jdo: Execution
> process-remote-resources of goal
> org.apache.maven.plugins:maven-remote-resources-plugin:1.4:process failed.
> NullPointerException -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.apache.maven.plugins:maven-remote-resources-plugin:1.4:process
> (process-remote-resources) on project isis-objectstore-jdo: Execution
> process-remote-resources of goal
> org.apache.maven.plugins:maven-remote-resources-plugin:1.4:process failed.
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>         at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>         at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>         at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>         at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>         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.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
> process-remote-resources of goal
> org.apache.maven.plugins:maven-remote-resources-plugin:1.4:process failed.
>         at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:116)
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>         ... 19 more
> Caused by: java.lang.NullPointerException
>         at
> org.apache.maven.artifact.DefaultArtifact.equals(DefaultArtifact.java:344)
>         at java.util.HashMap.put(HashMap.java:376)
>         at java.util.HashSet.add(HashSet.java:200)
>         at java.util.AbstractCollection.addAll(AbstractCollection.java:305)
>         at
> org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.aggregateProjectDependencyArtifacts(ProcessRemoteResourcesMojo.java:702)
>         at
> org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.getProjects(ProcessRemoteResourcesMojo.java:575)
>         at
> org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.configureVelocityContext(ProcessRemoteResourcesMojo.java:945)
>         at
> org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.execute(ProcessRemoteResourcesMojo.java:463)
>         at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
>         ... 20 more
> [ERROR]
> [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/PluginExecutionException
>
>