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


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

Re: Using --ignore in Maven packaging

From Olek Wojnar <olek@debian.org>
Newsgroups linux.debian.maint.java
Subject Re: Using --ignore in Maven packaging
Date 2020-06-07 02:10 +0200
Message-ID <AeR2V-WN-5@gated-at.bofh.it> (permalink)
References <AdFnb-3Vg-3@gated-at.bofh.it> <AeLJU-64k-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi Emmanuel,

On Sat, Jun 6, 2020 at 2:25 PM Emmanuel Bourg <ebourg@apache.org> wrote:

>
> 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.
>

I think I'm still missing something here. For example, I add dependencies
that I want to ignore to d/maven.ignoreRules. The package builds fine. But
say there's a dummy root POM and I don't want to have a "dummy-build-only"
directory added to the final package. So I add a --ignore for that POM
(also tried --ignore-pom) but then I get complaints that required
dependencies are not present. Specifically, the dependencies for the
ignored POM that I have listed in the ignoreRules. It almost seems that if
I --ignore a POM then the ignore-Rules for that POM are ignored as well,
but the package build still tries to find those dependencies. Does that
make sense?

-Olek

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