So, I tried to checked this... I can't say if it works, because my build 
crashes. The reason it crashes is because I have no <distributionManagement> 
in my POM... Does this mean that in order to run mvn:deploy on an 
aggregator-POM, I need to set its ditribution-settings?

Anyway, I solved my initial problem by telling the aggregator that it can 
distribute to ${java.io.tmpdir}. This way I won't pollute our repository with 
aggregators and I'm abel to trigger mvn:deploy on the root-level.

Conclusion: I have no idea if the mentioned setting works, but judging from 
the way Maven works, it should skip the project in which it was set and any 
projects that inherit from this project (probably, the page doesn't state 
otherwise).


On Friday 11 September 2009 18:54, David Hoffer wrote:
> Regarding the link:
>
> I don't want to deploy one of the artifacts in my multi-module build.
> Can I skip deployment?
> Yes, you can skip deployment of individual modules by configuring the
> deploy plugin as follows:
> <plugin>
>                <artifactId>maven-deploy-plugin</artifactId>
>                <version>X.Y</version>
>                <configuration>
>                  <skip>true</skip>
>               </configuration>
> </plugin>
>
> This example doesn't show how to skip one of the artifacts, rather it
> seems to be an all or nothing example.  Can someone confirm if you can
> skip certain artifacts and if so how?
>
> -Dave
>
> On Fri, Sep 11, 2009 at 8:17 AM, Anders Hammar <[email protected]> wrote:
> > I'm a little bit confused. Is the aggregator pom also the parent of the
> > modules? If it is, it should also be deployed.
> >
> > If not, I guess it should be able to make it not deploy by doing exactly
> > as described in:
> > http://maven.apache.org/plugins/maven-deploy-plugin/faq.html#skip
> > Declare this in the aggregator pom. Have you tried it and it doesn't
> > work?
> >
> > /Anders
> >
> > On Fri, Sep 11, 2009 at 15:48, Roland Asmann <[email protected]> wrote:
> >> Hi all,
> >>
> >> Is it possible to skip deployment of a specific module when triggering
> >> 'mvn deploy'? I've read in [1] that it's possible, but I think this will
> >> only work
> >> on sub-modules.
> >>
> >> My problem is that I have an aggregator-pom that is only used as an
> >> aggregator
> >> and should not be deployed. Since itś just a small POM, it wouldn't be a
> >> real
> >> big problem if it finds it's way into our company's repository, but
> >> seeing how we have a lot of those small aggregator-POMs, it might
> >> clutter the repo.
> >>
> >> So, can anybody tell me if [1] works for the parent as well? If nobody
> >> knows,
> >> I might just give it a try and see what it does...
> >>
> >> Thanks.
> >>
> >>
> >> [1] http://maven.apache.org/plugins/maven-deploy-plugin/faq.html
> >>
> >> --
> >> Roland Asmann
> >>
> >> CFC Informationssysteme Entwicklungsgesellschaft m.b.H
> >> Bäckerstrasse 1/2/7
> >> A-1010 Wien
> >> FN 266155f, Handelsgericht Wien
> >>
> >> Tel.: +43/1/513 88 77 - 27
> >> Fax.: +43/1/513 88 62
> >> Email: [email protected]
> >> Web: www.cfc.at
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected]
> >> For additional commands, e-mail: [email protected]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]

-- 
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: [email protected]
Web: www.cfc.at

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to