【发布时间】:2018-04-03 13:16:21
【问题描述】:
想了解在 Maven POM.xml 中使用什么以及为什么使用标签。标签的意义是什么?
例子:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<showDeprecation>true</showDeprecation>
<compilerVersion>1.8</compilerVersion>
<source>1.8</source>
<target>1.8</target>
<encoding>${project.build.sourceEncoding}</encoding>
<workingDirectory>target/</workingDirectory>
</configuration>
</plugin>
【问题讨论】:
-
你能展示你的 pom 的例子吗?它可能是插件的特定选项。
-
很遗憾,pom 文件中不存在
workDirectory这样的标签:maven.apache.org/pom.html -
添加了一个使用的例子。
-
不幸的是,我在 Maven 编译器插件文档中也找不到类似
workingDirectory的内容? maven.apache.org/plugins/maven-compiler-plugin/…你在哪里找到的?