【发布时间】:2017-01-22 05:00:00
【问题描述】:
我是 IntelliJ 和 Maven 的新手,所以这一切都超出了我的想象
我正在关注DropWizard 教程here,我只完成了IntelliJ 的第一步,我在其中添加了具有以下值的Maven 原型
GroupId=io.dropwizard.archetypes
ArtifactId=java-simple
版本= 0.9.1
没关系,然后我继续生成新项目,立即在 pom.xml 文件中,maven-site-plugin 的 plugin 节点出现错误。
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.4</version>
<configuration>
<reportPlugins>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.4</version>
<configuration>
<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
<dependencyDetailsEnabled>false</dependencyDetailsEnabled>
</configuration>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.3</version>
</plugin>
</reportPlugins>
</configuration>
</plugin>
上面写着“Element reportPlugins is not allowed here”,reportPlugins 中的所有内容都会出现“Cannot resolve symbol”错误。
我不知道发生了什么。甚至不知道谷歌用什么关键词来解决这个问题,所以在互联网上找不到相关的东西。有人介意告诉我这里有什么吗?我没有使用正确的版本吗?这是 IntelliJ 的怪癖吗?
【问题讨论】:
标签: intellij-idea pom.xml maven-site-plugin