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

Here are the information

genie.gef ~> ll ~/.m2
[....]
lrwxrwxrwx 1 genie.gef tools.gef  37 23 févr. 04:05 settings.xml -> /opt/public/common/maven-settings.xml
lrwxrwxrwx 1 genie.gef tools.gef  39 23 févr. 04:05 toolchains.xml -> /opt/public/common/maven-toolchains.xml

and 

genie.gef ~> cat /opt/public/common/maven-toolchains.xml 

<toolchains>
  <toolchain>
     <type>jdk</type>
     <provides>
         <id>CDC-1.0/Foundation-1.0</id>
     </provides>
     <configuration>
        <jdkHome>/opt/public/common/cbi/ee/CDC-1.0_Foundation-1.0</jdkHome>
     </configuration>
  </toolchain>
  <toolchain>
     <type>jdk</type>
     <provides>
         <id>CDC-1.1/Foundation-1.1</id>
     </provides>
     <configuration>
        <jdkHome>/opt/public/common/cbi/ee/CDC-1.1_Foundation-1.1</jdkHome>
     </configuration>
  </toolchain>


  <toolchain>
     <type>jdk</type>
     <provides>
         <id>OSGi/Minimum-1.0</id>
     </provides>
     <configuration>
        <jdkHome>/opt/public/common/cbi/ee/OSGi_Minimum-1.0</jdkHome>
     </configuration>
  </toolchain>
  <toolchain>
     <type>jdk</type>
     <provides>
         <id>OSGi/Minimum-1.1</id>
     </provides>
     <configuration>
        <jdkHome>/opt/public/common/cbi/ee/OSGi_Minimum-1.1</jdkHome>
     </configuration>
  </toolchain>
  <toolchain>
     <type>jdk</type>
     <provides>
         <id>OSGi/Minimum-1.2</id>
     </provides>
     <configuration>
        <jdkHome>/opt/public/common/cbi/ee/OSGi_Minimum-1.2</jdkHome>
     </configuration>
  </toolchain>


  <toolchain>
     <type>jdk</type>
     <provides>
         <id>J2SE-1.4</id>
     </provides>
     <configuration>
        <!-- <jdkHome>/opt/IBMJava2-amd64-142/jre</jdkHome> -->
        <jdkHome>/opt/public/common/j2sdk1.4.2_19/jre</jdkHome>
     </configuration>
  </toolchain>
  <toolchain>
     <type>jdk</type>
     <provides>
         <id>J2SE-1.5</id>
     </provides>
     <configuration>
        <jdkHome>/opt/public/common/jdk1.5.0-latest/jre</jdkHome>
     </configuration>
  </toolchain>
  <toolchain>
     <type>jdk</type>
     <provides>
         <id>JavaSE-1.6</id>
     </provides>
     <configuration>
        <jdkHome>/opt/public/common/jdk1.6.0-latest/jre</jdkHome>
     </configuration>
  </toolchain>
  <toolchain>
     <type>jdk</type>
     <provides>
         <id>JavaSE-1.7</id>
     </provides>
     <configuration>
        <jdkHome>/opt/public/common/jdk1.7.0-latest/jre</jdkHome>
     </configuration>
  </toolchain>
  <toolchain>
     <type>jdk</type>
     <provides>
         <id>JavaSE-1.8</id>
     </provides>
     <configuration>
        <jdkHome>/opt/public/common/jdk1.8.0_x64-latest/jre</jdkHome>
     </configuration>
  </toolchain>

</toolchains>


Le 7 juil. 2015 à 17:12, Samuel Wu <samuelwu@xxxxxxxxxx> a écrit :

Bad news, Mikael. The build failed with the same error messages and the toolchains.xml was not picked up.
[DEBUG] Toolchain JDK[/opt/public/common/cbi/ee/CDC-1.0_Foundation-1.0] doesn't match required property: id
[DEBUG] Toolchain JDK[/opt/public/common/cbi/ee/CDC-1.1_Foundation-1.1] doesn't match required property: id
[DEBUG] Toolchain JDK[/opt/public/common/cbi/ee/OSGi_Minimum-1.0] doesn't match required property: id
[DEBUG] Toolchain JDK[/opt/public/common/cbi/ee/OSGi_Minimum-1.1] doesn't match required property: id
[DEBUG] Toolchain JDK[/opt/public/common/cbi/ee/OSGi_Minimum-1.2] doesn't match required property: id
[DEBUG] Toolchain JDK[/opt/public/common/j2sdk1.4.2_19/jre] doesn't match required property: id

I wonder whether you can check that the  WTP toolchains.xml was moved to correctly to ${user.home}/.m2/ 
Should I open a bug for this problem?

Best Regards

Samuel Wu

<graycol.gif>Samuel Wu---07/07/2015 10:26:28 AM---Thank you, Mikael. The build is running. I'll update the result once the build is done.

From: Samuel Wu/Toronto/IBM@IBMCA
To: Common-build Developers discussion <cbi-dev@xxxxxxxxxxx>
Date: 07/07/2015 10:26 AM
Subject: Re: [cbi-dev] WTP build failed to compile with latest Maven
Sent by: cbi-dev-bounces@xxxxxxxxxxx





Thank you, Mikael. The build is running. I'll update the result once the build is done.

Best Regards
Samuel Wu

<graycol.gif>Mikael Barbero ---07/07/2015 10:21:39 AM---It seems that the handling of toolchains has changed in Maven 3.3.x http://blog.soebes.de/blog/2015/

From:
Mikael Barbero <mikael@xxxxxxxxxxx>
To:
Common-build Developers discussion <cbi-dev@xxxxxxxxxxx>
Date:
07/07/2015 10:21 AM
Subject:
Re: [cbi-dev] WTP build failed to compile with latest Maven
Sent by:
cbi-dev-bounces@xxxxxxxxxxx




It seems that the handling of toolchains has changed in Maven 3.3.x

http://blog.soebes.de/blog/2015/03/17/apache-maven-3-dot-3-1-features/

I renamed /shared/common/apache-maven-3.3.1/conf/toolchains.xml. Could you try again and see if it fixes the issue for you?

Mikael
    Le 7 juil. 2015 à 16:05, Samuel Wu <samuelwu@xxxxxxxxxx> a écrit :

    Hi, Thanh. The problem is not fixed yet.
    The last successful build was produced by Maven 3.2.5. Maven 3.3.1 didn't follow the WTP toolchains settings and still fails.

    Best Regards

    Samuel Wu

    <graycol.gif>
    Thanh Ha ---07/07/2015 09:40:29 AM---On Mon, Jul 6, 2015 at 2:33 PM, Samuel Wu <samuelwu@xxxxxxxxxx> wrote: > The following are the jdk s

    From:
    Thanh Ha <thanh.ha@xxxxxxxxxxxxxxxxxx>
    To:
    Common-build Developers discussion <cbi-dev@xxxxxxxxxxx>
    Date:
    07/07/2015 09:40 AM
    Subject:
    Re: [cbi-dev] WTP build failed to compile with latest Maven
    Sent by:
    cbi-dev-bounces@xxxxxxxxxxx 






    On Mon, Jul 6, 2015 at 2:33 PM, Samuel Wu <
    samuelwu@xxxxxxxxxx> wrote:
      The following are the jdk set in toolchains.xml
        <jdkHome>/shared/webtools/apps/IBMJava2-142-SR13FP10/jre</jdkHome>
        <jdkHome>/shared/common/jdk-1.5.0-22.x86_64/jre</jdkHome>

      The following are the error messages in the Maven 3.3.1 build log.

      [DEBUG] Toolchain JDK[/opt/public/common/j2sdk1.4.2_19/jre] doesn't match required property: id
      [DEBUG] Toolchain JDK[/opt/public/common/jdk1.5.0-latest/jre] doesn't match required property: id


      The JDK paths are different from the settings in the WTP toolchains.xml. Is it because the setting from HIPP is ignored by Maven 3.3.1 and the default system toolchains was used?


    Hi Samuel,

    I see that your job [1] is now passing. I guess you were able to figure out the issue?

    Thanh

    [1]
    https://hudson.eclipse.org/webtools/job/WTP-R3_7_x_Maintenance_test/_______________________________________________
    cbi-dev mailing list

    cbi-dev@xxxxxxxxxxx
    To change your delivery options, retrieve your password, or unsubscribe from this list, visit

    https://dev.eclipse.org/mailman/listinfo/cbi-dev
    _______________________________________________
    cbi-dev mailing list

    cbi-dev@xxxxxxxxxxx
    To change your delivery options, retrieve your password, or unsubscribe from this list, visit

    https://dev.eclipse.org/mailman/listinfo/cbi-dev
_______________________________________________
cbi-dev mailing list
cbi-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

https://dev.eclipse.org/mailman/listinfo/cbi-dev_______________________________________________
cbi-dev mailing list
cbi-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cbi-dev
_______________________________________________
cbi-dev mailing list
cbi-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cbi-dev


Back to the top