Is it possible to declare multiple artifactIDs per dependency?

56 views Asked by At

I want to import JODD into my application.

<dependency>
    <groupId>org.jodd</groupId>
    <artifactId>jodd-core</artifactId>
    <version>3.6.6</version>
</dependency>

But I need a lot additional modules beside jodd-core. Well to be clear: a lot of jodd-* modules.

So my question is: Can I import multiple artifacts within one <dependency></dependency> like

<dependency>
    <groupId>org.jodd</groupId>
    <artifacts>
       ...
    </artifacts>
</dependency>
1

There are 1 answers

0
AlexR On BEST ANSWER

No, maven is a bit verbose. Each dependency tag may hold only one groupId and artifactId.