Add flatten plugin to publish poms with no hierarchy
Also strips out repositories and profiles and other stuff that users don't need in their dependency management. And adds the license and project metadata automatically.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -24,3 +24,4 @@ _site/
|
|||||||
coverage-error.log
|
coverage-error.log
|
||||||
.apt_generated
|
.apt_generated
|
||||||
credentials.yml
|
credentials.yml
|
||||||
|
.flattened-pom.xml
|
||||||
186
pom.xml
186
pom.xml
@@ -61,6 +61,37 @@
|
|||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>flatten-maven-plugin</artifactId>
|
||||||
|
<version>1.0.0</version>
|
||||||
|
<configuration>
|
||||||
|
<flattenMode>oss</flattenMode>
|
||||||
|
<pomElements>
|
||||||
|
<repositories>flatten</repositories>
|
||||||
|
</pomElements>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<!-- enable flattening -->
|
||||||
|
<execution>
|
||||||
|
<id>flatten</id>
|
||||||
|
<phase>process-resources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>flatten</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
<!-- ensure proper cleanup -->
|
||||||
|
<execution>
|
||||||
|
<id>flatten.clean</id>
|
||||||
|
<phase>clean</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>clean</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
<pluginManagement>
|
<pluginManagement>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
@@ -92,74 +123,97 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.eclipse.m2e</groupId>
|
||||||
|
<artifactId>lifecycle-mapping</artifactId>
|
||||||
|
<version>1.0.0</version>
|
||||||
|
<configuration>
|
||||||
|
<lifecycleMappingMetadata>
|
||||||
|
<pluginExecutions>
|
||||||
|
<pluginExecution>
|
||||||
|
<pluginExecutionFilter>
|
||||||
|
<groupId>
|
||||||
|
org.codehaus.mojo
|
||||||
|
</groupId>
|
||||||
|
<artifactId>
|
||||||
|
flatten-maven-plugin
|
||||||
|
</artifactId>
|
||||||
|
<versionRange>
|
||||||
|
[1.0.0,)
|
||||||
|
</versionRange>
|
||||||
|
<goals>
|
||||||
|
<goal>flatten</goal>
|
||||||
|
</goals>
|
||||||
|
</pluginExecutionFilter>
|
||||||
|
<action>
|
||||||
|
<ignore></ignore>
|
||||||
|
</action>
|
||||||
|
</pluginExecution>
|
||||||
|
</pluginExecutions>
|
||||||
|
</lifecycleMappingMetadata>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</pluginManagement>
|
</pluginManagement>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<profiles>
|
<repositories>
|
||||||
<profile>
|
<repository>
|
||||||
<id>spring</id>
|
<id>spring-snapshots</id>
|
||||||
<activation>
|
<name>Spring Snapshots</name>
|
||||||
<activeByDefault>true</activeByDefault>
|
<url>https://repo.spring.io/libs-snapshot-local</url>
|
||||||
</activation>
|
<snapshots>
|
||||||
<repositories>
|
<enabled>true</enabled>
|
||||||
<repository>
|
</snapshots>
|
||||||
<id>spring-snapshots</id>
|
<releases>
|
||||||
<name>Spring Snapshots</name>
|
<enabled>false</enabled>
|
||||||
<url>https://repo.spring.io/libs-snapshot-local</url>
|
</releases>
|
||||||
<snapshots>
|
</repository>
|
||||||
<enabled>true</enabled>
|
<repository>
|
||||||
</snapshots>
|
<id>spring-milestones</id>
|
||||||
<releases>
|
<name>Spring Milestones</name>
|
||||||
<enabled>false</enabled>
|
<url>https://repo.spring.io/libs-milestone-local</url>
|
||||||
</releases>
|
<snapshots>
|
||||||
</repository>
|
<enabled>false</enabled>
|
||||||
<repository>
|
</snapshots>
|
||||||
<id>spring-milestones</id>
|
</repository>
|
||||||
<name>Spring Milestones</name>
|
<repository>
|
||||||
<url>https://repo.spring.io/libs-milestone-local</url>
|
<id>spring-releases</id>
|
||||||
<snapshots>
|
<name>Spring Releases</name>
|
||||||
<enabled>false</enabled>
|
<url>https://repo.spring.io/release</url>
|
||||||
</snapshots>
|
<snapshots>
|
||||||
</repository>
|
<enabled>false</enabled>
|
||||||
<repository>
|
</snapshots>
|
||||||
<id>spring-releases</id>
|
</repository>
|
||||||
<name>Spring Releases</name>
|
</repositories>
|
||||||
<url>https://repo.spring.io/release</url>
|
<pluginRepositories>
|
||||||
<snapshots>
|
<pluginRepository>
|
||||||
<enabled>false</enabled>
|
<id>spring-snapshots</id>
|
||||||
</snapshots>
|
<name>Spring Snapshots</name>
|
||||||
</repository>
|
<url>https://repo.spring.io/libs-snapshot-local</url>
|
||||||
</repositories>
|
<snapshots>
|
||||||
<pluginRepositories>
|
<enabled>true</enabled>
|
||||||
<pluginRepository>
|
</snapshots>
|
||||||
<id>spring-snapshots</id>
|
<releases>
|
||||||
<name>Spring Snapshots</name>
|
<enabled>false</enabled>
|
||||||
<url>https://repo.spring.io/libs-snapshot-local</url>
|
</releases>
|
||||||
<snapshots>
|
</pluginRepository>
|
||||||
<enabled>true</enabled>
|
<pluginRepository>
|
||||||
</snapshots>
|
<id>spring-milestones</id>
|
||||||
<releases>
|
<name>Spring Milestones</name>
|
||||||
<enabled>false</enabled>
|
<url>https://repo.spring.io/libs-milestone-local</url>
|
||||||
</releases>
|
<snapshots>
|
||||||
</pluginRepository>
|
<enabled>false</enabled>
|
||||||
<pluginRepository>
|
</snapshots>
|
||||||
<id>spring-milestones</id>
|
</pluginRepository>
|
||||||
<name>Spring Milestones</name>
|
<pluginRepository>
|
||||||
<url>https://repo.spring.io/libs-milestone-local</url>
|
<id>spring-releases</id>
|
||||||
<snapshots>
|
<name>Spring Releases</name>
|
||||||
<enabled>false</enabled>
|
<url>https://repo.spring.io/libs-release-local</url>
|
||||||
</snapshots>
|
<snapshots>
|
||||||
</pluginRepository>
|
<enabled>false</enabled>
|
||||||
<pluginRepository>
|
</snapshots>
|
||||||
<id>spring-releases</id>
|
</pluginRepository>
|
||||||
<name>Spring Releases</name>
|
</pluginRepositories>
|
||||||
<url>https://repo.spring.io/libs-release-local</url>
|
|
||||||
<snapshots>
|
|
||||||
<enabled>false</enabled>
|
|
||||||
</snapshots>
|
|
||||||
</pluginRepository>
|
|
||||||
</pluginRepositories>
|
|
||||||
</profile>
|
|
||||||
</profiles>
|
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
@@ -75,56 +75,9 @@
|
|||||||
<profiles>
|
<profiles>
|
||||||
<profile>
|
<profile>
|
||||||
<id>spring</id>
|
<id>spring</id>
|
||||||
<repositories>
|
<activation>
|
||||||
<repository>
|
<activeByDefault>true</activeByDefault>
|
||||||
<id>spring-snapshots</id>
|
</activation>
|
||||||
<name>Spring Snapshots</name>
|
|
||||||
<url>https://repo.spring.io/libs-snapshot-local</url>
|
|
||||||
<snapshots>
|
|
||||||
<enabled>true</enabled>
|
|
||||||
</snapshots>
|
|
||||||
<releases>
|
|
||||||
<enabled>false</enabled>
|
|
||||||
</releases>
|
|
||||||
</repository>
|
|
||||||
<repository>
|
|
||||||
<id>spring-milestones</id>
|
|
||||||
<name>Spring Milestones</name>
|
|
||||||
<url>https://repo.spring.io/libs-milestone-local</url>
|
|
||||||
<snapshots>
|
|
||||||
<enabled>false</enabled>
|
|
||||||
</snapshots>
|
|
||||||
</repository>
|
|
||||||
<repository>
|
|
||||||
<id>spring-releases</id>
|
|
||||||
<name>Spring Releases</name>
|
|
||||||
<url>https://repo.spring.io/release</url>
|
|
||||||
<snapshots>
|
|
||||||
<enabled>false</enabled>
|
|
||||||
</snapshots>
|
|
||||||
</repository>
|
|
||||||
</repositories>
|
|
||||||
<pluginRepositories>
|
|
||||||
<pluginRepository>
|
|
||||||
<id>spring-snapshots</id>
|
|
||||||
<name>Spring Snapshots</name>
|
|
||||||
<url>https://repo.spring.io/libs-snapshot-local</url>
|
|
||||||
<snapshots>
|
|
||||||
<enabled>true</enabled>
|
|
||||||
</snapshots>
|
|
||||||
<releases>
|
|
||||||
<enabled>false</enabled>
|
|
||||||
</releases>
|
|
||||||
</pluginRepository>
|
|
||||||
<pluginRepository>
|
|
||||||
<id>spring-milestones</id>
|
|
||||||
<name>Spring Milestones</name>
|
|
||||||
<url>https://repo.spring.io/libs-milestone-local</url>
|
|
||||||
<snapshots>
|
|
||||||
<enabled>false</enabled>
|
|
||||||
</snapshots>
|
|
||||||
</pluginRepository>
|
|
||||||
</pluginRepositories>
|
|
||||||
</profile>
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
Reference in New Issue
Block a user