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

Multiple assemblies use the name "maven". Please assign each assembly a unique name. - using only single assembly #1558

Closed
tbfky opened this issue May 23, 2022 · 1 comment · Fixed by #1575
Assignees

Comments

@tbfky
Copy link
Contributor

tbfky commented May 23, 2022

[DEBUG] Configuring mojo 'io.fabric8:docker-maven-plugin:0.40.0-SNAPSHOT:build' with basic configurator -->
[DEBUG]   (f) buildArchiveOnly = false
[DEBUG]   (f) execution = io.fabric8:docker-maven-plugin:0.40.0-SNAPSHOT:build {execution: default-cli}
[DEBUG]   (s) name = test
[DEBUG]   (f) from = java:8
[DEBUG]   (f) descriptor = docker-assembly.xml
[DEBUG]   (f) assembly = io.fabric8.maven.docker.config.AssemblyConfiguration@7fef0b40
[DEBUG]   (f) build = io.fabric8.maven.docker.config.BuildImageConfiguration@5f395ce1
[DEBUG]   (f) images = [ImageConfiguration {name='test', alias='null'}]
[DEBUG]   (f) jib = false
[DEBUG]   (f) jibImageFormat = docker
[DEBUG]   (f) keepContainer = false
[DEBUG]   (f) logStdout = false
[DEBUG]   (f) maxConnections = 100
[DEBUG]   (f) outputDirectory = target/docker
[DEBUG]   (f) packaging = pom
[DEBUG]   (f) project = MavenProject: test:test:1.0.0-SNAPSHOT @ pom-bug.xml
[DEBUG]   (f) reactorProjects = [MavenProject: test:test:1.0.0-SNAPSHOT @ pom-bug.xml]
[DEBUG]   (f) removeVolumes = false
[DEBUG]   (f) session = org.apache.maven.execution.MavenSession@b30a50d
[DEBUG]   (f) settings = org.apache.maven.execution.SettingsAdapter@764a3e5d
[DEBUG]   (f) skip = false
[DEBUG]   (f) skipBuild = false
[DEBUG]   (f) skipExtendedAuth = false
[DEBUG]   (f) skipMachine = false
[DEBUG]   (f) skipPom = false
[DEBUG]   (f) skipTag = false
[DEBUG]   (f) sourceDirectory = src/main/docker
[DEBUG]   (f) useColor = true
[DEBUG] -- end configuration --
[ERROR] DOCKER> Multiple assemblies use the name "maven". Please assign each assembly a unique name.
pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>test</groupId>
    <artifactId>test</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <packaging>pom</packaging>

    <build>
        <plugins>
            <plugin>
                <groupId>io.fabric8</groupId>
                <artifactId>docker-maven-plugin</artifactId>
                <version>0.40.0-SNAPSHOT</version>
                <extensions>true</extensions>

                <configuration>
                    <images>
                        <image>
                            <name>test</name>
                            <build>
                                <from>java:8</from>
                                <assembly>
                                    <descriptor>docker-assembly.xml</descriptor>
                                </assembly>
                            </build>
                        </image>
                    </images>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
@tbfky
Copy link
Contributor Author

tbfky commented May 23, 2022

Same issue with 0.39.1.

rohanKanojia pushed a commit that referenced this issue Jul 9, 2022
…each assembly a unique name. - using only single assembly (#1575)
vjuranek added a commit to vjuranek/debezium that referenced this issue Sep 27, 2022
jpechane pushed a commit to debezium/debezium that referenced this issue Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant