You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "C. Benson Manica" <cb...@gmail.com> on 2010/08/03 16:22:51 UTC

Project without main artifact

Is it possible to configure a Maven project so that it doesn't build or
deploy the main artifact?  I have projects that are essentially shells to
download and package dependencies, but there are no Java sources to compile
or package as a jar (or anything else).  Am I condemned to have empty jars
deployed along with the artifacts I want, or are there configuration options
that can address this?

-- 
C. Benson Manica
cbmanica@gmail.com

Re: Project without main artifact

Posted by Zac Thompson <za...@gmail.com>.
On Fri, Aug 6, 2010 at 1:20 PM, Ron Wheeler
<rw...@artifact-software.com> wrote:
>  On 06/08/2010 2:48 PM, C. Benson Manica wrote:
>>
>> No, it's not a pom, its purpose is to go download other dependencies and
>> repackage them nicely.
>>
> So it does produce an artifact. What kind of Artifact?
> What exactly are you trying to do. Give enough detail so that someone can
> help you.
> BTW. It still could be a POM. It might use a plug-in to make something but I
> would just be guessing, wouldn't I.

Go with the pom project suggestion.

I've used pom projects with assembly plugin successfully for this kind
of thing.  The point of it seems to be exactly what you're looking
for: no other artifacts are generated.  Note that aggregator projects
are 'pom' as well.  It's the right fit.

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


Re: Project without main artifact

Posted by "C. Benson Manica" <cb...@gmail.com>.
It produces a tgz by executing some code in a couple of jars it depends on
that acts on a dependent tgz:

A.jar + B.jar + B.tgz -> unpack B.tgz -> exec plugin on unpacked B.tgz ->
assembly plugin to build B-processed.tgz

Nothing top secret by any stretch.

On Fri, Aug 6, 2010 at 4:20 PM, Ron Wheeler
<rw...@artifact-software.com>wrote:

>  On 06/08/2010 2:48 PM, C. Benson Manica wrote:
>
>> No, it's not a pom, its purpose is to go download other dependencies and
>> repackage them nicely.
>>
>>  So it does produce an artifact. What kind of Artifact?
> What exactly are you trying to do. Give enough detail so that someone can
> help you.
> BTW. It still could be a POM. It might use a plug-in to make something but
> I would just be guessing, wouldn't I.
>
> If you want to get help, you actually have to disclose some facts.
> If it is a secret, you need to hire a consultant and have him sign a
> non-disclosure after checking his references. not post to a public forum.
>
>
> Ron
>
>  On Tue, Aug 3, 2010 at 4:49 PM, Anders Hammar<an...@hammar.net>  wrote:
>>
>>  A pom project?
>>>
>>> /Anders
>>>
>>> On Tue, Aug 3, 2010 at 16:22, C. Benson Manica<cb...@gmail.com>
>>>  wrote:
>>>
>>>  Is it possible to configure a Maven project so that it doesn't build or
>>>> deploy the main artifact?  I have projects that are essentially shells
>>>> to
>>>> download and package dependencies, but there are no Java sources to
>>>>
>>> compile
>>>
>>>> or package as a jar (or anything else).  Am I condemned to have empty
>>>>
>>> jars
>>>
>>>> deployed along with the artifacts I want, or are there configuration
>>>> options
>>>> that can address this?
>>>>
>>>> --
>>>> C. Benson Manica
>>>> cbmanica@gmail.com
>>>>
>>>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
C. Benson Manica
cbmanica@gmail.com

Re: Project without main artifact

Posted by Ron Wheeler <rw...@artifact-software.com>.
  On 06/08/2010 2:48 PM, C. Benson Manica wrote:
> No, it's not a pom, its purpose is to go download other dependencies and
> repackage them nicely.
>
So it does produce an artifact. What kind of Artifact?
What exactly are you trying to do. Give enough detail so that someone 
can help you.
BTW. It still could be a POM. It might use a plug-in to make something 
but I would just be guessing, wouldn't I.

If you want to get help, you actually have to disclose some facts.
If it is a secret, you need to hire a consultant and have him sign a 
non-disclosure after checking his references. not post to a public forum.


Ron
> On Tue, Aug 3, 2010 at 4:49 PM, Anders Hammar<an...@hammar.net>  wrote:
>
>> A pom project?
>>
>> /Anders
>>
>> On Tue, Aug 3, 2010 at 16:22, C. Benson Manica<cb...@gmail.com>  wrote:
>>
>>> Is it possible to configure a Maven project so that it doesn't build or
>>> deploy the main artifact?  I have projects that are essentially shells to
>>> download and package dependencies, but there are no Java sources to
>> compile
>>> or package as a jar (or anything else).  Am I condemned to have empty
>> jars
>>> deployed along with the artifacts I want, or are there configuration
>>> options
>>> that can address this?
>>>
>>> --
>>> C. Benson Manica
>>> cbmanica@gmail.com
>>>
>
>


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


Re: Project without main artifact

Posted by "C. Benson Manica" <cb...@gmail.com>.
No, it's not a pom, its purpose is to go download other dependencies and
repackage them nicely.

On Tue, Aug 3, 2010 at 4:49 PM, Anders Hammar <an...@hammar.net> wrote:

> A pom project?
>
> /Anders
>
> On Tue, Aug 3, 2010 at 16:22, C. Benson Manica <cb...@gmail.com> wrote:
>
> > Is it possible to configure a Maven project so that it doesn't build or
> > deploy the main artifact?  I have projects that are essentially shells to
> > download and package dependencies, but there are no Java sources to
> compile
> > or package as a jar (or anything else).  Am I condemned to have empty
> jars
> > deployed along with the artifacts I want, or are there configuration
> > options
> > that can address this?
> >
> > --
> > C. Benson Manica
> > cbmanica@gmail.com
> >
>



-- 
C. Benson Manica
cbmanica@gmail.com

Re: Project without main artifact

Posted by Anders Hammar <an...@hammar.net>.
A pom project?

/Anders

On Tue, Aug 3, 2010 at 16:22, C. Benson Manica <cb...@gmail.com> wrote:

> Is it possible to configure a Maven project so that it doesn't build or
> deploy the main artifact?  I have projects that are essentially shells to
> download and package dependencies, but there are no Java sources to compile
> or package as a jar (or anything else).  Am I condemned to have empty jars
> deployed along with the artifacts I want, or are there configuration
> options
> that can address this?
>
> --
> C. Benson Manica
> cbmanica@gmail.com
>