628 lines
17 KiB
XML
628 lines
17 KiB
XML
<?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/maven-v4_0_0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>org.springframework.credhub</groupId>
|
|
<artifactId>spring-credhub-parent</artifactId>
|
|
<version>1.0.0.BUILD-SNAPSHOT</version>
|
|
|
|
<name>Spring CredHub</name>
|
|
<description>Parent project for Spring CredHub</description>
|
|
<packaging>pom</packaging>
|
|
|
|
<url>http://projects.spring.io/spring-credhub/</url>
|
|
|
|
<modules>
|
|
<module>spring-credhub-dependencies</module>
|
|
<module>spring-credhub-core</module>
|
|
<module>spring-credhub-cloud-connector</module>
|
|
<module>spring-credhub-demo</module>
|
|
</modules>
|
|
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<spring.version>4.3.7.RELEASE</spring.version>
|
|
<java.version>1.6</java.version>
|
|
<project.type>multi</project.type>
|
|
<dist.id>spring-credhub</dist.id>
|
|
<project.root>${basedir}</project.root>
|
|
</properties>
|
|
|
|
<inceptionYear>2017</inceptionYear>
|
|
|
|
<organization>
|
|
<name>Pivotal Software, Inc.</name>
|
|
<url>http://www.spring.io</url>
|
|
</organization>
|
|
|
|
<scm>
|
|
<url>https://github.com/spring-projects/spring-credhub</url>
|
|
<connection>scm:git:git://github.com/spring-projects/spring-credhub.git</connection>
|
|
<developerConnection>scm:git:ssh://git@github.com/spring-projects/spring-credhub.git</developerConnection>
|
|
<tag>HEAD</tag>
|
|
</scm>
|
|
|
|
<issueManagement>
|
|
<system>GitHub</system>
|
|
<url>https://github.com/spring-projects/spring-credhub/issues</url>
|
|
</issueManagement>
|
|
|
|
<ciManagement>
|
|
<system>Bamboo</system>
|
|
<url>https://build.spring.io/browse/SPRINGCREDHUB-CREDHUB</url>
|
|
</ciManagement>
|
|
|
|
<developers>
|
|
<developer>
|
|
<id>sfrederick</id>
|
|
<name>Scott Frederick</name>
|
|
</developer>
|
|
</developers>
|
|
|
|
<licenses>
|
|
<license>
|
|
<name>Apache License, Version 2.0</name>
|
|
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
|
|
<comments>
|
|
Copyright 2016 the original author or authors.
|
|
|
|
Licensed 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.
|
|
</comments>
|
|
</license>
|
|
</licenses>
|
|
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.credhub</groupId>
|
|
<artifactId>spring-credhub-dependencies</artifactId>
|
|
<version>1.0.0.BUILD-SNAPSHOT</version>
|
|
<scope>import</scope>
|
|
<type>pom</type>
|
|
</dependency>
|
|
|
|
<!-- Spring Framework -->
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-framework-bom</artifactId>
|
|
<version>${spring.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
|
|
<!-- Testing -->
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<version>4.12</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.mockito</groupId>
|
|
<artifactId>mockito-core</artifactId>
|
|
<version>2.7.22</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-test</artifactId>
|
|
<version>${spring.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.assertj</groupId>
|
|
<artifactId>assertj-core</artifactId>
|
|
<version>3.6.1</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.valid4j</groupId>
|
|
<artifactId>json-path-matchers</artifactId>
|
|
<version>1.1</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<configuration>
|
|
<source>${java.version}</source>
|
|
<target>${java.version}</target>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<includes>
|
|
<include>**/*Tests.java</include>
|
|
</includes>
|
|
<excludes>
|
|
<exclude>**/Abstract*.java</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>attach-sources</id>
|
|
<goals>
|
|
<goal>jar</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>animal-sniffer-maven-plugin</artifactId>
|
|
<configuration>
|
|
<signature>
|
|
<groupId>org.codehaus.mojo.signature</groupId>
|
|
<artifactId>java16</artifactId>
|
|
<version>1.0</version>
|
|
</signature>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>enforce-java-6</id>
|
|
<phase>test</phase>
|
|
<goals>
|
|
<goal>check</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
|
|
<pluginManagement>
|
|
<!--
|
|
Default versioned declarations of managed plugins
|
|
to be overridden when the distribute profile is active.
|
|
If this section was missing, Maven would complain about
|
|
missing version numbers for executions without the
|
|
profile active.
|
|
-->
|
|
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.5.1</version>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>2.19.1</version>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
<version>3.0.1</version>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
<version>2.10.4</version>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-release-plugin</artifactId>
|
|
<version>2.5.3</version>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
<version>2.8.2</version>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<version>2.10</version>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-site-plugin</artifactId>
|
|
<version>3.5.1</version>
|
|
<dependencies>
|
|
<dependency><!-- add support for ssh/scp -->
|
|
<groupId>org.apache.maven.wagon</groupId>
|
|
<artifactId>wagon-ssh</artifactId>
|
|
<version>1.0</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-gpg-plugin</artifactId>
|
|
<version>1.6</version>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>animal-sniffer-maven-plugin</artifactId>
|
|
<version>1.15</version>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.asciidoctor</groupId>
|
|
<artifactId>asciidoctor-maven-plugin</artifactId>
|
|
<version>1.5.3</version>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<version>1.8</version>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<version>2.6</version>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>wagon-maven-plugin</artifactId>
|
|
<version>1.0</version>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
</pluginManagement>
|
|
</build>
|
|
|
|
<repositories>
|
|
<repository>
|
|
<id>spring-milestone</id>
|
|
<name>Spring Milestone Repository</name>
|
|
<url>https://repo.spring.io/libs-milestone-local</url>
|
|
</repository>
|
|
</repositories>
|
|
|
|
<profiles>
|
|
<profile>
|
|
|
|
<id>springNext</id>
|
|
|
|
<properties>
|
|
<spring.version>4.3.8.BUILD-SNAPSHOT</spring.version>
|
|
</properties>
|
|
|
|
<repositories>
|
|
<repository>
|
|
<id>spring-libs-snapshot</id>
|
|
<url>https://repo.spring.io/libs-snapshot</url>
|
|
<snapshots>
|
|
<enabled>true</enabled>
|
|
</snapshots>
|
|
</repository>
|
|
</repositories>
|
|
</profile>
|
|
|
|
<profile>
|
|
|
|
<id>spring5</id>
|
|
|
|
<properties>
|
|
<spring.version>5.0.0.BUILD-SNAPSHOT</spring.version>
|
|
</properties>
|
|
|
|
<repositories>
|
|
<repository>
|
|
<id>spring-libs-snapshot</id>
|
|
<url>https://repo.spring.io/libs-snapshot</url>
|
|
<snapshots>
|
|
<enabled>true</enabled>
|
|
</snapshots>
|
|
</repository>
|
|
</repositories>
|
|
</profile>
|
|
|
|
<profile>
|
|
|
|
<id>milestone</id>
|
|
|
|
<distributionManagement>
|
|
<repository>
|
|
<id>spring-milestone</id>
|
|
<name>Spring Milestone Repository</name>
|
|
<url>http://repo.spring.io/libs-milestone-local</url>
|
|
</repository>
|
|
</distributionManagement>
|
|
|
|
</profile>
|
|
|
|
<profile>
|
|
|
|
<!-- Profile to be run on the CI server, JARs JavaDocs -->
|
|
|
|
<id>ci</id>
|
|
|
|
<build>
|
|
<plugins>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>jar</goal>
|
|
</goals>
|
|
<phase>package</phase>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<excludePackageNames>org.springframework.credhub.demo</excludePackageNames>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
<profile>
|
|
|
|
<!--
|
|
Profile to be activated when building the distribution artifacts.
|
|
|
|
Generates reference documentation, aggregates JavaDoc etc. Has to be combined with
|
|
profiles "release" or "milestone" to deploy artifacts into the appropriate places.
|
|
-->
|
|
|
|
<id>distribute</id>
|
|
|
|
<properties>
|
|
<shared.resources>${project.build.directory}/shared-resources</shared.resources>
|
|
<maven.install.skip>true</maven.install.skip>
|
|
<skipTests>true</skipTests>
|
|
</properties>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<!--
|
|
Unpacks the content of spring-data-build-resources into the shared resources folder.
|
|
-->
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>unpack-shared-resources</id>
|
|
<goals>
|
|
<goal>unpack-dependencies</goal>
|
|
</goals>
|
|
<phase>generate-resources</phase>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<includeGroupIds>org.springframework.data</includeGroupIds>
|
|
<includeArtifactIds>spring-data-build-resources</includeArtifactIds>
|
|
<includeTypes>zip</includeTypes>
|
|
<excludeTransitive>true</excludeTransitive>
|
|
<outputDirectory>${shared.resources}</outputDirectory>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!--
|
|
Configures JavaDoc generation.
|
|
-->
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
<configuration>
|
|
<finalName>spring-credhub-${project.version}</finalName>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>aggregate-javadoc</id>
|
|
<goals>
|
|
<goal>aggregate-jar</goal>
|
|
</goals>
|
|
<phase>package</phase>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<!--
|
|
Copies all namespaces schemas to target/schemas flatten the directory structure.
|
|
Depended on by the site.xml assembly descriptor.
|
|
-->
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<executions>
|
|
|
|
<execution>
|
|
<id>copy-documentation-resources</id>
|
|
<phase>generate-resources</phase>
|
|
<configuration>
|
|
<target>
|
|
<copy todir="${project.root}/target/site/reference/html">
|
|
<fileset dir="${shared.resources}/asciidoc" erroronmissingdir="false">
|
|
<include name="**/*.css" />
|
|
</fileset>
|
|
<flattenmapper />
|
|
</copy>
|
|
<copy todir="${project.root}/target/site/reference/html/images">
|
|
<fileset dir="${basedir}/src/main/asciidoc" erroronmissingdir="false">
|
|
<include name="**/*.png" />
|
|
<include name="**/*.gif" />
|
|
<include name="**/*.jpg" />
|
|
</fileset>
|
|
<flattenmapper />
|
|
</copy>
|
|
</target>
|
|
</configuration>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>package-and-attach-docs-zip</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<tasks>
|
|
<zip destfile="${project.build.directory}/spring-credhub-${project.version}.zip">
|
|
<zipfileset src="${project.build.directory}/spring-credhub-${project.version}-javadoc.jar" prefix="api" />
|
|
<!--<fileset dir="${project.build.directory}/content"/>-->
|
|
</zip>
|
|
</tasks>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
<pluginManagement>
|
|
<plugins>
|
|
|
|
<!--
|
|
JavaDoc
|
|
-->
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
<configuration>
|
|
<breakiterator>true</breakiterator>
|
|
<header>${project.name}</header>
|
|
<source>${java.version}</source>
|
|
<quiet>true</quiet>
|
|
<javadocDirectory>${shared.resources}/javadoc</javadocDirectory>
|
|
<overview>${shared.resources}/javadoc/overview.html</overview>
|
|
<stylesheetfile>${shared.resources}/javadoc/spring-javadoc.css</stylesheetfile>
|
|
<!-- copies doc-files subdirectory which contains image resources -->
|
|
<docfilessubdirs>true</docfilessubdirs>
|
|
<additionalparam>-Xdoclint:none</additionalparam>
|
|
<links>
|
|
<link>http://docs.spring.io/spring/docs/current/javadoc-api/</link>
|
|
<link>http://docs.oracle.com/javase/6/docs/api</link>
|
|
</links>
|
|
<excludePackageNames>org.springframework.credhub.demo</excludePackageNames>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!--
|
|
Asciidoctor
|
|
-->
|
|
|
|
<plugin>
|
|
<groupId>org.asciidoctor</groupId>
|
|
<artifactId>asciidoctor-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>html</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>process-asciidoc</goal>
|
|
</goals>
|
|
<configuration>
|
|
<backend>html5</backend>
|
|
<outputDirectory>${project.root}/target/site/reference/html</outputDirectory>
|
|
<sourceHighlighter>prettify</sourceHighlighter>
|
|
<attributes>
|
|
<linkcss>true</linkcss>
|
|
<icons>font</icons>
|
|
<sectanchors>true</sectanchors>
|
|
<stylesheet>spring.css</stylesheet>
|
|
</attributes>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
|
|
<configuration>
|
|
<sourceDirectory>${project.root}/src/main/asciidoc</sourceDirectory>
|
|
<sourceDocumentName>index.adoc</sourceDocumentName>
|
|
<doctype>book</doctype>
|
|
<attributes>
|
|
<version>${project.version}</version>
|
|
<projectName>${project.name}</projectName>
|
|
<projectVersion>${project.version}</projectVersion>
|
|
<springVersion>${spring.version}</springVersion>
|
|
<allow-uri-read>true</allow-uri-read>
|
|
<toclevels>3</toclevels>
|
|
<numbered>true</numbered>
|
|
</attributes>
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<!--
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
<uniqueVersion>false</uniqueVersion>
|
|
</configuration>
|
|
</plugin>
|
|
-->
|
|
</plugins>
|
|
</pluginManagement>
|
|
</build>
|
|
|
|
<repositories>
|
|
<repository>
|
|
<id>spring-libs-snapshot</id>
|
|
<url>https://repo.spring.io/libs-snapshot</url>
|
|
<snapshots>
|
|
<enabled>true</enabled>
|
|
</snapshots>
|
|
</repository>
|
|
</repositories>
|
|
|
|
<pluginRepositories>
|
|
<pluginRepository>
|
|
<id>spring-plugins-release</id>
|
|
<url>https://repo.spring.io/plugins-release</url>
|
|
</pluginRepository>
|
|
</pluginRepositories>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|