Ask Your Question
0

I am new to odl and trying to execute Hello world program. I am getting the error in checkstyle plugin of maven.

asked 2016-04-22 02:21:44 -0700

Manish gravatar image

I am getting the following error - Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.16:check (check-license) on project hello-api: Failed during checkstyle execution: Failed during checkstyle configuration: unable to read /home/gaurav/git/hello/api/target/checkstyle-checker.xml - unable to parse configuration stream - Property ${checkstyle.header.file} has not been set

[INFO] hello-api .......................................... FAILURE [ 4.275 s] [INFO] hello-impl ......................................... SKIPPED [INFO] hello-features ..................................... SKIPPED [INFO] hello-karaf ........................................ SKIPPED [INFO] hello-artifacts .................................... SKIPPED [INFO] hello-it ........................................... SKIPPED [INFO] hello .............................................. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7.719 s [INFO] Finished at: 2016-04-21T21:22:36-07:00 [INFO] Final Memory: 44M/106M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.16:check (check-license) on project hello-api: Failed during checkstyle execution: Failed during checkstyle configuration: unable to read /home/gaurav/git/hello/api/target/checkstyle-checker.xml - unable to parse configuration stream - Property ${checkstyle.header.file} has not been set -> [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/di...

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2016-04-24 13:03:30 -0700

I have a quick suggestion, you can pass the option -Dcheckstyle.skip=true at the time of build, it may resolve the issue.

edit flag offensive delete publish link more

Comments

Thank you replying. it is working now. :)

Manish ( 2016-04-24 18:57:59 -0700 )edit

@Manish please accept the answer if it resolved the issue so that others can also get the benefit.

subhash ( 2016-04-25 08:55:29 -0700 )edit
0

answered 2016-04-22 15:19:58 -0700

saisujithreddy gravatar image

updated 2016-04-22 16:26:20 -0700

The error is due to https://issues.apache.org/jira/browse...

The plugin - maven-checkstyle-plugin:2.16 is erroneous

Also there are recent changes in maven settings file.

Hack :-

Go to settings.xml in .m2 folder & Change https to http and it should work fine.

edit flag offensive delete publish link more

Comments

HI, Thank you for responding so soon. I changed all the https to http but still its showing the same error. What else can be done to resolve the error?

Manish ( 2016-04-24 01:32:29 -0700 )edit

double check your maven version as well. I've recently seen some emails where people solved their problems by upgrading to a newer maven version. I'm using 3.0.5 without issues.

jamoluhrsen ( 2016-04-25 11:15:09 -0700 )edit
Login/Signup to Answer

Stats

Asked: 2016-04-22 02:21:44 -0700

Seen: 302 times

Last updated: Apr 24 '16