view common/type-system/pom.xml @ 18:5100a9b678f4

Initial Schema related services This patch adds initial support for schema validation and exposition services. I am down as a reviewer since the initial code is from neugens, modified by me before this first commit. Reviewed-by: neugens, stooke Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-August/024759.html Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-September/024823.html Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-September/024918.html
author Simon Tooke <stooke@redhat.com>
date Fri, 08 Sep 2017 13:24:37 -0400
parents
children e7a2adb465d1
line wrap: on
line source

<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>com.redhat.thermostat</groupId>
        <artifactId>base-common</artifactId>
        <version>1.99.12-SNAPSHOT</version>
    </parent>

    <groupId>com.redhat.thermostat.lang.schema</groupId>
    <artifactId>thermostat-lang-schema</artifactId>
    <version>1.99.12-SNAPSHOT</version>
    <packaging>bundle</packaging>

    <properties>
        <thermostat.java.version>1.7</thermostat.java.version>

        <!-- OSGi stuff -->
        <osgi.core.version>4.3.1</osgi.core.version>
        <osgi.compendium.version>4.3.1</osgi.compendium.version>
        <osgi.compendium.osgi-version>4.3.1.201210102024</osgi.compendium.osgi-version>
        <osgi.compendium.bundle.symbolic-name>osgi.cmpn</osgi.compendium.bundle.symbolic-name>
        <felix.framework.version>4.2.0</felix.framework.version>
        <felix.scr.version>1.8.2</felix.scr.version>
        <felix.scr.annotations.version>1.9.12</felix.scr.annotations.version>

        <gson.version>2.2.2</gson.version>
        <junit.version>4.10</junit.version>

    </properties>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <!--
                     3.6+ is JDK 9 compatible. See:
                     https://cwiki.apache.org/confluence/display/MAVEN/Java+9+-+Jigsaw
                 -->
                <version>3.6.1</version>
                <configuration>
                    <fork>true</fork>
                    <meminitial>128m</meminitial>
                    <maxmem>1024m</maxmem>
                    <source>${thermostat.java.version}</source>
                    <target>${thermostat.java.version}</target>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Bundle-SymbolicName>com.redhat.thermostat.lang.schema</Bundle-SymbolicName>
                        <Bundle-Vendor>Red Hat, Inc.</Bundle-Vendor>
                        <Export-Package>
                            com.redhat.thermostat.lang.schema,
                            com.redhat.thermostat.lang.schema.models,
                            com.redhat.thermostat.lang.schema.annotations
                        </Export-Package>
                        <!-- TODO: For the thread tab (i.e. thread plug-in) the web server
                             bundle requires model classes provided by said bundle. Since
                             no explicit imports (in the Java import sense) are in our code,
                             the maven bundle plugin seems to fail on us. Therefore we need
                             these explicit Import-Package instructions. If not there, this
                             results in class not found exceptions. This may be a problem
                             for user-provided bundles which contribute DAOs/models in the
                             same way. -->
                        <Private-Package>
                            com.redhat.thermostat.lang.schema.internal,
                        </Private-Package>
                        <!-- Do not autogenerate uses clauses in Manifests -->
                        <_nouses>true</_nouses>
                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.scr</artifactId>
            <version>${felix.scr.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.framework</artifactId>
            <version>${felix.framework.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.scr.annotations</artifactId>
            <version>${felix.scr.annotations.version}</version>
        </dependency>
        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <version>${gson.version}</version>
        </dependency>

        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>${junit.version}</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

</project>