This is an automated email from the ASF dual-hosted git repository. sseifert pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/sling-maven-sling-plugin.git
The following commit(s) were added to refs/heads/master by this push: new b063051 introduce parent pom with special settings for multi module build b063051 is described below commit b063051fd6567c361011039a266c22363286995f Author: sseifert <sseif...@pro-vision.de> AuthorDate: Fri Jan 11 17:37:00 2019 +0100 introduce parent pom with special settings for multi module build --- parent/pom.xml | 75 ++++++++++++++++++++++++++++++++++++++++++++++ pom.xml | 7 +++-- relocate/pom.xml | 6 ++-- sling-maven-plugin/pom.xml | 6 ++-- 4 files changed, 85 insertions(+), 9 deletions(-) diff --git a/parent/pom.xml b/parent/pom.xml new file mode 100644 index 0000000..7af7513 --- /dev/null +++ b/parent/pom.xml @@ -0,0 +1,75 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + 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/xsd/maven-4.0.0.xsd"> + + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.apache.sling</groupId> + <artifactId>sling</artifactId> + <version>34</version> + <relativePath /> + </parent> + + <artifactId>sling-maven-plugin.parent</artifactId> + <version>2.4.0-SNAPSHOT</version> + <packaging>pom</packaging> + + <name>Apache Sling Maven Plugin Parent</name> + + <build> + <pluginManagement> + <plugins> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-release-plugin</artifactId> + <configuration> + <autoVersionSubmodules>true</autoVersionSubmodules> + </configuration> + </plugin> + + </plugins> + </pluginManagement> + </build> + + <profiles> + <profile> + <id>apache-release</id> + <build> + <plugins> + <!-- Set runOnlyAtExecutionRoot=false to make sure each jar file get's it source-release.zip attachment --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-assembly-plugin</artifactId> + <executions> + <execution> + <id>source-release-assembly</id> + <configuration> + <runOnlyAtExecutionRoot>false</runOnlyAtExecutionRoot> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> + +</project> diff --git a/pom.xml b/pom.xml index fcd4267..f7bc145 100644 --- a/pom.xml +++ b/pom.xml @@ -22,9 +22,9 @@ <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.apache.sling</groupId> - <artifactId>sling</artifactId> - <version>34</version> - <relativePath /> + <artifactId>sling-maven-plugin.parent</artifactId> + <version>2.4.0-SNAPSHOT</version> + <relativePath>parent/pom.xml</relativePath> </parent> <artifactId>sling-maven-plugin.reactor</artifactId> @@ -41,6 +41,7 @@ </scm> <modules> + <module>parent</module> <module>sling-maven-plugin</module> <module>relocate</module> </modules> diff --git a/relocate/pom.xml b/relocate/pom.xml index 47cfe0e..fafee0b 100644 --- a/relocate/pom.xml +++ b/relocate/pom.xml @@ -22,9 +22,9 @@ <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.apache.sling</groupId> - <artifactId>sling</artifactId> - <version>34</version> - <relativePath /> + <artifactId>sling-maven-plugin.parent</artifactId> + <version>2.4.0-SNAPSHOT</version> + <relativePath>../parent/pom.xml</relativePath> </parent> <artifactId>maven-sling-plugin</artifactId> diff --git a/sling-maven-plugin/pom.xml b/sling-maven-plugin/pom.xml index efb61c0..3a1213c 100644 --- a/sling-maven-plugin/pom.xml +++ b/sling-maven-plugin/pom.xml @@ -22,9 +22,9 @@ <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.apache.sling</groupId> - <artifactId>sling</artifactId> - <version>34</version> - <relativePath /> + <artifactId>sling-maven-plugin.parent</artifactId> + <version>2.4.0-SNAPSHOT</version> + <relativePath>../parent/pom.xml</relativePath> </parent> <artifactId>sling-maven-plugin</artifactId>