You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Richard Sand <rs...@idfconnect.com> on 2017/05/03 18:37:52 UTC

generate a POM with dependencies only?

Is there a plugin/goal that will generate a "reduced" POM for a project 
that only contains the dependencies, but none of the other build/profile 
or any other tags?

May sound like a strange ask - but the scenario I'm facing is that I'm 
building a particular set of jars/wars/zips (using assembly plugin), and 
the POMs for these artifacts all rely on a heirarchy of parent POMs 
which have many dependencyManagement, build, and profile elements. My 
customers have their own internal Maven repositories, and are not 
connecting to my company's private repos, so their ask is that I provide 
the POM for each artifact we distribute in the zip file. So basically I 
want to give them a stripped down POM that only has the dependencies in 
it so that they can upload the artifacts into their internal repos and 
include them in their projects. They will never actually be building our 
artifacts.

Best regards,

Richard


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: generate a POM with dependencies only?

Posted by Maxim Solodovnik <so...@gmail.com>.
I would like to ask related question here

Is it possible to get dependency version?
I'm creating one big jar for all dependencies using assembly plugin, but
org.bouncycastle:bcprov-jdk15on cannot be repacked
So I need to manually track it's version :(
Would be great if I can get bcprov version and automatically set it using
xslt transformation

On Thu, May 4, 2017 at 1:39 AM, Richard Sand <rs...@idfconnect.com> wrote:

> Woohoo!
>
> Thanks Robert!
>
> -Richard
>
>
>
>
> ------ Original Message ------
> From: "Robert Scholte" <rf...@apache.org>
> To: "Maven Users List" <us...@maven.apache.org>
> Sent: 5/3/2017 2:38:56 PM
> Subject: Re: generate a POM with dependencies only?
>
> Yes, http://www.mojohaus.org/flatten-maven-plugin/
>>
>> On Wed, 03 May 2017 20:37:52 +0200, Richard Sand <rs...@idfconnect.com>
>> wrote:
>>
>> Is there a plugin/goal that will generate a "reduced" POM for a project
>>> that only contains the dependencies, but none of the other build/profile
>>> or any other tags?
>>>
>>> May sound like a strange ask - but the scenario I'm facing is that I'm
>>> building a particular set of jars/wars/zips (using assembly plugin), and
>>> the POMs for these artifacts all rely on a heirarchy of parent POMs  which
>>> have many dependencyManagement, build, and profile elements. My  customers
>>> have their own internal Maven repositories, and are not  connecting to my
>>> company's private repos, so their ask is that I provide  the POM for each
>>> artifact we distribute in the zip file. So basically I  want to give them a
>>> stripped down POM that only has the dependencies in  it so that they can
>>> upload the artifacts into their internal repos and  include them in their
>>> projects. They will never actually be building our  artifacts.
>>>
>>> Best regards,
>>>
>>> Richard
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
WBR
Maxim aka solomax

Re: generate a POM with dependencies only?

Posted by Richard Sand <rs...@idfconnect.com>.
Woohoo!

Thanks Robert!

-Richard



------ Original Message ------
From: "Robert Scholte" <rf...@apache.org>
To: "Maven Users List" <us...@maven.apache.org>
Sent: 5/3/2017 2:38:56 PM
Subject: Re: generate a POM with dependencies only?

>Yes, http://www.mojohaus.org/flatten-maven-plugin/
>
>On Wed, 03 May 2017 20:37:52 +0200, Richard Sand <rs...@idfconnect.com> 
>  wrote:
>
>>Is there a plugin/goal that will generate a "reduced" POM for a 
>>project  that only contains the dependencies, but none of the other 
>>build/profile  or any other tags?
>>
>>May sound like a strange ask - but the scenario I'm facing is that I'm 
>>  building a particular set of jars/wars/zips (using assembly plugin), 
>>and  the POMs for these artifacts all rely on a heirarchy of parent 
>>POMs  which have many dependencyManagement, build, and profile 
>>elements. My  customers have their own internal Maven repositories, 
>>and are not  connecting to my company's private repos, so their ask is 
>>that I provide  the POM for each artifact we distribute in the zip 
>>file. So basically I  want to give them a stripped down POM that only 
>>has the dependencies in  it so that they can upload the artifacts into 
>>their internal repos and  include them in their projects. They will 
>>never actually be building our  artifacts.
>>
>>Best regards,
>>
>>Richard
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: generate a POM with dependencies only?

Posted by Robert Scholte <rf...@apache.org>.
Yes, http://www.mojohaus.org/flatten-maven-plugin/

On Wed, 03 May 2017 20:37:52 +0200, Richard Sand <rs...@idfconnect.com>  
wrote:

> Is there a plugin/goal that will generate a "reduced" POM for a project  
> that only contains the dependencies, but none of the other build/profile  
> or any other tags?
>
> May sound like a strange ask - but the scenario I'm facing is that I'm  
> building a particular set of jars/wars/zips (using assembly plugin), and  
> the POMs for these artifacts all rely on a heirarchy of parent POMs  
> which have many dependencyManagement, build, and profile elements. My  
> customers have their own internal Maven repositories, and are not  
> connecting to my company's private repos, so their ask is that I provide  
> the POM for each artifact we distribute in the zip file. So basically I  
> want to give them a stripped down POM that only has the dependencies in  
> it so that they can upload the artifacts into their internal repos and  
> include them in their projects. They will never actually be building our  
> artifacts.
>
> Best regards,
>
> Richard
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org