Browse Source

#181 - Remove repositories declaration from published pom.

We now use the Maven flatten plugin to remove repositories from the POM.

Also remove Java 8 from TravisCI as Java 8 can no longer be installed on Travis.
pull/1188/head
Mark Paluch 6 years ago
parent
commit
5ef8285288
  1. 1
      .gitignore
  2. 10
      .travis.yml
  3. 35
      pom.xml

1
.gitignore vendored

@ -2,6 +2,7 @@ target/
.idea/ .idea/
.settings/ .settings/
*.iml *.iml
.flattened-pom.xml
.project .project
.classpath .classpath
.springBeans .springBeans

10
.travis.yml

@ -2,8 +2,6 @@ language: java
matrix: matrix:
include: include:
- jdk: oraclejdk8
env: JDK='Oracle JDK 8'
- jdk: oraclejdk9 - jdk: oraclejdk9
env: JDK='Oracle JDK 9' env: JDK='Oracle JDK 9'
- env: - env:
@ -14,6 +12,10 @@ matrix:
- JDK='Oracle JDK 11' - JDK='Oracle JDK 11'
- NO_JACOCO='true' - NO_JACOCO='true'
before_install: wget https://github.com/sormuras/bach/raw/master/install-jdk.sh && . ./install-jdk.sh -F 11 before_install: wget https://github.com/sormuras/bach/raw/master/install-jdk.sh && . ./install-jdk.sh -F 11
- env:
- JDK='Oracle JDK 12'
- NO_JACOCO='true'
before_install: wget https://github.com/sormuras/bach/raw/master/install-jdk.sh && . ./install-jdk.sh -F 12
cache: cache:
directories: directories:
@ -28,5 +30,5 @@ services:
install: true install: true
script: script:
- "mvn -version" - "./mvnw -version"
- "mvn clean dependency:list test -Pall-dbs${NO_JACOCO:+',no-jacoco'} -Dsort -U" - "./mvnw clean dependency:list test -Pall-dbs${NO_JACOCO:+',no-jacoco'} -Dsort -U"

35
pom.xml

@ -311,10 +311,12 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId> <artifactId>maven-assembly-plugin</artifactId>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.asciidoctor</groupId> <groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId> <artifactId>asciidoctor-maven-plugin</artifactId>
@ -339,6 +341,38 @@
</attributes> </attributes>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.1.0</version>
<executions>
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
<configuration>
<updatePomFile>true</updatePomFile>
<flattenMode>oss</flattenMode>
<pomElements>
<pluginManagement>keep</pluginManagement>
<properties>keep</properties>
<parent>expand</parent>
<repositories>remove</repositories>
</pomElements>
</configuration>
</execution>
<execution>
<id>flatten-clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>
@ -359,7 +393,6 @@
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
</profile> </profile>
</profiles> </profiles>

Loading…
Cancel
Save