![](/img/trans.png)
[英]How do I tell JBehave META-INF to configure it for JPA using the Maven plugin?
[英]How do I tell what a Maven plugin does?
我被賦予了加速大型Maven構建的任務,盡管我與Ant一起工作了很多,但我還是Maven的新手。
瀏覽各種pom.xml文件時,我看到了插件,但是我不知道它們做什么。 如果我轉到https://repository.sonatype.org/index.html#welcome並鍵入各種插件名稱,除了對插件功能的描述之外,我幾乎可以獲得所有信息。
有沒有辦法告訴Maven插件做什么?
謝謝。
您可以使用幫助插件獲取有關Maven插件的描述(如果它們提供的話):
mvn help:describe -Dplugin=org.apache.maven.plugins:maven-compiler-plugin
產量
Name: Maven Compiler Plugin
Description: The Compiler Plugin is used to compile the sources of your project.
Group Id: org.apache.maven.plugins
Artifact Id: maven-compiler-plugin
Version: 2.3.2
Goal Prefix: compiler
This plugin has 3 goals:
compiler:compile
Description: Compiles application sources
...
如果您想要更多,請在命令行中添加-Ddetail
:
mvn help:describe -Dplugin=<groupid>:<artifactid> -Ddetail
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.