Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize build #150

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions maven-resolver-api/pom.xml
Expand Up @@ -64,6 +64,10 @@
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions maven-resolver-connector-basic/pom.xml
Expand Up @@ -103,10 +103,6 @@

<build>
<plugins>
<plugin>
<groupId>org.eclipse.sisu</groupId>
<artifactId>sisu-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions maven-resolver-impl/pom.xml
Expand Up @@ -136,10 +136,6 @@

<build>
<plugins>
<plugin>
<groupId>org.eclipse.sisu</groupId>
<artifactId>sisu-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions maven-resolver-named-locks-hazelcast/pom.xml
Expand Up @@ -93,10 +93,6 @@

<build>
<plugins>
<plugin>
<groupId>org.eclipse.sisu</groupId>
<artifactId>sisu-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions maven-resolver-named-locks-redisson/pom.xml
Expand Up @@ -105,10 +105,6 @@

<build>
<plugins>
<plugin>
<groupId>org.eclipse.sisu</groupId>
<artifactId>sisu-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions maven-resolver-named-locks/pom.xml
Expand Up @@ -79,10 +79,6 @@

<build>
<plugins>
<plugin>
<groupId>org.eclipse.sisu</groupId>
<artifactId>sisu-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions maven-resolver-transport-classpath/pom.xml
Expand Up @@ -94,10 +94,6 @@

<build>
<plugins>
<plugin>
<groupId>org.eclipse.sisu</groupId>
<artifactId>sisu-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions maven-resolver-transport-file/pom.xml
Expand Up @@ -99,10 +99,6 @@

<build>
<plugins>
<plugin>
<groupId>org.eclipse.sisu</groupId>
<artifactId>sisu-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions maven-resolver-transport-http/pom.xml
Expand Up @@ -152,10 +152,6 @@

<build>
<plugins>
<plugin>
<groupId>org.eclipse.sisu</groupId>
<artifactId>sisu-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions maven-resolver-transport-wagon/pom.xml
Expand Up @@ -125,10 +125,6 @@

<build>
<plugins>
<plugin>
<groupId>org.eclipse.sisu</groupId>
<artifactId>sisu-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
Expand Down
130 changes: 117 additions & 13 deletions pom.xml
Expand Up @@ -282,6 +282,15 @@
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>org.eclipse.sisu</groupId>
<artifactId>org.eclipse.sisu.inject</artifactId>
<version>0.3.5</version>
<scope>compile</scope>
</dependency>
</dependencies>

<build>
<pluginManagement>
<plugins>
Expand Down Expand Up @@ -412,29 +421,82 @@
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.sisu</groupId>
<artifactId>sisu-maven-plugin</artifactId>
<version>${sisuVersion}</version>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<configuration>
<excludes combine.children="append">
<exclude>src/test/resources/**/*.ini</exclude>
<exclude>src/test/resources/**/*.txt</exclude>
<exclude>src/test/resources/ssl/*-store</exclude>
<exclude>.travis.yml</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
<version>6.1.0</version>
<executions>
<execution>
<id>generate-index</id>
<id>bnd-process</id>
<phase>process-classes</phase>
<goals>
<goal>main-index</goal>
<goal>bnd-process</goal>
</goals>
<configuration>
<bnd>
Bundle-SymbolicName: ${Bundle-SymbolicName}
# Export packages not containing the substring 'internal'
-exportcontents: ${removeall;${packages};${packages;NAMED;*internal*}}
# Reproducible build
-noextraheaders: true
</bnd>
<manifestPath>${project.build.directory}/bnd/META-INF/MANIFEST.MF</manifestPath>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.2.0</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-shared-utils</artifactId>
<version>3.3.4</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>copy-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<resources>
<resource>
<!-- use filtering to make sure the content is checked before being overwritten -->
<filtering>true</filtering>
<directory>${project.build.directory}/bnd</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<excludes combine.children="append">
<exclude>src/test/resources/**/*.ini</exclude>
<exclude>src/test/resources/**/*.txt</exclude>
<exclude>src/test/resources/ssl/*-store</exclude>
<exclude>.travis.yml</exclude>
</excludes>
<archive>
<manifestEntries>
<Automatic-Module-Name>${Automatic-Module-Name}</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
Expand All @@ -444,6 +506,7 @@
<executions>
<execution>
<id>bnd-process</id>
<phase>process-classes</phase>
<goals>
<goal>bnd-process</goal>
</goals>
Expand All @@ -455,6 +518,38 @@
# Reproducible build
-noextraheaders: true
</bnd>
<manifestPath>${project.build.directory}/bnd/META-INF/MANIFEST.MF</manifestPath>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.2.0</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-shared-utils</artifactId>
<version>3.3.4</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>copy-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<resources>
<resource>
<!-- use filtering to make sure the content is checked before being overwritten -->
<filtering>true</filtering>
<directory>${project.build.directory}/bnd</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
Expand Down Expand Up @@ -494,6 +589,15 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/package-info.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>

Expand Down