Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] NullPointerException org.codehaus.mojo:build-helper-maven-plugin:1.3:parse-version failed.

Integrated all dependencies in the update site project and point from the target definition file to the update site only, leads to the following error which I do not understand....somebody an idea or hint?

 

[ERROR] Cannot resolve project dependencies:

[ERROR]   Software being installed: org.eclipse.rap.runtime.sdk.feature.group 1.4.1.20110914-1945

[ERROR]   Missing requirement: org.eclipse.rap.runtime.sdk.feature.group 1.4.1.20110914-1945 requires 'A.PDE.Target.Platform Cannot be insta

lled into the IDE 0.0.0' but it could not be found

[ERROR]

 

Von: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] Im Auftrag von Oliver Pfau
Gesendet: Mittwoch, 22. Februar 2012 08:40
An: 'Tycho user list'
Betreff: Re: [tycho-user] NullPointerException org.codehaus.mojo:build-helper-maven-plugin:1.3:parse-version failed.

 

Hi,

 

tried it with 1.7, now the eclipse swt/jface resources could not be found for the 1st (build order) UI project. Without a target platform definition file my build works with Tycho 0.12.0. Also in eclipse it compiles with the platform definition. Here is it:

 

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<?pde version="3.6"?>

 

<target name="build.target" sequenceNumber="76">

<locations>

<location includeAllPlatforms="false" includeMode="planner" includeSource="true" type="InstallableUnit">

<unit id="epp.package.rcp" version="1.4.1.20110909-1818"/>

<unit id="epp.package.testing" version="1.4.1.20110909-1818"/>

<unit id="org.eclipse.platform.sdk" version="3.7.1.M20110909-1335"/>

<unit id="org.eclipse.rcp.sdk.id" version="3.7.1.M20110909-1335"/>

<repository location="http://download.eclipse.org/releases/indigo/"/>

</location>

<location includeAllPlatforms="false" includeMode="planner" includeSource="true" type="InstallableUnit">

<unit id="<package>.feature.feature.group" version="1.0.0"/>

<repository location="file:/<path and package>.updatesite/"/>

</location>

</locations>

<environment>

<os>win32</os>

<ws>win32</ws>

<arch>x86</arch>

</environment>

<targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER"/>

</target>

 

 

Here is a part of the compiler error:

 

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.14.0:compile (default-compile) on project com.scalaris.prointra.icr

monitor.client.batchdetail: Compilation failure: Compilation failure:

[ERROR] D:\Projekte\<project>\trunk\client\com.scalaris.prointra.<project>.client.batchdetail\src\main\java\com\scalaris\prointra\icrmonit

or\client\batchdetail\widget\BatchDetailControl.java:[1,0]

[ERROR] /*

[ERROR] ^

[ERROR] The type org.eclipse.swt.widgets.Label cannot be resolved. It is indirectly referenced from required .class files

[ERROR] D:\Projekte\<project>\trunk\client\com.scalaris.prointra.<project>.client.batchdetail\src\main\java\com\scalaris\prointra\icrmonit

or\client\batchdetail\widget\BatchDetailControl.java:[1,0]

[ERROR] /*

[ERROR] ^

[ERROR] The type org.eclipse.swt.widgets.Composite cannot be resolved. It is indirectly referenced from required .class files

[ERROR] D:\Projekte\<project>\trunk\client\com.scalaris.prointra.<project>.client.batchdetail\src\main\java\com\scalaris\prointra\icrmonit

or\client\batchdetail\widget\BatchDetailControl.java:[1,0]

[ERROR] /*

[ERROR] ^

[ERROR] The type org.eclipse.jface.viewers.TableViewer cannot be resolved. It is indirectly referenced from required .class files

[ERROR] D:\Projekte\<project>\trunk\client\com.scalaris.prointra.<project>.client.batchdetail\src\main\java\com\scalaris\prointra\icrmonit

or\client\batchdetail\widget\BatchDetailControl.java:[9,0]

[ERROR] import org.eclipse.jface.viewers.ColumnWeightData;

[ERROR] ^^^^^^^^^^^^^^^^^

[ERROR] The import org.eclipse.jface cannot be resolved

[ERROR] D:\Projekte\<project>\trunk\client\com.scalaris.prointra.<project>.client.batchdetail\src\main\java\com\scalaris\prointra\icrmonit

or\client\batchdetail\widget\BatchDetailControl.java:[10,0]

[ERROR] import org.eclipse.jface.viewers.TableLayout;

[ERROR] ^^^^^^^^^^^^^^^^^

[ERROR] The import org.eclipse.jface cannot be resolved

[ERROR] D:\Projekte\<project>\trunk\client\com.scalaris.prointra.<project>.client.batchdetail\src\main\java\com\scalaris\prointra\icrmonit

or\client\batchdetail\widget\BatchDetailControl.java:[11,0]

[ERROR] import org.eclipse.jface.viewers.TableViewer;

[ERROR] ^^^^^^^^^^^^^^^^^

[ERROR] The import org.eclipse.jface cannot be resolved

[ERROR] D:\Projekte\<project>\trunk\client\com.scalaris.prointra.<project>.client.batchdetail\src\main\java\com\scalaris\prointra\icrmonit

or\client\batchdetail\widget\BatchDetailControl.java:[12,0]

[ERROR] import org.eclipse.jface.viewers.TableViewerColumn;

[ERROR] ^^^^^^^^^^^^^^^^^

[ERROR] The import org.eclipse.jface cannot be resolved

[ERROR] D:\Projekte\<project>\trunk\client\com.scalaris.prointra.<project>.client.batchdetail\src\main\java\com\scalaris\prointra\icrmonit

or\client\batchdetail\widget\BatchDetailControl.java:[13,0]

[ERROR] import org.eclipse.swt.SWT;

[ERROR] ^^^^^^^^^^^^^^^

[ERROR] The import org.eclipse.swt cannot be resolved

[ERROR] D:\Projekte\<project>\trunk\client\com.scalaris.prointra.<project>.client.batchdetail\src\main\java\com\scalaris\prointra\icrmonit

 

Regards

Oliver

 

 

Von: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] Im Auftrag von Mickael Istria
Gesendet: Dienstag, 21. Februar 2012 17:22
An: Tycho user list
Betreff: Re: [tycho-user] NullPointerException org.codehaus.mojo:build-helper-maven-plugin:1.3:parse-version failed.

 

Hi,

I often had troubles with build-helper-maven-plugin 1.3.
Have you tried with the latest version (1.7), it generally works better.

HTH

On 02/21/2012 05:03 PM, Oliver Pfau wrote:

Hi,
 
I changed my build from Tycho 0.12.0 to 0.14.0 and defined all dependencies in a target definition file. The target definition is in an eclipse project and I added it in the project pom like this:
 
<build>
               <plugins>
                       <plugin>
                               <groupId>org.codehaus.mojo</groupId>
                               <artifactId>build-helper-maven-plugin</artifactId>
                               <version>1.3</version>
                               <executions>
                                      <execution>
                                              <id>attach-artifacts</id>
                                              <phase>package</phase>
                                              <goals>
                                                     <goal>attach-artifact</goal>
                                              </goals>
                                              <configuration>
                                                     <artifacts>
                                                             <artifact>
                                                                     <file>targetdef_both.target</file>
                                                                     <type>target</type>
                                                                     <classifier>targetdef</classifier>
                                                             </artifact>
                                                     </artifacts>
                                              </configuration>
                                      </execution>
                               </executions>
                       </plugin>
               
               </plugins>
        </build>
 
And also in the top parent pom:
 
<target>
        <artifact>
               <groupId>groupid</groupId>
               <artifactId> groupid.targetdefinition</artifactId>
               <version>1.0.0</version>
               <classifier>targetdef</classifier>
        </artifact>
</target>
 
I got this exception:
 
[ERROR] Failed to execute goal org.codehaus.mojo:build-helper-maven-plugin:1.3:parse-version (versions) on project groupid.targetdefinition: Execution versions of goal org.codehaus.mojo:build-helper-maven-plugin:1.3:parse-version failed. NullPointerExcept
ion -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:build-helper-maven-plugin:1.3:parse-version
 (versions) on project groupid.targetdefinition: Execution versions of goal org.codehaus.mojo:build-helper-maven-pl
ugin:1.3:parse-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: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 versions of goal org.codehaus.mojo:build-helper-maven-plugin:1.3:pars
e-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 java.util.Hashtable.put(Hashtable.java:394)
        at java.util.Properties.setProperty(Properties.java:143)
        at org.codehaus.mojo.buildhelper.ParseVersionMojo.execute(ParseVersionMojo.java:108)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        ... 20 more
[ERROR]
[ERROR]
 
Any idea?
 
Regards,
Oliver
 
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user

 

--
Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets


Back to the top