[JBoss JIRA] (JBIDE-15460) bumping plugin version with tycho 0.18.1 fails with NPE
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-15460?page=com.atlassian.jira.plugi... ]
Andre Dietisheim updated JBIDE-15460:
-------------------------------------
Description:
Try to bump the version of the plugins:
{code}
mvn org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=2.5.1-SNAPSHOT
{code}
it ends in tycho failing with an NPE:
{code}
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version (default-cli) on project openshift: Execution default-cli of goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version failed. NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version (default-cli) on project openshift: Execution default-cli of goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version 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:537)
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:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
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 default-cli of goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version failed.
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: java.lang.NullPointerException
at org.eclipse.tycho.versions.pom.GAV.getGroupId(GAV.java:23)
at org.eclipse.tycho.versions.manipulation.PomManipulator.isGavEquals(PomManipulator.java:154)
at org.eclipse.tycho.versions.manipulation.PomManipulator.changePlugins(PomManipulator.java:129)
at org.eclipse.tycho.versions.manipulation.PomManipulator.changeBuild(PomManipulator.java:117)
at org.eclipse.tycho.versions.manipulation.PomManipulator.applyChange(PomManipulator.java:83)
at org.eclipse.tycho.versions.engine.VersionsEngine.applyChange(VersionsEngine.java:165)
at org.eclipse.tycho.versions.engine.VersionsEngine.apply(VersionsEngine.java:142)
at org.eclipse.tycho.versions.SetMojo.execute(SetMojo.java:78)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
... 20 more
{code}
was:
0) bumped plugin version:
{code}
mvn org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=2.5.1-SNAPSHOT
{code}
which ended up in tycho failing with an NPE:
{code}
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version (default-cli) on project openshift: Execution default-cli of goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version failed. NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version (default-cli) on project openshift: Execution default-cli of goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version 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:537)
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:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
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 default-cli of goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version failed.
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: java.lang.NullPointerException
at org.eclipse.tycho.versions.pom.GAV.getGroupId(GAV.java:23)
at org.eclipse.tycho.versions.manipulation.PomManipulator.isGavEquals(PomManipulator.java:154)
at org.eclipse.tycho.versions.manipulation.PomManipulator.changePlugins(PomManipulator.java:129)
at org.eclipse.tycho.versions.manipulation.PomManipulator.changeBuild(PomManipulator.java:117)
at org.eclipse.tycho.versions.manipulation.PomManipulator.applyChange(PomManipulator.java:83)
at org.eclipse.tycho.versions.engine.VersionsEngine.applyChange(VersionsEngine.java:165)
at org.eclipse.tycho.versions.engine.VersionsEngine.apply(VersionsEngine.java:142)
at org.eclipse.tycho.versions.SetMojo.execute(SetMojo.java:78)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
... 20 more
{code}
there are 2 ways to fix this:
* use tycho 0.17 (not 0.18.1):
{code}
mvn org.eclipse.tycho:tycho-versions-plugin:0.17.0:set-version -DnewVersion=2.5.1-SNAPSHOT
{code}
* look for artifactId that's missing a groupId. For me it was using maven-clean-plugin:
{code}
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.7</version><!--$NO-MVN-MAN-VER$-->
<executions>
<execution>
<id>get-libs</id>
<goals>
<goal>copy</goal>
</goals>
<phase>generate-resources</phase>
</execution>
</executions>
{code}
correcting it fixed the NPE in tycho 0.18.1
{code}
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.7</version><!--$NO-MVN-MAN-VER$-->
{code}
> bumping plugin version with tycho 0.18.1 fails with NPE
> -------------------------------------------------------
>
> Key: JBIDE-15460
> URL: https://issues.jboss.org/browse/JBIDE-15460
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.2.0.Alpha1
> Reporter: Andre Dietisheim
> Assignee: Andre Dietisheim
> Fix For: 4.2.0.Alpha1
>
>
> Try to bump the version of the plugins:
> {code}
> mvn org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=2.5.1-SNAPSHOT
> {code}
> it ends in tycho failing with an NPE:
> {code}
> [ERROR] Failed to execute goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version (default-cli) on project openshift: Execution default-cli of goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version failed. NullPointerException -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version (default-cli) on project openshift: Execution default-cli of goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version 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:537)
> 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:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> 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 default-cli of goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version failed.
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> ... 19 more
> Caused by: java.lang.NullPointerException
> at org.eclipse.tycho.versions.pom.GAV.getGroupId(GAV.java:23)
> at org.eclipse.tycho.versions.manipulation.PomManipulator.isGavEquals(PomManipulator.java:154)
> at org.eclipse.tycho.versions.manipulation.PomManipulator.changePlugins(PomManipulator.java:129)
> at org.eclipse.tycho.versions.manipulation.PomManipulator.changeBuild(PomManipulator.java:117)
> at org.eclipse.tycho.versions.manipulation.PomManipulator.applyChange(PomManipulator.java:83)
> at org.eclipse.tycho.versions.engine.VersionsEngine.applyChange(VersionsEngine.java:165)
> at org.eclipse.tycho.versions.engine.VersionsEngine.apply(VersionsEngine.java:142)
> at org.eclipse.tycho.versions.SetMojo.execute(SetMojo.java:78)
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> ... 20 more
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 7 months
[JBoss JIRA] (JBIDE-15160) support comparing bundle folders as well as bundle jars when comparing MD5 sums
by Max Rydahl Andersen (JIRA)
[ https://issues.jboss.org/browse/JBIDE-15160?page=com.atlassian.jira.plugi... ]
Max Rydahl Andersen commented on JBIDE-15160:
---------------------------------------------
bumping severity of this since for 4.1.x it becomes critical we can more easily spot missing or unwarrented bumps in versions.
> support comparing bundle folders as well as bundle jars when comparing MD5 sums
> -------------------------------------------------------------------------------
>
> Key: JBIDE-15160
> URL: https://issues.jboss.org/browse/JBIDE-15160
> Project: Tools (JBoss Tools)
> Issue Type: Sub-task
> Components: build, qa
> Affects Versions: 4.1.0.CR1
> Reporter: Nick Boldt
> Assignee: Pavol Srna
> Priority: Critical
> Fix For: 4.1.1.Alpha2
>
>
> Currently, versionwatch can only compare md5s for jars. Adding support for zipping folders to jars and then comparing those should be fairly simple to add.
> We could also compare MD5s for plugins' manifest.mf files as well as the jars themselves.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 7 months
[JBoss JIRA] (JBIDE-15447) For JBIDE 4.1.1.Alpha1: Code Freeze + Branch [OpenShift]
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-15447?page=com.atlassian.jira.plugi... ]
Andre Dietisheim edited comment on JBIDE-15447 at 9/6/13 10:16 AM:
-------------------------------------------------------------------
0) bumped plugin version:
{code}
mvn org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=2.5.1-SNAPSHOT
{code}
which ended up in tycho failing with an NPE:
{code}
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version (default-cli) on project openshift: Execution default-cli of goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version failed. NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version (default-cli) on project openshift: Execution default-cli of goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version 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:537)
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:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
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 default-cli of goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version failed.
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: java.lang.NullPointerException
at org.eclipse.tycho.versions.pom.GAV.getGroupId(GAV.java:23)
at org.eclipse.tycho.versions.manipulation.PomManipulator.isGavEquals(PomManipulator.java:154)
at org.eclipse.tycho.versions.manipulation.PomManipulator.changePlugins(PomManipulator.java:129)
at org.eclipse.tycho.versions.manipulation.PomManipulator.changeBuild(PomManipulator.java:117)
at org.eclipse.tycho.versions.manipulation.PomManipulator.applyChange(PomManipulator.java:83)
at org.eclipse.tycho.versions.engine.VersionsEngine.applyChange(VersionsEngine.java:165)
at org.eclipse.tycho.versions.engine.VersionsEngine.apply(VersionsEngine.java:142)
at org.eclipse.tycho.versions.SetMojo.execute(SetMojo.java:78)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
... 20 more
{code}
there are 2 ways to fix this:
* use tycho 0.17 (not 0.18.1):
{code}
mvn org.eclipse.tycho:tycho-versions-plugin:0.17.0:set-version -DnewVersion=2.5.1-SNAPSHOT
{code}
* look for artifactId that's missing a groupId. For me it was using maven-clean-plugin:
{code}
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.7</version><!--$NO-MVN-MAN-VER$-->
<executions>
<execution>
<id>get-libs</id>
<goals>
<goal>copy</goal>
</goals>
<phase>generate-resources</phase>
</execution>
</executions>
{code}
correcting it fixed the NPE in tycho 0.18.1
{code}
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.7</version><!--$NO-MVN-MAN-VER$-->
{code}
1) DONE
2) DONE
{code}
[INFO] Reactor Summary:
[INFO]
[INFO] openshift.all ..................................... SUCCESS [0.560s]
[INFO] openshift.plugins ................................. SUCCESS [0.006s]
[INFO] org.jboss.tools.openshift.egit.core ............... SUCCESS [2.010s]
[INFO] org.jboss.tools.openshift.egit.ui ................. SUCCESS [0.397s]
[INFO] org.jboss.tools.openshift.express.client .......... SUCCESS [0.751s]
[INFO] org.jboss.tools.openshift.express.ui .............. SUCCESS [5.173s]
[INFO] openshift.tests ................................... SUCCESS [0.007s]
[INFO] org.jboss.tools.openshift.egit.test ............... SUCCESS [23.184s]
[INFO] org.jboss.tools.openshift.express.test ............ SUCCESS [33.510s]
[INFO] openshift.features ................................ SUCCESS [0.006s]
[INFO] org.jboss.tools.openshift.egit.integration.feature SUCCESS [0.268s]
[INFO] org.jboss.tools.openshift.express.feature ......... SUCCESS [0.212s]
[INFO] org.jboss.tools.openshift.egit.integration.test.feature SUCCESS [0.137s]
[INFO] org.jboss.tools.openshift.express.test.feature .... SUCCESS [0.174s]
[INFO] openshift.site .................................... SUCCESS [6.772s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:43.497s
[INFO] Finished at: Fri Sep 06 15:44:08 CEST 2013
[INFO] Final Memory: 75M/741M
[INFO] ------------------------------------------------------------------------
{code}
3) DONE: https://github.com/jbosstools/jbosstools-openshift/tree/jbosstools-4.1.1....
was (Author: adietish):
0) bumped plugin version:
{code}
mvn org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=2.5.1-SNAPSHOT
{code}
which ended up in tycho failing with an NPE:
{code}
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version (default-cli) on project openshift: Execution default-cli of goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version failed. NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version (default-cli) on project openshift: Execution default-cli of goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version 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:537)
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:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
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 default-cli of goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version failed.
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: java.lang.NullPointerException
at org.eclipse.tycho.versions.pom.GAV.getGroupId(GAV.java:23)
at org.eclipse.tycho.versions.manipulation.PomManipulator.isGavEquals(PomManipulator.java:154)
at org.eclipse.tycho.versions.manipulation.PomManipulator.changePlugins(PomManipulator.java:129)
at org.eclipse.tycho.versions.manipulation.PomManipulator.changeBuild(PomManipulator.java:117)
at org.eclipse.tycho.versions.manipulation.PomManipulator.applyChange(PomManipulator.java:83)
at org.eclipse.tycho.versions.engine.VersionsEngine.applyChange(VersionsEngine.java:165)
at org.eclipse.tycho.versions.engine.VersionsEngine.apply(VersionsEngine.java:142)
at org.eclipse.tycho.versions.SetMojo.execute(SetMojo.java:78)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
... 20 more
{code}
there are 2 ways to fix this:
* use tycho 0.17 (not 0.18.1):
{code}
mvn org.eclipse.tycho:tycho-versions-plugin:0.17.0:set-version -DnewVersion=2.5.1-SNAPSHOT
{code}
* look for artifactId that's missing a groupId. For me it was using maven-clean-plugin:
{code}
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.7</version><!--$NO-MVN-MAN-VER$-->
<executions>
<execution>
<id>get-libs</id>
<goals>
<goal>copy</goal>
</goals>
<phase>generate-resources</phase>
</execution>
</executions>
{code}
correcting it fixed the NPE in tycho 0.18.1
{code}
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.7</version><!--$NO-MVN-MAN-VER$-->
{code}
1) DONE
2) DONE
{code}
[INFO] Reactor Summary:
[INFO]
[INFO] openshift.all ..................................... SUCCESS [0.560s]
[INFO] openshift.plugins ................................. SUCCESS [0.006s]
[INFO] org.jboss.tools.openshift.egit.core ............... SUCCESS [2.010s]
[INFO] org.jboss.tools.openshift.egit.ui ................. SUCCESS [0.397s]
[INFO] org.jboss.tools.openshift.express.client .......... SUCCESS [0.751s]
[INFO] org.jboss.tools.openshift.express.ui .............. SUCCESS [5.173s]
[INFO] openshift.tests ................................... SUCCESS [0.007s]
[INFO] org.jboss.tools.openshift.egit.test ............... SUCCESS [23.184s]
[INFO] org.jboss.tools.openshift.express.test ............ SUCCESS [33.510s]
[INFO] openshift.features ................................ SUCCESS [0.006s]
[INFO] org.jboss.tools.openshift.egit.integration.feature SUCCESS [0.268s]
[INFO] org.jboss.tools.openshift.express.feature ......... SUCCESS [0.212s]
[INFO] org.jboss.tools.openshift.egit.integration.test.feature SUCCESS [0.137s]
[INFO] org.jboss.tools.openshift.express.test.feature .... SUCCESS [0.174s]
[INFO] openshift.site .................................... SUCCESS [6.772s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:43.497s
[INFO] Finished at: Fri Sep 06 15:44:08 CEST 2013
[INFO] Final Memory: 75M/741M
[INFO] ------------------------------------------------------------------------
{code}
3) DONE
> For JBIDE 4.1.1.Alpha1: Code Freeze + Branch [OpenShift]
> --------------------------------------------------------
>
> Key: JBIDE-15447
> URL: https://issues.jboss.org/browse/JBIDE-15447
> Project: Tools (JBoss Tools)
> Issue Type: Sub-task
> Components: openshift
> Reporter: Nick Boldt
> Assignee: Andre Dietisheim
> Priority: Blocker
> Labels: task
> Fix For: 4.1.1.Alpha1
>
>
> For JBIDE 4.1.1.Alpha1: Please perform the following tasks:
> 0. If nothing has changed in your component since the least GA release on this branch, *Reject this JIRA*.
> Otherwise:
> 1. Update your root pom to use parent pom version 4.1.1.Alpha1-SNAPSHOT;
> 2. Ensure you've built & run your plugin tests using the latest target platform version 4.31.0.Alpha1;
> 3. Branch from your existing jbosstools-4.1.x branch into a new jbosstools-4.1.1.Alpha1x branch;
> 4. Close (not resolve) this JIRA when done. [OpenShift]
> [Search for all task JIRA|https://issues.jboss.org/issues/?jql=%28%28project+in+%28JBDS%29+and...], or [Search for OpenShift task JIRA|https://issues.jboss.org/issues/?jql=%28%28project+in+%28JBDS%29+and...]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 7 months
[JBoss JIRA] (JBIDE-15447) For JBIDE 4.1.1.Alpha1: Code Freeze + Branch [OpenShift]
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-15447?page=com.atlassian.jira.plugi... ]
Andre Dietisheim commented on JBIDE-15447:
------------------------------------------
0) bumped plugin version:
{code}
mvn org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=2.5.1-SNAPSHOT
{code}
which ended up in tycho failing with an NPE:
{code}
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version (default-cli) on project openshift: Execution default-cli of goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version failed. NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version (default-cli) on project openshift: Execution default-cli of goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version 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:537)
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:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
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 default-cli of goal org.eclipse.tycho:tycho-versions-plugin:0.18.1:set-version failed.
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: java.lang.NullPointerException
at org.eclipse.tycho.versions.pom.GAV.getGroupId(GAV.java:23)
at org.eclipse.tycho.versions.manipulation.PomManipulator.isGavEquals(PomManipulator.java:154)
at org.eclipse.tycho.versions.manipulation.PomManipulator.changePlugins(PomManipulator.java:129)
at org.eclipse.tycho.versions.manipulation.PomManipulator.changeBuild(PomManipulator.java:117)
at org.eclipse.tycho.versions.manipulation.PomManipulator.applyChange(PomManipulator.java:83)
at org.eclipse.tycho.versions.engine.VersionsEngine.applyChange(VersionsEngine.java:165)
at org.eclipse.tycho.versions.engine.VersionsEngine.apply(VersionsEngine.java:142)
at org.eclipse.tycho.versions.SetMojo.execute(SetMojo.java:78)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
... 20 more
{code}
there are 2 ways to fix this:
* use tycho 0.17 (not 0.18.1):
{code}
mvn org.eclipse.tycho:tycho-versions-plugin:0.17.0:set-version -DnewVersion=2.5.1-SNAPSHOT
{code}
* look for artifactId that's missing a groupId. For me it was using maven-clean-plugin:
{code}
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.7</version><!--$NO-MVN-MAN-VER$-->
<executions>
<execution>
<id>get-libs</id>
<goals>
<goal>copy</goal>
</goals>
<phase>generate-resources</phase>
</execution>
</executions>
{code}
correcting it fixed the NPE in tycho 0.18.1
{code}
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.7</version><!--$NO-MVN-MAN-VER$-->
{code}
1) DONE
2) DONE
{code}
[INFO] Reactor Summary:
[INFO]
[INFO] openshift.all ..................................... SUCCESS [0.560s]
[INFO] openshift.plugins ................................. SUCCESS [0.006s]
[INFO] org.jboss.tools.openshift.egit.core ............... SUCCESS [2.010s]
[INFO] org.jboss.tools.openshift.egit.ui ................. SUCCESS [0.397s]
[INFO] org.jboss.tools.openshift.express.client .......... SUCCESS [0.751s]
[INFO] org.jboss.tools.openshift.express.ui .............. SUCCESS [5.173s]
[INFO] openshift.tests ................................... SUCCESS [0.007s]
[INFO] org.jboss.tools.openshift.egit.test ............... SUCCESS [23.184s]
[INFO] org.jboss.tools.openshift.express.test ............ SUCCESS [33.510s]
[INFO] openshift.features ................................ SUCCESS [0.006s]
[INFO] org.jboss.tools.openshift.egit.integration.feature SUCCESS [0.268s]
[INFO] org.jboss.tools.openshift.express.feature ......... SUCCESS [0.212s]
[INFO] org.jboss.tools.openshift.egit.integration.test.feature SUCCESS [0.137s]
[INFO] org.jboss.tools.openshift.express.test.feature .... SUCCESS [0.174s]
[INFO] openshift.site .................................... SUCCESS [6.772s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:43.497s
[INFO] Finished at: Fri Sep 06 15:44:08 CEST 2013
[INFO] Final Memory: 75M/741M
[INFO] ------------------------------------------------------------------------
{code}
3) DONE
> For JBIDE 4.1.1.Alpha1: Code Freeze + Branch [OpenShift]
> --------------------------------------------------------
>
> Key: JBIDE-15447
> URL: https://issues.jboss.org/browse/JBIDE-15447
> Project: Tools (JBoss Tools)
> Issue Type: Sub-task
> Components: openshift
> Reporter: Nick Boldt
> Assignee: Andre Dietisheim
> Priority: Blocker
> Labels: task
> Fix For: 4.1.1.Alpha1
>
>
> For JBIDE 4.1.1.Alpha1: Please perform the following tasks:
> 0. If nothing has changed in your component since the least GA release on this branch, *Reject this JIRA*.
> Otherwise:
> 1. Update your root pom to use parent pom version 4.1.1.Alpha1-SNAPSHOT;
> 2. Ensure you've built & run your plugin tests using the latest target platform version 4.31.0.Alpha1;
> 3. Branch from your existing jbosstools-4.1.x branch into a new jbosstools-4.1.1.Alpha1x branch;
> 4. Close (not resolve) this JIRA when done. [OpenShift]
> [Search for all task JIRA|https://issues.jboss.org/issues/?jql=%28%28project+in+%28JBDS%29+and...], or [Search for OpenShift task JIRA|https://issues.jboss.org/issues/?jql=%28%28project+in+%28JBDS%29+and...]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 7 months
[JBoss JIRA] (JBIDE-15457) CordovaSim and Hybrid tools interaction/source code sharing
by Gorkem Ercan (JIRA)
[ https://issues.jboss.org/browse/JBIDE-15457?page=com.atlassian.jira.plugi... ]
Gorkem Ercan commented on JBIDE-15457:
--------------------------------------
Contents of the cordova_plugin.js changes only when a new plugin is installed or removed from the project. So serving cordova_plugin.js file directly is not a big concern as changes are not likely to happen often.
Currently hybrid tools uses a two stage installation of the plugins. On the first stage only plugins are copied to the plugins folder and config.xml file is updated. The second stage occurs when the project is actually launched. Hybrid tools generate a project for the targeted platform with all the necessary changes for plugins. This essentially means that cordova_plugin.js is not generated until the project is launched. CordovaPluginManager already provides a method for generating the contents of cordova_plugin.js. CordovaSim launcher can actually use this API to generate the file at a location convenient for its use and use it from there. We can also add a notification mechanism to CordovaPluginManager for added/removed plugins so that the file is kept uptodate while CordovaSim is running.
I am not against creating an eclipse independent API but I am concerned about the penalty that it brings on it further development & testing to ensure eclipse independence.
> CordovaSim and Hybrid tools interaction/source code sharing
> -----------------------------------------------------------
>
> Key: JBIDE-15457
> URL: https://issues.jboss.org/browse/JBIDE-15457
> Project: Tools (JBoss Tools)
> Issue Type: Task
> Components: aerogear-hybrid, browsersim
> Reporter: Yahor Radtsevich
> Assignee: Yahor Radtsevich
> Fix For: 4.2.x
>
>
> Currently CordovaSim application consists of two parts: a Jetty-based server, and a BrowserSim-based client. The server part generates some content on the fly. For instance, the server may response with generated {{cordova_plugins.js}} content when it is requested by the client. Both parts of CordovaSim are executed in their own JVM, which means they do not have access to the Eclipse API.
> Hybrid tools do very similar things, but in static way. For instance, while creating Android executables, they create {{cordova_plugins.js}} file on disk. Hybrid tools is a set of Eclipse plugins, so they have access to the Eclipse API.
> Obviously CordovaSim and Hybrid tools have some code in their sources that could be shared. For the example above, both of them need a method to generate content of {{cordova_plugins.js}}. There are several approaches to implement it:
> 1. Create two different implementations for CordovaSim and Hybrid tools and synchronize them when needed (currently we do this). This approach creates code duplication problems.
> 2. Create an Eclipse API-independent plugin, so both CordovaSim and Hybrid tools could set it as a dependency. This approach imposes some restriction on the independent plugin (useful Eclipse API and libs cannot be used).
> 3. Move the server part of CordovaSim to the Eclipse JVM, so it could use Eclipse API and any Hybrid tools API. With this approach we loose the ability to create standalone CordovaSim in the future.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 7 months