【发布时间】:2018-04-09 03:35:00
【问题描述】:
我正在为一个多模块项目的错误而苦苦挣扎,结构很简单,看起来像这样:
root
module a
module b
module c
pom.xml
使用maven命令行后:clean sonar:sonar deploy
我有这个错误:
未能执行目标 org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar (default-cli) 在项目 X 上:请提供你的编译类 具有 sonar.java.binaries 属性的项目 -> [帮助 1]
编辑:这是我的pom.xml的结构
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<groupId>groupeId</groupId>
<artifactId>artifactId</artifactId>
<version>version</version>
<packaging>pom</packaging>
<name>${project.artifactId}-parent</name>
<description>description</description>
<build>
<plugins>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.3.0.603</version>
</plugin>
</plugins>
</build>
<modules>
<module>module a</module>
<module>module b</module>
<module>module c</module>
</modules>
</project>
【问题讨论】:
-
添加你的 pom.xml
-
请提供详细的结构和pom。
-
你好,我加了我的root的pom.xml,挺简单的