博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.15:check
阅读量:7006 次
发布时间:2019-06-27

本文共 3326 字,大约阅读时间需要 11 分钟。

hot3.png

While implementing HelloWorld RPC I am getting an error mentioned in subject field. I am following Application development tutorial of Opendaylight Summit 2015. I did the same what the Cisco guys did in the video and also i copied and paste the same code from the Lithium developer guide. I tested it on several VMs. But always get stuck on same error. Below you can see the maven version and error:

Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T17:29:23+00:00) Maven home: /usr/local/apache-maven-3.2.5 Java version: 1.8.045, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-8-oracle/jre Default locale: enUS, platform encoding: ANSI_X3.4-1968 OS name: "linux", version: "3.16.0-38-generic", arch: "amd64", family: "unix"

INFO] --- maven-checkstyle-plugin:2.15:check (check-license) @ hello-impl --- [INFO] Starting audit... /home/odldev/git/hello/impl/src/main/java/org/opendaylight/hello/impl/HelloWorldImpl.java:1: Line does not match expected header line of '^/[]+$'. Audit done. [INFO] There is 1 error reported by Checkstyle 6.1.1 with check-license.xml ruleset. [ERROR] src/main/java/org/opendaylight/hello/impl/HelloWorldImpl.java[1] (header) RegexpHeader: Line does not match expected header line of '^/[]+$'. [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] hello-api .......................................... SUCCESS [ 29.467 s] [INFO] hello-impl ......................................... FAILURE [ 3.636 s] [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: 44.687 s [INFO] Finished at: 2015-09-08T12:40:46+01:00 [INFO] Final Memory: 59M/142M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.15:check (check-license) on project hello-impl: You have 1 Checkstyle violation. -> [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.

Comments

any one answer this problem.. even i am facing same issue

 (Jan 19 '16)

 

I had the same problem. Copyright Header problem reported by Checkstyle

[ERROR] src/main/java/org/opendaylight/hello/impl/HelloWorldImpl.java[1] (header) RegexpHeader: Line does not match expected header line of '^/[]+$'.

You have a problem in this file.

HelloWorldImpl.java[1] (header).

You have changed Copyright Header. I fixed with:

/* * Copyright © 2015 Yoyodyne, Inc. and others.  All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */

转载于:https://my.oschina.net/leblancs/blog/798764

你可能感兴趣的文章
java 日志框架总结
查看>>
重构构建的平凡之路
查看>>
Android Activity作为dialog对话框的使用详细介绍
查看>>
131. Palindrome Partitioning
查看>>
spring boot: 条件注解@Condition
查看>>
spring security 4.2后出现CouldnotverifytheprovidedCSRFtokenbecauseyoursessionwasnotfound
查看>>
浅谈HTTPS以及Fiddler抓取HTTPS协议
查看>>
Hadoop使用Java进行文件修改删除操作
查看>>
奇虎360Java笔试题
查看>>
git常用命令速查表【转】
查看>>
[转]Python yield 使用浅析
查看>>
Windows 配置 Apache Python CGI
查看>>
Android一个包含表格的图标库
查看>>
IIS集成和经典配置
查看>>
armv8 memory translation table descriptor
查看>>
以太坊主链同步
查看>>
《设计模式之禅》--代理扩展:强制代理
查看>>
复数系下常量乘向量的范数
查看>>
EXT2 文件系统
查看>>
Linux常见的进程调度算法
查看>>