Java Maven OSXBundle插件不生成DMG,应用程序无法打开
我正在使用XML插件的说明创建hello world应用程序Java Maven OSXBundle插件不生成DMG,应用程序无法打开,java,macos,maven,Java,Macos,Maven,我正在使用XML插件的说明创建hello world应用程序 <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>osxappbundle-maven-plugin</artifactId> <version>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>osxappbundle-maven-plugin</artifactId>
<version>1.0-alpha-1</version>
<configuration>
<mainClass>com.example.osxbundle.Main</mainClass>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>bundle</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
我的目标目录包含一个无法打开的.app
(请参见图),并且没有DMG。我做错了什么?我该如何解决这个问题
我还尝试升级到插件版本1.0-alpha-2,并从命令行打开应用程序。这就是我得到的:
sudo open ./target/osxbundle-1.0-SNAPSHOT/osxbundle.app
LSOpenURLsWithRole() failed with error -10810 for the file
./target/osxbundle-1.0-SNAPSHOT/osxbundle.app.
maven插件页面自2012年9月9日以来一直没有更新过,搜索结果显示,大约一年前,一群人在GitHub上使用它,并试图修复它所存在的各种问题。从那时起,各种OS X和XCode版本可能已经失效和过时了。。。
sudo open ./target/osxbundle-1.0-SNAPSHOT/osxbundle.app
LSOpenURLsWithRole() failed with error -10810 for the file
./target/osxbundle-1.0-SNAPSHOT/osxbundle.app.