license header

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

license header

Ted Yu
Hi,
When I use the following command to build:

mvn clean package -DskipTests

I got:

[ERROR] Failed to execute goal com.mycila:license-maven-plugin:2.9:check (default) on project alluxio-parent: Some files do not have the expected license header -> [Help 1]
[ERROR]

Here is the mvn I use:

Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T07:58:13Z)
Maven home: /a/apache-maven-3.5.2
Java version: 1.8.0_161, vendor: Oracle Corporation
Java home: /a/jdk1.8.0_161/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-327.28.3.el7.x86_64", arch: "amd64", family: "unix"

Any hint is appreciated.

--
You received this message because you are subscribed to the Google Groups "Alluxio Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: license header

Andrew Audibert
Hi Ted,

Is this happening from a clean checkout? The Maven output should also say which files do not have the expected header. For development purposes you can also disable the license check with -Dlicense.skip. 

-Andrew

On Thu, Apr 26, 2018 at 2:43 PM Ted Yu <[hidden email]> wrote:
Hi,
When I use the following command to build:

mvn clean package -DskipTests

I got:

[ERROR] Failed to execute goal com.mycila:license-maven-plugin:2.9:check (default) on project alluxio-parent: Some files do not have the expected license header -> [Help 1]
[ERROR]

Here is the mvn I use:

Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T07:58:13Z)
Maven home: /a/apache-maven-3.5.2
Java version: 1.8.0_161, vendor: Oracle Corporation
Java home: /a/jdk1.8.0_161/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-327.28.3.el7.x86_64", arch: "amd64", family: "unix"

Any hint is appreciated.

--
You received this message because you are subscribed to the Google Groups "Alluxio Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
--

--
You received this message because you are subscribed to the Google Groups "Alluxio Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: license header

Ted Yu
In reply to this post by Ted Yu
I added -X but didn't see which file caused the error:

[WARNING] Unknown file extension: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/doc.go
[DEBUG] Selected file: /mnt/disk2/a/alluxio/bin/alluxio-monitor.sh [header style: script_style]
[DEBUG] Selected file: /mnt/disk2/a/alluxio/cov-int/emit/cn012.l42scl.hortonworks.com/emit-db [header style: unknown]
[WARNING] Unknown file extension: /mnt/disk2/a/alluxio/cov-int/emit/cn012.l42scl.hortonworks.com/emit-db
[DEBUG] Selected file: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/utf8_test.go [header style: unknown]
[DEBUG] Selected file: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/writer.go [header style: unknown]
[WARNING] Unknown file extension: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/utf8_test.go
[DEBUG] Selected file: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/writer_test.go [header style: unknown]
[DEBUG] Selected file: /mnt/disk2/a/alluxio/conf/alluxio-site.properties.template [header style: script_style]
[WARNING] Unknown file extension: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/envvar/envvar_test.go
[DEBUG] Selected file: /mnt/disk2/a/alluxio/conf/core-site.xml.template [header style: xml_style]
[DEBUG] Selected file: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/wrap_writer.go [header style: unknown]
[WARNING] Unknown file extension: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/wrap_writer.go
[DEBUG] Selected file: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/utf8.go [header style: unknown]
[WARNING] Unknown file extension: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/utf8.go
[DEBUG] Selected file: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/rune.go [header style: unknown]
[WARNING] Unknown file extension: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/rune.go
[DEBUG] Selected file: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/util_unix.go [header style: unknown]
[WARNING] Unknown file extension: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/util_unix.go
[DEBUG] Selected file: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/util_windows.go [header style: unknown]
[WARNING] Unknown file extension: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/util_windows.go
[DEBUG] Selected file: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/lookpath/lookpath_test.go [header style: unknown]
[WARNING] Unknown file extension: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/lookpath/lookpath_test.go
[DEBUG] Selected file: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/lookpath/lookpath.go [header style: unknown]
[WARNING] Unknown file extension: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/lookpath/lookpath.go
[DEBUG] Selected file: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/cmdline/testdata/flags.go [header style: unknown]
[WARNING] Unknown file extension: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/cmdline/testdata/flags.go
[DEBUG] Selected file: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/cmdline/testdata/exitcode.go [header style: unknown]
[WARNING] Unknown file extension: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/cmdline/testdata/exitcode.go
[DEBUG] Selected file: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/cmdline/testdata/flat.go [header style: unknown]
[WARNING] Unknown file extension: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/cmdline/testdata/flat.go
[DEBUG] Selected file: /mnt/disk2/a/alluxio/cov-int/emit/cn012.l42scl.hortonworks.com/config/39d10bc79750a6bd786b81dafe2d4362/javac-config-0/coverity_config.xml [header style: xml_style]

Anyway, let me continue with the flag you mentioned.

Thanks

On Thursday, April 26, 2018 at 2:43:49 PM UTC-7, Ted Yu wrote:
Hi,
When I use the following command to build:

mvn clean package -DskipTests

I got:

[ERROR] Failed to execute goal com.mycila:license-maven-plugin:2.9:check (default) on project alluxio-parent: Some files do not have the expected license header -> [Help 1]
[ERROR]

Here is the mvn I use:

Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T07:58:13Z)
Maven home: /a/apache-maven-3.5.2
Java version: 1.8.0_161, vendor: Oracle Corporation
Java home: /a/jdk1.8.0_161/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-327.28.3.el7.x86_64", arch: "amd64", family: "unix"

Any hint is appreciated.

--
You received this message because you are subscribed to the Google Groups "Alluxio Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: license header

Andrew Audibert
The files with missing headers should show up right above the reactor summary, when I create a file without a license header and then run "mvn license:check", I see

[WARNING] Missing header in: /Users/Developer/alluxio/filewithoutlicense.java
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Alluxio Parent 1.8.0-SNAPSHOT ...................... FAILURE [  1.275 s]
[INFO] Alluxio Core ....................................... SKIPPED
[INFO] Alluxio Core - Protobuf ............................ SKIPPED
[INFO] Alluxio Core - Common Utilities .................... SKIPPED
[INFO] Alluxio Core - Client .............................. SKIPPED
[INFO] Alluxio Core - Client - File System ................ SKIPPED
[INFO] Alluxio Key Value .................................. SKIPPED
[INFO] Alluxio Key Value - Common Utilities ............... SKIPPED
[INFO] Alluxio Key Value - Client ......................... SKIPPED
[INFO] Alluxio Key Value - Hadoop Utilities ............... SKIPPED
[INFO] Alluxio Examples ................................... SKIPPED
[INFO] Alluxio Shell ...................................... SKIPPED
[INFO] Alluxio Assembly JARs .............................. SKIPPED
[INFO] Alluxio Assembly - Client .......................... SKIPPED
[INFO] Alluxio Core - Server .............................. SKIPPED
[INFO] Alluxio Core - Server - Common Utilities ........... SKIPPED
[INFO] Alluxio Under File System .......................... SKIPPED
[INFO] Alluxio Under File System - Local FS ............... SKIPPED
[INFO] Alluxio Core - Server - Master ..................... SKIPPED
[INFO] Alluxio Core - Server - Proxy ...................... SKIPPED
[INFO] Alluxio Core - Server - Worker ..................... SKIPPED
[INFO] Alluxio Key Value - Server ......................... SKIPPED
[INFO] Alluxio Log Server ................................. SKIPPED
[INFO] Alluxio Assembly - Server .......................... SKIPPED
[INFO] Alluxio Integration Checker ........................ SKIPPED
[INFO] Alluxio Core - Client - HDFS ....................... SKIPPED
[INFO] Alluxio Core - Client - Runtime .................... SKIPPED
[INFO] Alluxio Integration ................................ SKIPPED
[INFO] Alluxio Integration - FUSE ......................... SKIPPED
[INFO] Alluxio MiniCluster ................................ SKIPPED
[INFO] Alluxio Tests ...................................... SKIPPED
[INFO] Alluxio Under File System - GCS .................... SKIPPED
[INFO] Alluxio Under File System - HDFS ................... SKIPPED
[INFO] Alluxio Under File System - Aliyun OSS ............. SKIPPED
[INFO] Alluxio Under File System - S3A .................... SKIPPED
[INFO] Alluxio Under File System - Swift .................. SKIPPED
[INFO] Alluxio Under File System - Microsoft Azure Blob Storage 1.8.0-SNAPSHOT SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.765 s
[INFO] Finished at: 2018-04-26T14:56:15-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.mycila:license-maven-plugin:2.9:check (default-cli) on project alluxio-parent: Some files do not have the expected license header -> [Help 1]

On Thu, Apr 26, 2018 at 2:54 PM Ted Yu <[hidden email]> wrote:
I added -X but didn't see which file caused the error:

[WARNING] Unknown file extension: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/doc.go
[DEBUG] Selected file: /mnt/disk2/a/alluxio/bin/alluxio-monitor.sh [header style: script_style]
[DEBUG] Selected file: /mnt/disk2/a/alluxio/cov-int/emit/cn012.l42scl.hortonworks.com/emit-db [header style: unknown]
[WARNING] Unknown file extension: /mnt/disk2/a/alluxio/cov-int/emit/cn012.l42scl.hortonworks.com/emit-db
[DEBUG] Selected file: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/utf8_test.go [header style: unknown]
[DEBUG] Selected file: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/writer.go [header style: unknown]
[WARNING] Unknown file extension: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/utf8_test.go
[DEBUG] Selected file: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/writer_test.go [header style: unknown]
[DEBUG] Selected file: /mnt/disk2/a/alluxio/conf/alluxio-site.properties.template [header style: script_style]
[WARNING] Unknown file extension: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/envvar/envvar_test.go
[DEBUG] Selected file: /mnt/disk2/a/alluxio/conf/core-site.xml.template [header style: xml_style]
[DEBUG] Selected file: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/wrap_writer.go [header style: unknown]
[WARNING] Unknown file extension: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/wrap_writer.go
[DEBUG] Selected file: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/utf8.go [header style: unknown]
[WARNING] Unknown file extension: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/utf8.go
[DEBUG] Selected file: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/rune.go [header style: unknown]
[WARNING] Unknown file extension: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/rune.go
[DEBUG] Selected file: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/util_unix.go [header style: unknown]
[WARNING] Unknown file extension: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/util_unix.go
[DEBUG] Selected file: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/util_windows.go [header style: unknown]
[WARNING] Unknown file extension: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/textutil/util_windows.go
[DEBUG] Selected file: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/lookpath/lookpath_test.go [header style: unknown]
[WARNING] Unknown file extension: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/lookpath/lookpath_test.go
[DEBUG] Selected file: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/lookpath/lookpath.go [header style: unknown]
[WARNING] Unknown file extension: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/lookpath/lookpath.go
[DEBUG] Selected file: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/cmdline/testdata/flags.go [header style: unknown]
[WARNING] Unknown file extension: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/cmdline/testdata/flags.go
[DEBUG] Selected file: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/cmdline/testdata/exitcode.go [header style: unknown]
[WARNING] Unknown file extension: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/cmdline/testdata/exitcode.go
[DEBUG] Selected file: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/cmdline/testdata/flat.go [header style: unknown]
[WARNING] Unknown file extension: /mnt/disk2/a/alluxio/dev/scripts/vendor/v.io/x/lib/cmdline/testdata/flat.go
[DEBUG] Selected file: /mnt/disk2/a/alluxio/cov-int/emit/cn012.l42scl.hortonworks.com/config/39d10bc79750a6bd786b81dafe2d4362/javac-config-0/coverity_config.xml [header style: xml_style]

Anyway, let me continue with the flag you mentioned.

Thanks

On Thursday, April 26, 2018 at 2:43:49 PM UTC-7, Ted Yu wrote:
Hi,
When I use the following command to build:

mvn clean package -DskipTests

I got:

[ERROR] Failed to execute goal com.mycila:license-maven-plugin:2.9:check (default) on project alluxio-parent: Some files do not have the expected license header -> [Help 1]
[ERROR]

Here is the mvn I use:

Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T07:58:13Z)
Maven home: /a/apache-maven-3.5.2
Java version: 1.8.0_161, vendor: Oracle Corporation
Java home: /a/jdk1.8.0_161/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-327.28.3.el7.x86_64", arch: "amd64", family: "unix"

Any hint is appreciated.

--
You received this message because you are subscribed to the Google Groups "Alluxio Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
--

--
You received this message because you are subscribed to the Google Groups "Alluxio Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.