Re: How to hide internal build details from deployed pom.xml ?

2018-04-21 Thread pierre.viret
Hello Laird
Thank you for your reply. This does not solve my problem, we have actually such 
a construct. The parent and grand-parent poms must be published together with 
the library as they are referenced by the artefact's pom, so for the user of 
the library the plugin configuration is not hidden.
Regards,
Pierre


On 2018/04/20 04:11:15, Laird Nelson  wrote:
> On Thu, Apr 19, 2018 at 9:24 PM  wrote:>
>
> > We have a maven project with many modules and a complex structure. The>
> > master pom inherited by all the modules is filled up with plugin>
> > configuration in pluginManagement. I'm looking for a way to hide these>
> > details from the pom.xml delivered with our artefacts>
> >>
>
> Bonjour,>
>
> This might be as simple as (a) having a grandparent pom.xml with your>
> corporate information etc., (b) having a parent pom.xml with your plugin>
> management, and (c) having a child/grandchild pom.xml for your project.>
>
> You can see an (arbitrary) example here:>
> https://github.com/microbean/microbean-helm/blob/v2.8.2.1.0.4/pom.xml#L9-L13.>
> This is the child/grandchild pom.xml.>
>
> Its parent pom.xml is here:>
> https://github.com/microbean/microbean-pluginmanagement-pom/blob/v5/pom.xml>
>
> Its grandparent pom.xml is here:>
> https://github.com/microbean/microbean-parent/blob/microbean-parent-pom-5/pom.xml>
>
> Best,>
> Laird>
> -->
> https://github.com/microbean>
>


Remarque concernant la sécurité:
Ce courriel provenant de PostFinance est signé. Vous trouverez d'autres 
informations à ce sujet sous: 
https://www.postfinance.ch/e-signature.
Ne divulguez jamais vos éléments de sécurité à des tiers.

smime.p7s
Description: S/MIME Cryptographic Signature


Re: Functionality allowed in a dependency of type=POM

2018-04-21 Thread Bernd Eckenfels
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 
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.

 
com.mycompany
mysql-starter
1.0
pom
 

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-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Functionality allowed in a dependency of type=POM

2018-04-21 Thread DariusGmail

If I have a POM that contains a dependency of type=POM, e.g.

    
   com.mycompany
   mysql-starter
   1.0
   pom
    

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-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org