Cannot mvn install api-io-asl (Too many unapproved licenses)

42 views
Skip to first unread message

Alain Désilets

unread,
Dec 13, 2019, 6:33:41 AM12/13/19
to dkpro-core-user
I just did a fresh checkout of dkpro-core 1.12.x and did mvn install. I get the following error for dkpro-core-api-io-asl:

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 15.551 s

[INFO] Finished at: 2019-12-13T06:29:17-05:00

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.13:check (default) on project dkpro-core-api-io-asl: Too many files with unapproved license: 5 See RAT report in: /Users/desilets/Documents/GitRepositories/dkpro-core/dkpro-core-api-io-asl/target/rat.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/MojoFailureExceptionEnter code here...

Attached is the content of the rat.txt file.

Any idea how to address the issue?

Thx.

rat.txt

Richard Eckart de Castilho

unread,
Dec 13, 2019, 7:09:33 AM12/13/19
to dkpro-c...@googlegroups.com
On 13. Dec 2019, at 12:33, Alain Désilets <alainde...@gmail.com> wrote:
>
> Any idea how to address the issue?


You have a "bin" folder there which is not part of the normal project structure. Maven compiles into "target" and if the project is properly set up as a Maven project in Eclipse/IntellJ, they compile to "target" as well.

Remove the "bin" folder.

Cheers,

-- Richard

Alain Désilets

unread,
Dec 13, 2019, 7:14:12 AM12/13/19
to dkpro-c...@googlegroups.com
On Fri, Dec 13, 2019 at 7:09 AM Richard Eckart de Castilho <richard...@gmail.com> wrote:

You have a "bin" folder there which is not part of the normal project structure. Maven compiles into "target" and if the project is properly set up as a Maven project in Eclipse/IntellJ, they compile to "target" as well.

That worked, thx. Any idea how that bin directory got there? Just want to prevent that from happening in the future.

Alain

Richard Eckart de Castilho

unread,
Dec 13, 2019, 8:28:34 AM12/13/19
to dkpro-c...@googlegroups.com
On 13. Dec 2019, at 13:13, Alain Désilets <alainde...@gmail.com> wrote:
>
> That worked, thx. Any idea how that bin directory got there? Just want to prevent that from happening in the future.

"bin" is the default output folder for most Java IDEs I know.
Maybe you had a situation where your IDE wasn't aware it was a Maven project?

-- Richard
Reply all
Reply to author
Forward
0 new messages