[ https://issues.apache.org/jira/browse/MINSTALL-191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17840670#comment-17840670 ]
Dorian Vallant commented on MINSTALL-191: ----------------------------------------- [~cstamas] I don't understand exactly what you mean by "This is a user mistake". The project layout uses [standard Maven convention for groupId|https://maven.apache.org/guides/mini/guide-naming-conventions.html]. But even if I change the groupId for in all pom's to e.g. `at.dvallant.maven` (without any subgroup), it doesn't work either. Maybe I misunderstood something... > Metadata for submodules seems to be incomplete > ---------------------------------------------- > > Key: MINSTALL-191 > URL: https://issues.apache.org/jira/browse/MINSTALL-191 > Project: Maven Install Plugin > Issue Type: Bug > Components: install:install > Affects Versions: 3.0.0-M1, 3.0.0, 3.1.0, 3.1.1 > Environment: Apache Maven 3.8.8 > (4c87b05d9aedce574290d1acc98575ed5eb6cd39) > Java version: 11.0.18, vendor: Eclipse Adoptium > Default locale: en_US, platform encoding: UTF-8 > OS name: "linux", version: "5.15.0-83-generic", arch: "amd64", family: "unix" > Reporter: Dorian Vallant > Priority: Major > Attachments: maven-install-plugin-bug.tgz > > > maven-install-plugin 3.x (and maven-deploy-plugin 3.x too) seems to have a > bug when generating maven-metadata-*.xml for submodules containing custom > maven-plugins. > With version 2.5.2 maven-install-plugin generates the local metadata as > follows: > {code:xml} > <?xml version="1.0" encoding="UTF-8"?> > <metadata> > <groupId>at.dvallant.maven</groupId> > <artifactId>plugins</artifactId> > <versioning> > <versions> > <version>0.1.0-SNAPSHOT</version> > </versions> > <lastUpdated>20230831082036</lastUpdated> > </versioning> > <plugins> > <plugin> > <name>my-maven-plugin</name> > <prefix>my</prefix> > <artifactId>my-maven-plugin</artifactId> > </plugin> > </plugins> > </metadata> > {code} > > After upgrading to 3.1.1 (also testet with 3.0.0-M1, 3.0.0 and 3.1.0) the > generated file looks this: > {code:xml} > <metadata> > <groupId>at.dvallant.maven</groupId> > <artifactId>plugins</artifactId> > <versioning> > <versions> > <version>0.1.0-SNAPSHOT</version> > </versions> > <lastUpdated>20230831082207</lastUpdated> > </versioning> > </metadata> > {code} > A test-project to reproduce the issue is attached. > To reproduce build the project by calling `mvn clean install` and then check > the contents of > `~/.m2/repository/at/dvallant/maven/plugins/maven-metadata-local.xml`. > If you downgrade the version to 2.5.2, metadata generation works as expected. > If you could give me a hint where the problem might be in the code I can try > to fix it and open a pull request. -- This message was sent by Atlassian Jira (v8.20.10#820010)