generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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,14 @@ | |
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| <!-- phase: test --> | ||
| <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> | ||
| <!-- 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.apache.maven.plugins</groupId> | ||
| <artifactId>maven-checkstyle-plugin</artifactId> | ||
|
|
@@ -544,27 +607,6 @@ | |
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| <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> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.jacoco</groupId> | ||
| <artifactId>jacoco-maven-plugin</artifactId> | ||
|
|
@@ -584,19 +626,21 @@ | |
| <goals> | ||
| <goal>prepare-agent</goal> | ||
| </goals> | ||
| <phase>initialize</phase> | ||
| </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 +684,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 +719,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> | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does this change do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's redundant, the default is already initialize