[英]Building PMD jar with maven
I'm trying to build PMD ( https://github.com/pmd/pmd ), but when I attempt to build, there are no artifacts (JAR file, etc.) in the target/
directory of the project. 我正在尝试构建PMD( https://github.com/pmd/pmd ),但是当我尝试构建PMD时,项目的target/
目录中没有任何工件(JAR文件等)。
I am using Maven. 我正在使用Maven。 I have tried mvn clean install
and mvn clean package
and both run without error - but nothing in the target/
directory. 我试过了mvn clean install
和mvn clean package
,它们都运行无误-但target/
目录中没有任何内容。
What am I missing? 我想念什么?
PMD is a multi-module build. PMD是一个多模块构建。 The top-level project has an artifact packaging type of pom
so it has no output (other than the pom.xml
file). 顶级项目的工件包装类型为pom
因此没有输出( pom.xml
文件除外)。
If you look at the PMD project continuous integration build results , you will see that the JARs are in the sub-modules of the project. 如果查看PMD项目持续集成构建结果 ,您将看到JAR位于项目的子模块中。
In addition, there appears to be an "project aggregate" that probably zips up all the jars into one release package. 另外,似乎有一个“项目汇总”,可能会将所有jar压缩到一个发行包中。 It appears you get this by building the pmd-dist
module . 看来您是通过构建pmd-dist
模块来实现的 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.