Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.java > #11678

Re: Using --ignore in Maven packaging

From Emmanuel Bourg <ebourg@apache.org>
Newsgroups linux.debian.maint.java
Subject Re: Using --ignore in Maven packaging
Date 2020-06-06 20:30 +0200
Message-ID <AeLJU-64k-11@gated-at.bofh.it> (permalink)
References <AdFnb-3Vg-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Olek,

Le 03/06/2020 à 19:10, Olek Wojnar a écrit :

> I have now tried using the "--ignore" parameter a few times in the
> d/package_name.poms file for Maven packages. What seems to happen is
> that packages I have listed in d/maven.ignoreRules produce errors
> because they cannot be found for the "ignored" POM. Based on my
> understanding of the documentation [1][2][3], that's not how this should
> work. Shouldn't that POM and any artifacts it builds just be... you
> know.. ignored?


The --ignore option in the .poms files means the module won't be built.
maven.ignoreRules specifies the dependencies that are ignored. It's two
different things.

If you have a multi module project with a test module that you don't
want or can't build, and this module is a dependency of other modules,
then you have to --ignore it *and* add it's coordinates in
maven.ignoreRules.

Emmanuel Bourg

Back to linux.debian.maint.java | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Using --ignore in Maven packaging Olek Wojnar <olek@debian.org> - 2020-06-03 19:30 +0200
  Re: Using --ignore in Maven packaging Emmanuel Bourg <ebourg@apache.org> - 2020-06-06 20:30 +0200
    Re: Using --ignore in Maven packaging Olek Wojnar <olek@debian.org> - 2020-06-07 02:10 +0200
      Re: Using --ignore in Maven packaging Emmanuel Bourg <ebourg@apache.org> - 2020-06-07 11:10 +0200

csiph-web