[
https://issues.apache.org/jira/browse/MNG-7067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17265181#comment-17265181
]
Alexander Kurtakov commented on MNG-7067:
-----------------------------------------
I don't know whether it helps or is even related but here is Tycho with maven
4.0.0-alpha-1-SNAPSHOT failing in the pomless case
[https://ci.eclipse.org/tycho/job/tycho-build-with-maven-snapshots/lastSuccessfulBuild/testReport/junit/]
. Hopefully it helps.
> Ensure produced (consumable) pom takes into account extensions
> --------------------------------------------------------------
>
> Key: MNG-7067
> URL: https://issues.apache.org/jira/browse/MNG-7067
> Project: Maven
> Issue Type: Task
> Affects Versions: 4.0.0-alpha-1
> Reporter: Romain Manni-Bucau
> Priority: Major
>
> Goal is to have this kind of (build time) extension reflected in the produced
> pom:
> {code:java}
> @Component(role = AbstractMavenLifecycleParticipant.class, hint =
> "rmannibucau-test")
> public class MyListener extends AbstractMavenLifecycleParticipant {
> @Override
> public void afterProjectsRead(final MavenSession session) throws
> MavenExecutionException {
> if (session.getCurrentProject() == null) {
> return;
> }
> session.getProjects().forEach(p -> {
> final Dependency dependency = new Dependency();
> dependency.setGroupId("junit");
> dependency.setArtifactId("junit");
> dependency.setVersion("3.8.1");
> p.getDependencies().add(dependency);
> });
> }
> } {code}
> Without having junit 3.8 in the project pom it should be in the installed pom.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)