ascheman opened a new pull request, #466: URL: https://github.com/apache/maven-install-plugin/pull/466
When a project uses the Maven 4 **module source hierarchy**, the JAR plugin produces one JAR per Java module and attaches them as separate artifacts, without assigning a file to the project's main artifact — its path stays the (directory) build output. With `allowIncompleteProjects=true`, `install` warned about the missing main file but still passed the directory to the installer, which failed: ``` Failed to install artifact …:jar:…: is a folder ``` (reported by @desruisseaux while building apache/sis.) This drops the main artifact from the install request in that case and installs the POM + the attached per-module JARs only. A new `InstallMojoTest` case asserts the directory main artifact is excluded from the request (it fails without this change). The existing "change packaging to 'pom'" warning is kept as-is for minimality; it now reads a bit oddly since the attachments install successfully — happy to reword if preferred. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
