<?xml version="1.0" encoding="UTF-8"?>
    <!--

        Licensed to the Apache Software Foundation (ASF) under one or more
        contributor license agreements.  See the NOTICE file distributed with
        this work for additional information regarding copyright ownership.
        The ASF licenses this file to You under the Apache License, Version 2.0
        (the "License"); you may not use this file except in compliance with
        the License.  You may obtain a copy of the License at

           http://www.apache.org/licenses/LICENSE-2.0

        Unless required by applicable law or agreed to in writing, software
        distributed under the License is distributed on an "AS IS" BASIS,
        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
        See the License for the specific language governing permissions and
        limitations under the License.
    -->
<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">

    <modelVersion>4.0.0</modelVersion>
    <artifactId>mhus-ports</artifactId>
    <packaging>pom</packaging>
  <name>ports</name>
  <groupId>de.mhus.ports</groupId>
  <version>1.3.7</version>

  <description>A set of tools to improve OSGi frameworks and karaf</description>
  <url>http://www.mhus.de</url>

  <licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <scm>
    <url>https://github.com/mhus/mhus-osgi-tools</url>
    <connection>scm:git:https://github.com/mhus/mhus-osgi-tools/</connection>
  </scm>
  <developers>
    <developer>
      <id>mhu</id>
      <name>Mike Hummel</name>
      <email>mh@mhus.de</email>
      <url>http://www.mhus.de</url>
    </developer>
  </developers>
    <properties>
		<mhulib.version>3.5.0</mhulib.version>
		
        <scr.packages>*</scr.packages>
        <felix.scr.version>1.6.0</felix.scr.version>
        <karaf.version>4.2.3</karaf.version>
        <karaf.tool.version>${karaf.version}</karaf.tool.version>
        <bndlib.version>1.50.0</bndlib.version>
        <felix.metatype.version>1.0.10</felix.metatype.version>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<compileSource>11</compileSource>
        <bundle.plugin.version>4.1.0</bundle.plugin.version>
        <osgi.version>5.0.0</osgi.version>
		<vaadin.version>8.6.1</vaadin.version>
		<vaadin.plugin.version>${vaadin.version}</vaadin.plugin.version>
		<gwt.version>2.3.0</gwt.version>
		<gwt.plugin.version>2.2.0</gwt.plugin.version>
		<javax.mail.version>1.4.1</javax.mail.version>
		<javax.activation.version>1.1.1</javax.activation.version>
        <felix.version>4.2.4</felix.version>
        <felix.plugin.version>4.1.0</felix.plugin.version>
        <maven.version>2.0.9</maven.version>
		<dependency.jetty.version>8.1.14.v20131031</dependency.jetty.version>
		<pax.version>3.1.0</pax.version>
		<servlet.version>3.1.0</servlet.version>
      </properties>

    <modules>
    <!-- deprecated
	    <module>ports-common-discovery</module>
	    <module>ports-javaxt</module>
     -->
	    <module>ports-jrandtest</module>

	    <module>ports-flummi</module>
	    <module>ports-groovy</module>
	    <module>ports-javaxmail</module>
	    
	<!-- not changed since 1.3.4
	    <module>ports-gclib</module>
	 -->    
	    <module>vaadin-shared-deps</module>
	    <module>vaadin-addons</module>
    </modules>

   <build>
           <defaultGoal>install</defaultGoal>
	
    <plugins>
    
            <plugin>
                <groupId>org.apache.karaf.tooling</groupId>
                <artifactId>karaf-services-maven-plugin</artifactId>
            </plugin>
    
		<plugin>
		  <artifactId>maven-compiler-plugin</artifactId>
		  <version>3.8.0</version>
		  <configuration>
		    <source>${compileSource}</source>
		    <target>${compileSource}</target>
		  </configuration>
		</plugin>    

        <plugin>
		  <artifactId>maven-assembly-plugin</artifactId>
		  <version>2.1</version> 
		  <configuration>
		    <finalName>doc</finalName>
		    <descriptors>
		      <descriptor>descriptor.xml</descriptor>
		    </descriptors>
		  </configuration>
		</plugin> 

		<plugin>
	      <groupId>org.apache.maven.plugins</groupId>
	      <artifactId>maven-javadoc-plugin</artifactId>
	      <version>2.9.1</version>
	      <configuration>
	      	<failOnError>false</failOnError>
	      </configuration>
		  <executions>
		       <execution>
		         <id>attach-javadocs</id>
		         <goals>
		           <goal>jar</goal>
		         </goals>
		       </execution>
		     </executions>	      
	    </plugin>		

      <plugin>
          <groupId>org.sonatype.plugins</groupId>
          <artifactId>nexus-staging-maven-plugin</artifactId>
          <version>1.6.7</version>
          <extensions>true</extensions>
          <configuration>
              <serverId>ossrh</serverId>
              <nexusUrl>https://oss.sonatype.org/</nexusUrl>
              <autoReleaseAfterClose>true</autoReleaseAfterClose>
          </configuration>
      </plugin>

	    <plugin>
	      <groupId>org.apache.maven.plugins</groupId>
	      <artifactId>maven-source-plugin</artifactId>
	      <version>2.2.1</version>
	      <executions>
	        <execution>
	          <id>attach-sources</id>
	          <goals>
	            <goal>jar-no-fork</goal>
	          </goals>
	        </execution>
	      </executions>
	    </plugin>
	    				
    </plugins>
    
    	<pluginManagement>
			<plugins>
			<!-- 
                <plugin>
                    <groupId>de.mhus.ports.karaf.tooling</groupId>
                    <artifactId>karaf-services-maven-plugin</artifactId>
                    <version>${karaf.tool.version}</version>
                    <executions>
                        <execution>
                            <id>service-metadata-generate</id>
                            <phase>process-classes</phase>
                            <goals>
                                <goal>service-metadata-generate</goal>
                            </goals>
			                <configuration>
			                	<artifactInclude>.*mhu.*</artifactInclude>
			                </configuration>
                        </execution>
                    </executions>
                </plugin>
			 -->
			</plugins>    	
    	</pluginManagement>
    	    
  </build>

	<distributionManagement>
     <snapshotRepository>
	    <id>ossrh</id>
	    <url>https://oss.sonatype.org/content/repositories/snapshots</url>
	  </snapshotRepository>
	  <repository>
	    <id>ossrh</id>
	    <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
	  </repository>
	</distributionManagement>

        <profiles>
          <profile>
            <id>release</id>
            <activation>
              <property>
                <name>performRelease</name>
                <value>true</value>
              </property>
            </activation>
            <build>
              <plugins>
                <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-gpg-plugin</artifactId>
                  <version>1.4</version>
                  <configuration>
                    <passphrase>${gpg.passphrase}</passphrase>
                  </configuration>
                  <executions>
                    <execution>
                      <id>sign-artifacts</id>
                      <phase>verify</phase>
                      <goals>
                        <goal>sign</goal>
                      </goals>
                    </execution>
                  </executions>
                </plugin>
              </plugins>
            </build>
          </profile>

        </profiles>

	<dependencyManagement>
		<dependencies>
            <dependency>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <version>${felix.plugin.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.maven</groupId>
                <artifactId>maven-plugin-api</artifactId>
                <version>${maven.version}</version>
            </dependency>
		</dependencies>
	</dependencyManagement>

</project>
