InfoSec812 / sonar-oauth2

OAuth2 Authentication Plugin For SonarQube
Apache License 2.0
1 stars 2 forks source link

Checking licenses issue #3

Open yermulnik opened 8 years ago

yermulnik commented 8 years ago

Can't build the plugin:

#> mvn clean verify
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.codehaus.sonar-plugins:sonar-oauth2:jar:1.0-SNAPSHOT
[WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-checkstyle-plugin is missing. @ line 134, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building SonarQube OAuth2 Plugin 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ sonar-oauth2 ---
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ sonar-oauth2 ---
[INFO] Executing: /bin/sh -c cd /[...]/InfoSec812/sonar-oauth2 && git rev-parse --verify HEAD
[INFO] Working directory: /[...]/InfoSec812/sonar-oauth2
[INFO] Storing buildNumber: e6e70d854838e0b662e9b2ddc0682ee14c64ee8a at timestamp: 1472832843266
[INFO] Storing buildScmBranch: master
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce) @ sonar-oauth2 ---
[INFO]
[INFO] --- maven-license-plugin:1.10.b1:check (enforce-license-headers) @ sonar-oauth2 ---
[INFO] Checking licenses...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.199s
[INFO] Finished at: Fri Sep 02 19:14:04 EEST 2016
[INFO] Final Memory: 13M/222M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.mycila.maven-license-plugin:maven-license-plugin:1.10.b1:check (enforce-license-headers) on project sonar-oauth2: Resource org/sonar/plugins/licenseheaders/Apache2.txt not found in file system, classpath or URL: no protocol: org/sonar/plugins/licenseheaders/Apache2.txt -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Appreciate your help.

yermulnik commented 8 years ago

Copying ./src/main/resources/org/sonar/plugins/licenseheaders/Apache2.txt to org/sonar/plugins/licenseheaders/ helps to resolve.