IntelliJ IDEA 定义的 maven pom 中的错误

这个问题以前发布过,但信息很少,也没有解决方案。我的 pom 文件中出现错误:“无法解析符号‘runfx.args’” 我的项目是一个基于 javafx 原型的 Maven 项目。pom 由 intelliJ 自动生成,我只添加了位于 pom 底部的 JDA 依赖项和 bintray 存储库(用于 JDA 依赖项)。如果相关,我可以在不使用 maven 的情况下通过 IntelliJ 运行程序。

http://img4.mukewang.com/64263c920001f5d905390176.jpg

maven install 和 maven compile 工作没有错误,但 maven deploy 抛出以下错误:

无法在项目 MessageSpreadBot 上执行目标 org.apache.maven.plugins:maven-dependency-plugin:2.6:unpack-dependencies (unpack-dependencies): Unknown archiver type: No such archiver: 'pom'。-> [帮助 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven->dependency-plugin:2.6:unpack-dependencies (unpack-dependencies) 项目 MessageSpreadBot: Unknown org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) 在 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) 在 org.apache.maven .lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) 在 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) 在 org.apache.maven.lifecycle。执行(UnpackDependenciesMojo.java:91)在>org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)在>org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) ... 21 更多 由:org.codehaus.plexus.archiver.manager.NoSuchArchiverException: No >such archiver: 'pom'. 在 >org.codehaus.plexus.archiver.manager.DefaultArchiverManager.getUnArchiver(DefaultArchiverManager.java:77) 在 >org.codehaus.plexus.archiver.manager.DefaultArchiverManager.getUnArchiver(DefaultArchiverManager.java:122) 在 >org.apache。 ) 在 


aluckdog
浏览 201回答 1
1回答

HUH函数

我用了你的 pom,问题是插件试图解压一个 pom。解压 d:\Profiles\aclaudel.m2\repository\club\minnced\opus-java\1.0.4\opus-java-1.0.4.pom 到 D:\tmp\target\classes 包含“”并排除“”[错误] [...] 未知的存档器类型:没有这样的存档器:'pom'。解决方法是在插件配置中排除工件:<build>&nbsp; &nbsp; <plugins>&nbsp; &nbsp; &nbsp; &nbsp; <plugin>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <groupId>org.apache.maven.plugins</groupId>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <artifactId>maven-dependency-plugin</artifactId>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <version>2.6</version>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <executions>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <execution>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <id>unpack-dependencies</id>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <phase>package</phase>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <goals>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <goal>unpack-dependencies</goal>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </goals>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <configuration>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <excludeArtifactIds>opus-java</excludeArtifactIds>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <excludeScope>system</excludeScope>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <excludeGroupIds>junit,org.mockito,org.hamcrest</excludeGroupIds>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <outputDirectory>${project.build.directory}/classes</outputDirectory>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </configuration>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </execution>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </executions>&nbsp; &nbsp; &nbsp; &nbsp; </plugin>
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java