-
Notifications
You must be signed in to change notification settings - Fork 17
chore: DevOps mvn install fail early
#324
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -268,6 +268,7 @@ | |
| </plugins> | ||
| </pluginManagement> | ||
| <plugins> | ||
| <!-- phase: validate --> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-enforcer-plugin</artifactId> | ||
|
|
@@ -401,6 +402,93 @@ | |
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| <!-- phase: process-sources --> | ||
| <plugin> | ||
| <groupId>com.diffplug.spotless</groupId> | ||
| <artifactId>spotless-maven-plugin</artifactId> | ||
| <version>${spotless.version}</version> | ||
| <configuration> | ||
| <skip>${spotless.skip}</skip> | ||
| <java> | ||
| <!-- https://github.com/diffplug/spotless/tree/main/plugin-maven#java --> | ||
| <removeUnusedImports/> | ||
| <googleJavaFormat/> | ||
| </java> | ||
| <pom> | ||
| <!-- https://github.com/diffplug/spotless/tree/main/plugin-maven#maven-pom --> | ||
| <includes> | ||
| <include>**/pom.xml</include> | ||
| </includes> | ||
| <encoding>${project.build.sourceEncoding}</encoding> | ||
| <sortPom> | ||
| <expandEmptyElements>false</expandEmptyElements> | ||
| </sortPom> | ||
| </pom> | ||
| </configuration> | ||
| <executions> | ||
| <execution> | ||
| <!-- compile:apply instead of the default validate:check --> | ||
| <!-- because we want it to run AFTER the OpenAPI generator and FIX (apply) the generated code --> | ||
| <goals> | ||
| <goal>apply</goal> | ||
| </goals> | ||
| <phase>process-sources</phase> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| <!-- phase: generate-resources --> | ||
| <plugin> | ||
| <groupId>org.codehaus.mojo</groupId> | ||
| <artifactId>license-maven-plugin</artifactId> | ||
| <version>2.5.0</version> | ||
| <configuration> | ||
| <acceptPomPackaging>true</acceptPomPackaging> | ||
| <licenseName>apache_v2</licenseName> | ||
| <failOnBlacklist>true</failOnBlacklist> | ||
|
Check warning on line 447 in pom.xml
|
||
| <failOnMissing>true</failOnMissing> | ||
| <excludedScopes>test</excludedScopes> | ||
| <includedLicenses> | ||
| <includedLicense>The MIT License</includedLicense> | ||
| <includedLicense>Apache Software License - Version 2.0</includedLicense> | ||
| <includedLicense>ISC</includedLicense> | ||
| <includedLicense>The BSD 3-Clause License</includedLicense> | ||
| <includedLicense>WTFPL</includedLicense> | ||
| <includedLicense>CC-BY</includedLicense> | ||
| <includedLicense>CC0</includedLicense> | ||
| <includedLicense>Unlicense</includedLicense> | ||
| <includedLicense>Public Domain</includedLicense> | ||
|
|
||
| <!-- other licenses as needed --> | ||
| <includedLicense>Eclipse Distribution License - v 1.0</includedLicense> | ||
| <includedLicense>Bouncy Castle Licence</includedLicense> | ||
| </includedLicenses> | ||
| <licenseMerges> | ||
| <licenseMerge>Apache Software License - Version 2.0|Apache License Version 2.0|Apache 2.0| | ||
| The Apache License, Version 2.0|Apache License, Version 2.0|Apache-2.0| | ||
| The Apache Software License, Version 2.0|Apache License 2.0</licenseMerge> | ||
| <licenseMerge>The MIT License|MIT License|The MIT License (MIT)|MIT|MIT-0</licenseMerge> | ||
| <licenseMerge>The BSD 3-Clause License|BSD License 3|The BSD License|BSD-3-Clause|BSD-2-Clause|BSD licence</licenseMerge> | ||
| <licenseMerge>Eclipse Distribution License - v 1.0|EDL 1.0</licenseMerge> | ||
| <licenseMerge>Eclipse Public License v2.0|EPL 2.0</licenseMerge> | ||
| <licenseMerge>Public Domain|Public Domain, per Creative Commons CC0|The JSON License</licenseMerge> | ||
| </licenseMerges> | ||
| </configuration> | ||
| <executions> | ||
| <execution> | ||
| <id>add-third-party</id> | ||
| <goals> | ||
| <goal>add-third-party</goal> | ||
| </goals> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| <!-- phase: process-resources and process-test-resources --> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-resources-plugin</artifactId> | ||
| <version>3.3.1</version> | ||
| </plugin> | ||
| <!-- phase: test-compile --> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-dependency-plugin</artifactId> | ||
|
|
@@ -452,39 +540,7 @@ | |
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>com.diffplug.spotless</groupId> | ||
| <artifactId>spotless-maven-plugin</artifactId> | ||
| <version>${spotless.version}</version> | ||
| <configuration> | ||
| <skip>${spotless.skip}</skip> | ||
| <java> | ||
| <!-- https://github.com/diffplug/spotless/tree/main/plugin-maven#java --> | ||
| <removeUnusedImports/> | ||
| <googleJavaFormat/> | ||
| </java> | ||
| <pom> | ||
| <!-- https://github.com/diffplug/spotless/tree/main/plugin-maven#maven-pom --> | ||
| <includes> | ||
| <include>**/pom.xml</include> | ||
| </includes> | ||
| <encoding>${project.build.sourceEncoding}</encoding> | ||
| <sortPom> | ||
| <expandEmptyElements>false</expandEmptyElements> | ||
| </sortPom> | ||
| </pom> | ||
| </configuration> | ||
| <executions> | ||
| <execution> | ||
| <!-- compile:apply instead of the default validate:check --> | ||
| <!-- because we want it to run AFTER the OpenAPI generator and FIX (apply) the generated code --> | ||
| <goals> | ||
| <goal>apply</goal> | ||
| </goals> | ||
| <phase>process-sources</phase> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| <!-- phase: process-test-classes --> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-checkstyle-plugin</artifactId> | ||
|
|
@@ -510,7 +566,7 @@ | |
| <goals> | ||
| <goal>check</goal> | ||
| </goals> | ||
| <phase>verify</phase> | ||
| <phase>process-test-classes</phase> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
|
|
@@ -540,31 +596,18 @@ | |
| <goals> | ||
| <goal>check</goal> | ||
| </goals> | ||
| <phase>verify</phase> | ||
| <phase>process-test-classes</phase> | ||
CharlesDuboisSAP marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| <!-- phase: test --> | ||
| <plugin> | ||
| <groupId>com.github.spotbugs</groupId> | ||
| <artifactId>spotbugs-maven-plugin</artifactId> | ||
| <version>4.8.6.6</version> | ||
| <configuration> | ||
| <includeFilterFile>${project.rootdir}/.pipeline/spotbugs.xml</includeFilterFile> | ||
| <!-- Exclude generated clients --> | ||
| <excludeFilterFile>${project.rootdir}/.pipeline/spotbugs-exclusions.xml</excludeFilterFile> | ||
| <effort>Max</effort> | ||
| <threshold>Low</threshold> | ||
| <maxHeap>2048</maxHeap> | ||
| </configuration> | ||
| <executions> | ||
| <execution> | ||
| <goals> | ||
| <goal>check</goal> | ||
| </goals> | ||
| <phase>verify</phase> | ||
| </execution> | ||
| </executions> | ||
| <!-- Needed because GitHub actions uses an old Maven version <3.9.0 --> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-surefire-plugin</artifactId> | ||
| <version>${surefire.version}</version> | ||
| </plugin> | ||
| <!-- phase: verify --> | ||
| <plugin> | ||
| <groupId>org.jacoco</groupId> | ||
| <artifactId>jacoco-maven-plugin</artifactId> | ||
|
|
@@ -584,19 +627,21 @@ | |
| <goals> | ||
| <goal>prepare-agent</goal> | ||
| </goals> | ||
| <phase>initialize</phase> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what does this change do?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's redundant, the default is already initialize |
||
| </execution> | ||
| <execution> | ||
| <id>default-report</id> | ||
| <goals> | ||
| <goal>report</goal> | ||
| </goals> | ||
| <phase>prepare-package</phase> | ||
| <phase>verify</phase> | ||
CharlesDuboisSAP marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| </execution> | ||
| <execution> | ||
| <id>default-check</id> | ||
| <goals> | ||
| <goal>check</goal> | ||
| </goals> | ||
| <phase>verify</phase> | ||
| <configuration> | ||
| <rules> | ||
| <rule> | ||
|
|
@@ -640,16 +685,27 @@ | |
| </executions> | ||
| </plugin> | ||
| <plugin> | ||
| <!-- Needed because GitHub actions uses an old Maven version <3.9.0 --> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-surefire-plugin</artifactId> | ||
| <version>${surefire.version}</version> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-resources-plugin</artifactId> | ||
| <version>3.3.1</version> | ||
| <groupId>com.github.spotbugs</groupId> | ||
| <artifactId>spotbugs-maven-plugin</artifactId> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. SpotBugs is last after Jacoco |
||
| <version>4.8.6.6</version> | ||
| <configuration> | ||
| <includeFilterFile>${project.rootdir}/.pipeline/spotbugs.xml</includeFilterFile> | ||
| <!-- Exclude generated clients --> | ||
| <excludeFilterFile>${project.rootdir}/.pipeline/spotbugs-exclusions.xml</excludeFilterFile> | ||
| <effort>Max</effort> | ||
| <threshold>Low</threshold> | ||
| <maxHeap>2048</maxHeap> | ||
| </configuration> | ||
| <executions> | ||
| <execution> | ||
| <goals> | ||
| <goal>check</goal> | ||
| </goals> | ||
| <phase>verify</phase> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| <!-- configuration for GitHub actions --> | ||
| <plugin> | ||
| <groupId>org.owasp</groupId> | ||
| <artifactId>dependency-check-maven</artifactId> | ||
|
|
@@ -664,51 +720,6 @@ | |
| <skipProvidedScope>true</skipProvidedScope> | ||
| </configuration> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.codehaus.mojo</groupId> | ||
| <artifactId>license-maven-plugin</artifactId> | ||
| <version>2.5.0</version> | ||
| <configuration> | ||
| <acceptPomPackaging>true</acceptPomPackaging> | ||
| <licenseName>apache_v2</licenseName> | ||
| <failOnBlacklist>true</failOnBlacklist> | ||
| <failOnMissing>true</failOnMissing> | ||
| <excludedScopes>test</excludedScopes> | ||
| <includedLicenses> | ||
| <includedLicense>The MIT License</includedLicense> | ||
| <includedLicense>Apache Software License - Version 2.0</includedLicense> | ||
| <includedLicense>ISC</includedLicense> | ||
| <includedLicense>The BSD 3-Clause License</includedLicense> | ||
| <includedLicense>WTFPL</includedLicense> | ||
| <includedLicense>CC-BY</includedLicense> | ||
| <includedLicense>CC0</includedLicense> | ||
| <includedLicense>Unlicense</includedLicense> | ||
| <includedLicense>Public Domain</includedLicense> | ||
|
|
||
| <!-- other licenses as needed --> | ||
| <includedLicense>Eclipse Distribution License - v 1.0</includedLicense> | ||
| <includedLicense>Bouncy Castle Licence</includedLicense> | ||
| </includedLicenses> | ||
| <licenseMerges> | ||
| <licenseMerge>Apache Software License - Version 2.0|Apache License Version 2.0|Apache 2.0| | ||
| The Apache License, Version 2.0|Apache License, Version 2.0|Apache-2.0| | ||
| The Apache Software License, Version 2.0|Apache License 2.0</licenseMerge> | ||
| <licenseMerge>The MIT License|MIT License|The MIT License (MIT)|MIT|MIT-0</licenseMerge> | ||
| <licenseMerge>The BSD 3-Clause License|BSD License 3|The BSD License|BSD-3-Clause|BSD-2-Clause|BSD licence</licenseMerge> | ||
| <licenseMerge>Eclipse Distribution License - v 1.0|EDL 1.0</licenseMerge> | ||
| <licenseMerge>Eclipse Public License v2.0|EPL 2.0</licenseMerge> | ||
| <licenseMerge>Public Domain|Public Domain, per Creative Commons CC0|The JSON License</licenseMerge> | ||
| </licenseMerges> | ||
| </configuration> | ||
| <executions> | ||
| <execution> | ||
| <id>add-third-party</id> | ||
| <goals> | ||
| <goal>add-third-party</goal> | ||
| </goals> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| </plugins> | ||
| </build> | ||
| <profiles> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.