Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Q: Tycho + IBM Xtools

You should ask IBM as it is related to their licensing system

Jeff

Le 11 mai 2012 08:14, "Anders Dahlberg XB" <anders.xb.dahlberg@xxxxxxxxxxxx> a écrit :
Hi,
 
I'm trying to use Maven with Tycho to run builds including integration tests of our IBM-xtools-based plugins.

This is looking really nice compared to our existing ant-based solution, but unfortunately running tests using tycho-surefire I get the following exception:
 
"Caused by: org.eclipse.core.runtime.CoreException: License key check failed for plugin com.ibm.xtools.transform.core.
        at com.ibm.cic.licensing.common.LicenseCheck.throwCoreException(LicenseCheck.java:306)
        at com.ibm.cic.licensing.common.LicenseCheck.requestLicense(LicenseCheck.java:182)
        at com.ibm.cic.licensing.common.LicenseCheck.requestLicense(LicenseCheck.java:243)
        at com.ibm.xtools.transform.core.internal.TransformCorePlugin.start(TransformCorePlugin.java:90)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)"
 
Any ideas on how to e.g. get tycho-surefire find our existing license (installed copy of RSA-RTE)?
 
Thanks in advance
Anders Dahlberg
 
poms included for reference (beware: newbie alert! ;-) ):
 
Test-plugin pom (osgi dependencies added in manifest):
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>com.ericsson.dura.bbi</groupId>
    <artifactId>com.ericsson.dura.bbi.parent</artifactId>
    <version>1.0.0</version>
    <relativePath>../..</relativePath>
  </parent>
  <groupId>com.ericsson.dura.bbi.transform</groupId>
  <artifactId>com.ericsson.dura.bbi.transform.vhivet.test.simpleactivator</artifactId>
  <version>1.0.0.qualifier</version>
  <packaging>eclipse-test-plugin</packaging>
  <build>
    <plugins>
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-surefire-plugin</artifactId>
        <version>${tycho-version}</version>
        <configuration>
          <argLine>-Xmx512m</argLine>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
 
Parent pom:
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.ericsson.dura.bbi</groupId>
  <artifactId>com.ericsson.dura.bbi.parent</artifactId>
  <version>1.0.0</version>
  <name>Parent POM for BBI</name>
  <packaging>pom</packaging>
  <properties>
    <tycho-version>0.15.0-SNAPSHOT</tycho-version>
    <project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding>
  </properties>
  <repositories>
    <!-- Main repository-->
    <repository>
      <id>det_rsa_repo</id>
      <layout>p2</layout>
      <url>file:<"rsa-rte plugins exported to p2 dir">/p2/R2B04</url>
    </repository>
    <!-- TODO: EMC repository? -->
    <!-- Fallback in case of missing plugins -->
    <repository>
      <id>helios</id>
      <layout>p2</layout>
    </repository>
  </repositories>
  <build>
    <plugins>
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-maven-plugin</artifactId>
        <version>${tycho-version}</version>
        <extensions>true</extensions>
      </plugin>
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>target-platform-configuration</artifactId>
        <version>${tycho-version}</version>
        <configuration>
          <resolver>p2</resolver>
          <pomDependencies>consider</pomDependencies>
          <environments>
            <environment>
              <os>linux</os>
              <ws>gtk</ws>
              <arch>x86_64</arch>
            </environment>
          </environments>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
 
command line:
 
[INFO] Command line:
        /bin/sh -c cd <snip> && /afs/sunrise.ericsson.se/se/app/jdk/.sys/@sys/1.7.0/LMWP3/jre/bin/java -Dosgi.noShutdown=false -Dosgi.os=linux -Dosgi.ws=gtk -Dosgi.arch=x86_64 -Xmx512m -jar <snip>/osgi/bundle/org.eclipse.equinox.launcher/1.1.1.R36x_v20101122_1400/org.eclipse.equinox.launcher-1.1.1.R36x_v20101122_1400.jar -data <snip>/target/work/data -dev file:<snip>/target/dev.properties -install <snip>/target/work -configuration <snip>/target/work/configuration -application org.eclipse.tycho.surefire.osgibooter.headlesstest -testproperties <snip>/target/surefire.properties
 
 
 

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top