Symptoms
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
C:\source\location\target\clover\src-test\com\atlassian\fisheye\ package \someclass.java:[ 11 , 35 ] cannot find symbol
symbol: class ACLASSNAME
|
You have a maven project that compiles and installs just fine, but when run with the clover goals on it fails with the above error. The project is set up a little bit different, as the source is in two folders, src/main/java/core, and src/main/java/gen. The maven compiler plugin is configured to handle this as below:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<includes>
<include>core/**</include>
<include>gen/**</include>
</includes>
<source> 1.5 </source>
<target> 1.5 </target>
</configuration>
</plugin>
|
Cause
Clover does not understand the above definition.
Resolution
The maven best practice is to use the build-helper-maven-plugin to add alternate source directories, instead of using <includes> in the maven-compiler-plugin.
Please remove the <includes> from the compiler plugin and add the following plugin definition to your build.xml:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version> 1.1 </version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/java/core</source>
<source>src/java/gen</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
|
相关推荐
xjar-maven-plugin 项目相关jar包。包括xjar-maven-plugin-4.0.2.jar loadkitv1.0.1.jar xjar-4.0.2.jar
dockerfile-maven-plugin 支持 maven 直接发布项目至 docker 镜像库
Maven使用tomcat8-maven-plugin插件
maven-tomcat-plugin让maven与tomcat配合得很好。它可以把应用部署到Tomcat服务器,也可以把tomcat作为内嵌服务器启动,就像jetty一样。 使用JPDA启动tomcat的远程调试功能。这样就能与eclipse配合起来,轻松地实现...
解决tomcat8-maven-plugin-3.0-r1655215.jar阿里云同有的问题。放到路径org\apache\tomcat\maven\tomcat8-maven-plugin\3.0-r1655215\就可以了
maven plugin maven plugin scm 项目管理 构建工具 antmaven plugin maven plugin scm 项目管理 构建工具 ant
修改版tomcat7-maven-plugin-2.2.jar
Maven更新问题 今天Maven在更新的时候发现一直更新不成功,总结下解决方法。 在apache-maven-3.5.2/conf/setting.xml中加入以下配置即可解决 alimaven aliyun maven ...
mybatis-plus-generator-maven-plugin-v1.0.0依赖的pom.xml,用于mybatis-plus-generator-maven-plugin-1.0.0.jar本地仓库上传时依赖使用
maven-maven-plugin-1.4.jar
maven的scala编译包
Jenkins maven-plugin
fronted-maven-plugin node npm angular cli spring boot整合;fronted-maven-plugin node npm angular cli spring boot整合
直接离线安装eclipse中的maven插件,在你的eclipse安装根目录下创建两个文件夹:links,myplugins(文件夹名字可以自定义),所在路径D:\eclipse。将下载下来的maven插件放到myplugins下。载links目录下创建一个...
标签:axis2-wsdl2code-maven-plugin-1.5.6.jar,axis2,wsdl2code,maven,plugin,1.5.6,jar包下载,依赖包
maven2的插件,用于在eclipse下进行maven2的快速配置 打开eclipse .选择菜单 window ->preferences ; 在新打开的对话框的左边的一列会看到一个名为Maven2的选项。鼠标单击,然后点击右边的Local Repository Folder ...
maven-plugin-parameter-documenter-2.0.jar
009 maven插件spring-boot-maven-plugin
tomcat6-maven-plugin-2.1插件包
maven-plugin-plugin-2.5.jar