[jbosstools-issues] [JBoss JIRA] (JBIDE-15447) For JBIDE 4.1.1.Alpha1: Code Freeze + Branch [OpenShift]

Andre Dietisheim (JIRA) jira-events at lists.jboss.org
Fri Sep 6 10:15:04 EDT 2013


    [ https://issues.jboss.org/browse/JBIDE-15447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12802304#comment-12802304 ] 

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+fixVersion+%3D+%227.1.0.Alpha1%22%29+or+%28project+in+%28JBIDE%29+and+fixVersion+%3D+%224.1.1.Alpha1%22%29%29+AND+labels+%3D+task], or [Search for OpenShift task JIRA|https://issues.jboss.org/issues/?jql=%28%28project+in+%28JBDS%29+and+fixVersion+%3D+%227.1.0.Alpha1%22%29+or+%28project+in+%28JBIDE%29+and+fixVersion+%3D+%224.1.1.Alpha1%22%29%29+AND+labels+%3D+task+and+component+in+%28%22openshift%22%29]

--
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


More information about the jbosstools-issues mailing list