[prev in list] [next in list] [prev in thread] [next in thread]
List: maven-user
Subject: Re: build extension in reactor
From: "Robert Scholte" <rfscholte () apache ! org>
Date: 2016-12-12 18:47:25
Message-ID: op.ysdftbprkdkhrr () desktop-2khsk44
[Download RAW message or body]
Hi,
have a look at https://issues.apache.org/jira/browse/MNG-1911 which
explains the current behavior
Robert
On Mon, 12 Dec 2016 18:03:33 +0100, Ben Tatham <bentatham@nanometrics.ca>
wrote:
> Hi all,
> Is it possible to define a custom lifecycle (build extension) in a plugin
> that is in the same reactor as a project that uses that lifecycle? From
> what I can tell, the answer is no, but perhaps I am missing something
> subtle that would allow it to work.
>
> Imagine a project like this:
>
> foo-parent
> - foo-lifecycle-plugin
> (defines components.xml with foo-product)
> - foo
> - <packaging>foo-product</packaging>
> <plugin>
> <artifactId>foo-lifecycle-plugin</artifactId>
> <version>${project.parent.version}</version>
> <extensions>true</extensions>
> </plugin>
>
> Seems like even mvn validate won't run from the top of the reactor:
>
> [ERROR] Unresolveable build extension: Plugin
> ca.nanometrics.apollo:foo-lifecycle-plugin:4.0.0-SNAPSHOT or one of its
> dependencies could not be resolved: Failed to read artifact descriptor
> for
> ca.nanometrics.apollo:foo-lifecycle-plugin:jar:4.0.0-SNAPSHOT @
> [ERROR] Unknown packaging: foo-product @
> ca.nanometrics.apollo:foo:[unknown-version],
> C:\work\git\products_apollo-server\foo\pom.xml, line 10, column 14
> @
>
>
> I can get it to work if I do the following, but obviously that is not
> ideal
> to have to manually do the reactor like that.
>
> mvn install -N # builds the parent
> mvn install -f foo-lifecycle-plugin # build just the plugin
> mvn install # build everything - (could also just build -pl :foo)
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic