I want to make a Maven meta-project; it won't contain any code, just a pom.xml. The purpose of the project is to have a place where I can declare some dependencies, and then use this project as a dependency somewhere else. How can I tell Maven not to generate a jar file?
Have you tried
<packaging>pom</packaging>
?
Set the packaging to pom
<modelVersion>4.0.0</modelVersion>
<groupId>com.example.group</groupId>
<version>1.0.0-SNAPSHOT</version>
<artifactId>my-project</artifactId>
<packaging>pom</packaging>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.