小编Yvu*_*vus的帖子

appbundle-maven-plugin 在使用 java 10 的 mac OSX 上失败

我尝试使用 appbundle-maven-plugin 打包我的应用程序,但出现以下错误:

[ERROR] Failed to execute goal sh.tak.appbundler:appbundle-maven-plugin:1.2.0:bundle (default) on project mailAutomatedReply: Execution default of goal sh.tak.appbundler:appbundle-maven-plugin:1.2.0:bundle failed: An API incompatibility was encountered while executing sh.tak.appbundler:appbundle-maven-plugin:1.2.0:bundle: java.lang.ExceptionInInitializerError: null
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>sh.tak.appbundler:appbundle-maven-plugin:1.2.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/home/.m2/repository/sh/tak/appbundler/appbundle-maven-plugin/1.2.0/appbundle-maven-plugin-1.2.0.jar
[ERROR] urls[1] = file:/Users/home/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.8/plexus-velocity-1.1.8.jar
.
.
.
[ERROR] Number of foreign imports: 1
Run Code Online (Sandbox Code Playgroud)

插件定义如下:

         <plugin>
            <groupId>sh.tak.appbundler</groupId>
            <artifactId>appbundle-maven-plugin</artifactId>
            <version>1.2.0</version>
            <configuration>
                <mainClass>package.SwingMainApp</mainClass>
                <bundleName>Inscription</bundleName>
                <iconFile>logoInscriptionsApp.png</iconFile>
            </configuration>
            <executions>
                <execution>
                    <phase>package</phase>
                    <goals>
                        <goal>bundle</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
Run Code Online (Sandbox Code Playgroud)

java版本如下:

> java -version
java …
Run Code Online (Sandbox Code Playgroud)

java maven app-bundle

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

标签 统计

app-bundle ×1

java ×1

maven ×1