You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by DariusGmail <da...@gmail.com> on 2018/04/21 19:31:11 UTC
Functionality allowed in a dependency of type=POM
If I have a POM that contains a dependency of type=POM, e.g.
<dependency>
<groupId>com.mycompany</groupId>
<artifactId>mysql-starter</artifactId>
<version>1.0</version>
<type>pom</type>
</dependency>
I see that the included POM can contain other dependencies, thus
providing a way to package together a set of related dependencies.
Can the reference POM also contain build steps?
For example: Use the resource plugin to copy certain files that are
needed when using the specific JAR mentioned in its dependencies.
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Functionality allowed in a dependency of type=POM
Posted by Bernd Eckenfels <ec...@zusammenkunft.net>.
Both modules (of type POM) can contain build steps, however when you reference a POM it will not execute those steps (the steps are executed before - you would deploy the referenced project first).
If you want to distribute or repackage the pulled in dependencies you would use the assembly or resource plugin in the including Pom.
Gruss
Bernd
Gruss
Bernd
--
http://bernd.eckenfels.net
________________________________
From: DariusGmail <da...@gmail.com>
Sent: Saturday, April 21, 2018 9:31:11 PM
To: users@maven.apache.org
Subject: Functionality allowed in a dependency of type=POM
If I have a POM that contains a dependency of type=POM, e.g.
<dependency>
<groupId>com.mycompany</groupId>
<artifactId>mysql-starter</artifactId>
<version>1.0</version>
<type>pom</type>
</dependency>
I see that the included POM can contain other dependencies, thus
providing a way to package together a set of related dependencies.
Can the reference POM also contain build steps?
For example: Use the resource plugin to copy certain files that are
needed when using the specific JAR mentioned in its dependencies.
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org