Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Category in catalog-overrides.json may result in duplicate #47

Open
knutwannheden opened this issue Jun 17, 2021 · 0 comments
Open

Category in catalog-overrides.json may result in duplicate #47

knutwannheden opened this issue Jun 17, 2021 · 0 comments

Comments

@knutwannheden
Copy link

I have a bom-descriptor-json project like the one in Quarkus (https://github.com/quarkusio/quarkus/tree/main/devtools/bom-descriptor-json). If the catalog-overrides.json file contains a catalog which is already defined by the Quarkus platform, then the generated platform descriptor JSON file ends up containing that category twice. Instead I would either have expected an error or the category from my catalog-overrides.json file to override the Quarkus category.

Here is the plugin configuration from pom.xml:

            <plugin>
                <groupId>io.quarkus</groupId>
                <artifactId>quarkus-platform-bom-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>${pluginPhase}</phase>
                        <goals>
                            <goal>generate-platform-descriptor</goal>
                        </goals>
                        <configuration>
                            <processGroupIds>
                                <groupId>ch.mobi.gluon</groupId>
                            </processGroupIds>
                            <bomArtifactId>gluon-bom</bomArtifactId>
                            <quarkusCoreVersion>${quarkus.version}</quarkusCoreVersion>
                            <resolveDependencyManagement>true</resolveDependencyManagement>
                            <overridesFile>${basedir}/target/resources/catalog-overrides.json</overridesFile>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

and here is the relevant part from catalog-overrides.json (the serialization category being the duplicate):

{
  "categories": [
    {
      "name": "Integration",
      "id": "integration",
      "description": "Integration with other frameworks and tools"
    },
    {
      "name": "Serialization",
      "id": "serialization",
      "description": "Serializing and deserializing various formats"
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant