apache / apache/maven-install-plugin

installAtEnd broken with multimodule with packaging pom

Open
#367 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
43
Forks
44
Avg merge
1d 23h
Merged PRs (30d)
11

Description

### Affected version

3.1.4

### Bug description

I´m getting this error

```
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:3.1.2:install (default-install) on project myproject: The packaging plugin for project myproject-parent did not assign a file to the build artifact ->
[Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-install-plugin:3.1.2:install (default-install) on project myproject: The packaging plugin for project myproject-parent did not assign a file to the build artifact at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2
(MojoExecutor.java:333) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute
(MojoExecutor.java:316) at org.apache.maven.lifecycle.internal.MojoExecutor.execute
(MojoExecutor.java:212) at org.apache.maven.lifecycle.internal.MojoExecutor.execute
```

I have it like this, like a multimodule

myproject (packing pom)
- myproject-parent/pom.xml (packaging pom)
- myproject-web/pom.xml (packaging war)

I´m getting this bug since upgrading to maven 3.9.x

I can workaround around this doing an skip install for myproject and myproject-parent or dropping installAtEnd

Any input appreciated

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.