view eclipse/test-deps-bundle-wrapping/org.mockito/pom.xml @ 1075:be3470750169

Eclipse target platform definition This commit provides a target definition file that enables Eclipse client developers to install all required dependencies into their workspace in a single click. This commit adds a feature for all of our bundle-wrapped test dependencies. This is necessary to include the corresponding p2 repository in our target definition file as a software source. This feature required some changes to our Makefile, since Tycho was unable to resolve the feature as is. Now the Makefile builds all pom-first dependencies first, so core Thermostat and our bundle-wrapped deps. Then all manifest-first modules are built in a single reactor, this includes the p2 repositories. Another small fix I've added is a eclipse-root property to the various Eclipse POM files. I had noticed that different nesting depths caused projects not to be able to find our p2 repositories that are referenced using a relative path. This commit also removes the previous Fedora-specific target definition file, which should be obsoleted by this new general-purpose one. I have renamed the native location for the Keyring wrapper lib from linux_x86-64 to linux_x86_64. Eclipse's ${target.arch} variable produces x86_64, which will make it easier for documentation going forward. Reviewed-by: jerboaa Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2013-April/006357.html PR1387
author Elliott Baron <ebaron@redhat.com>
date Thu, 25 Apr 2013 11:28:32 -0400
parents 0b250145abf3
children ad73c8da51a9
line wrap: on
line source

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<!-- 

 Copyright 2012, 2013 Red Hat, Inc.

 This file is part of Thermostat.

 Thermostat is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published
 by the Free Software Foundation; either version 2, or (at your
 option) any later version.

 Thermostat is distributed in the hope that it will be useful, but
 WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with Thermostat; see the file COPYING.  If not see
 <http://www.gnu.org/licenses />.

 Linking this code with other modules is making a combined work
 based on this code.  Thus, the terms and conditions of the GNU
 General Public License cover the whole combination.

 As a special exception, the copyright holders of this code give
 you permission to link this code with independent modules to
 produce an executable, regardless of the license terms of these
 independent modules, and to copy and distribute the resulting
 executable under terms of your choice, provided that you also
 meet, for each linked independent module, the terms and conditions
 of the license of that module.  An independent module is a module
 which is not derived from or based on this code.  If you modify
 this code, you may extend this exception to your version of the
 library, but you are not obligated to do so.  If you do not wish
 to do so, delete this exception statement from your version.

-->

    <modelVersion>4.0.0</modelVersion>

    <parent>
      <groupId>com.redhat.thermostat.eclipse.parent</groupId>
      <artifactId>thermostat-eclipse-test-deps</artifactId>
      <version>0.8.0-SNAPSHOT</version>
    </parent>

    <groupId>org.mockito</groupId>
    <artifactId>com.redhat.thermostat.bundles.org.mockito.mockito-core</artifactId>
    <packaging>bundle</packaging>
    <version>1.9.0</version>
    <name>Thermostat Eclipse :: Bundles :: ${pkgArtifactId}</name>
    <description>
        This bundle simply wraps ${pkgArtifactId}-${pkgVersion}.jar.
    </description>

    <properties>
        <pkgGroupId>org.mockito</pkgGroupId>
        <pkgArtifactId>mockito-core</pkgArtifactId>
        <pkgVersion>1.9.0</pkgVersion>
        <eclipse-root>${basedir}/../..</eclipse-root>
    </properties>

    <dependencies>
        <dependency>
            <groupId>${pkgGroupId}</groupId>
            <artifactId>${pkgArtifactId}</artifactId>
            <version>${pkgVersion}</version>
        </dependency>
    </dependencies>

    <build>
      <plugins>
        <plugin>
          <groupId>org.apache.felix</groupId>
          <artifactId>maven-bundle-plugin</artifactId>
          <extensions>true</extensions>
          <configuration>
            <instructions>
              <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
              <Private-Package>
                org.mockito.internal*,
                org.mockito.cglib*,
                org.mockito.asm*,
                org.objenesis*,
                org.hamcrest*,
              </Private-Package>
              <Export-Package>
	       org.mockito.exceptions.base;version="1.9",
               org.mockito.exceptions;
                 uses:="org.mockito.exceptions.verification.junit,org.mockito.exceptions.base,
                        org.mockito.listeners,org.mockito.exceptions.misusing,
                        org.mockito.exceptions.verification";version="1.9",
               org.mockito.exceptions.verification;
                 uses:="org.mockito.exceptions.base";version="1.9",
               org.mockito.stubbing.answers;
                 uses:="org.mockito.exceptions.base,org.mockito.invocation,org.mockito.stubbing";
                 version="1.9",
               org.mockito.configuration;
                 uses:="org.mockito,org.mockito.stubbing";version="1.9",
               org.mockito.invocation;version="1.9",
               org.mockito.exceptions.verification.junit;
                 uses:="junit.framework,org.mockito.exceptions.verification";version="1.9",
               org.mockito.listeners;uses:="org.mockito.exceptions";version="1.9",
               org.mockito;
                 uses:="org.hamcrest,org.mockito.stubbing,org.mockito.verification,
                        org.mockito.listeners,org.mockito.exceptions.base,org.mockito.exceptions,
                        org.mockito.configuration,org.mockito.invocation";version="1.9",
               org.mockito.runners;
                 uses:="org.junit.runner,org.junit.runner.notification,org.junit.runner.manipulation";
                 version="1.9",
               org.mockito.exceptions.misusing;uses:="org.mockito.exceptions.base";version="1.9",
               org.mockito.verification;uses:="org.mockito.exceptions";version="1.9",
               org.mockito.stubbing;uses:="org.mockito.invocation";version="1.9"
              </Export-Package>
              <Import-Package>
                junit.*;resolution:=optional,
                org.junit.*;resolution:=optional,
                org.hamcrest;version="[1.3,2.0)",
                org.objenesis;version="[1.0,2.0)",
                org.apache.tools.ant;resolution:=optional,
                org.apache.tools.ant.types;resolution:=optional,
                COM.jrockit.reflect;resolution:=optional,
                jrockit.vm;resolution:=optional,
                sun.reflect;resolution:=optional,
                org.mockito*
              </Import-Package>
              <_removeheaders>Private-Package</_removeheaders>
            </instructions>
          </configuration>
        </plugin>
      </plugins>
    </build>

</project>