小编Dav*_*kow的帖子

Fabric8:docker-maven-plugin 在 Jenkins 中的 Centos7 上运行时无法加载 ffi 提供程序

将fabric8添加到hello world pom后,在CentOS7上的Jenkins中运行maven“clean install”时,

            <plugin>
                <groupId>io.fabric8</groupId>
                <artifactId>docker-maven-plugin</artifactId>
                <version>0.31.0</version>
                <configuration>
                    <filter>${*}</filter>
                    <images>
                        <image>
                            <name>docker.io/myname/${project.artifactId}:${project.version}</name>
                        </image>
                    </images>
                </configuration>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>build</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin> 
Run Code Online (Sandbox Code Playgroud)

我收到以下错误

[ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.31.0:build (default) on project reference-service: Execution default of goal io.fabric8:docker-maven-plugin:0.31.0:build failed: An API incompatibility was encountered while executing io.fabric8:docker-maven-plugin:0.31.0:build: java.lang.UnsatisfiedLinkError: could not load FFI provider jnr.ffi.provider.jffi.Provider
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>io.fabric8:docker-maven-plugin:0.31.0
Run Code Online (Sandbox Code Playgroud)

...

[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR] 
[ERROR] …
Run Code Online (Sandbox Code Playgroud)

maven-3 fabric8 centos7 docker-maven-plugin

1
推荐指数
1
解决办法
3608
查看次数

标签 统计

centos7 ×1

docker-maven-plugin ×1

fabric8 ×1

maven-3 ×1