Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cbi-dev] WTP build failed to compile with latest Maven

yes probably toolchains-related.
looks like https://bugs.eclipse.org/bugs/show_bug.cgi?id=466977#c13 to me

the EventSpyProcessor looks suspiscious to me. Could be a bug in the maven hudson integration.
To verify this, try directly executing mvn in a conosle build step instead of a maven build step.


Jan

From: cbi-dev-bounces@xxxxxxxxxxx [mailto:cbi-dev-bounces@xxxxxxxxxxx] On Behalf Of Samuel Wu
Sent: Freitag, 3. Juli 2015 05:33
To: Common-build Developers discussion
Subject: [cbi-dev] WTP build failed to compile with latest Maven

WTP build works well with Maven 3.2.5. After moving to Maven 3.3.1, it failed to compile the plugin org.eclipse.wst.wsdl with the following error.
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.20.0:compile (default-compile) on project org.eclipse.wst.wsdl: Compilation failure: Compilation failure:
[ERROR] /jobs/genie.webtools/WTP-R3_7_x_Maintenance_test/workspace/webtools.webservices/bundles/org.eclipse.wst.wsdl/src-wsdl/org/eclipse/wst/wsdl/util/WSDLParser.java:[787]
[ERROR] catch (IOException exception)
[ERROR] ^^^^^^^^^^^
[ERROR] Unreachable catch block for IOException. This exception is never thrown from the try statement body

It has been verified that the project can be compiled without a problem locally.
The following warning messages were found in the Maven 3.3.1 build log. 
[DEBUG] Connected to remote
[WARN] o.h.m.e.EventSpyProcessor - Unhandled event: org.apache.maven.toolchain.building.DefaultToolchainsBuildingRequest@39aa45a1 (org.apache.maven.toolchain.building.DefaultToolchainsBuildingRequest)
[WARN] o.h.m.e.EventSpyProcessor - Unhandled event: org.apache.maven.toolchain.building.DefaultToolchainsBuildingRequest@39aa45a1 (org.apache.maven.toolchain.building.DefaultToolchainsBuildingRequest)
[INFO] o.h.m.e.h.MavenExecutionRequestHandler - Using tool-chains document ID: f1492191-c1d9-4caa-a6bf-44160486454d
[INFO] Scanning for projects...

The following information was generated by Maven 3.2.5 build.
[DEBUG] Connected to remote
[INFO] o.h.m.e.h.MavenExecutionRequestHandler - Using tool-chains document ID: f1492191-c1d9-4caa-a6bf-44160486454d
[INFO] Scanning for projects...

I wonder whether this has something to do with the toolchain. The BREE of the plugin is Bundle-RequiredExecutionEnvironment: J2SE-1.4 and the current toolchain is set up as the following.
<toolchains>
  <toolchain>
    <type>jdk</type>
    <provides>
      <id>J2SE-1.4</id>
    </provides>
    <configuration>
      <jdkHome>/shared/webtools/apps/IBMJava2-142-SR13FP10/jre</jdkHome>
    </configuration>
  </toolchain>
  <toolchain>
    <type>jdk</type>
    <provides>
      <id>J2SE-1.5</id>
    </provides>
    <configuration>
      <jdkHome>/shared/common/jdk-1.5.0-22.x86_64/jre</jdkHome>
    </configuration>
  </toolchain>
  <toolchain>
    <type>jdk</type>
    <provides>
      <id>JavaSE-1.6</id>
    </provides>
    <configuration>
      <jdkHome>/shared/common/jdk1.6.0_45/jre</jdkHome>
    </configuration>
  </toolchain>
  <toolchain>
    <type>jdk</type>
    <provides>
      <id>JavaSE-1.7</id>
    </provides>
    <configuration>
      <jdkHome>/shared/common/jdk1.7.0_25/jre</jdkHome>
    </configuration>
  </toolchain>

</toolchains>

I appreciate if someone can shed some light.

Best Regards

Samuel Wu


Back to the top