Mike Baranczak
Mike Baranczak

Reputation: 8374

Maven project that doesn't create a jar

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?

Upvotes: 2

Views: 175

Answers (2)

Tim
Tim

Reputation: 6519

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>

Upvotes: 2

Clement P
Clement P

Reputation: 3273

Have you tried

<packaging>pom</packaging>?

Upvotes: 3

Related Questions