gpt4 book ai didi

maven - apache maven 构建失败 - 无法执行目标 org.apache.felix :maven-bundle-plugin:4. 2.0:manifest

转载 作者:行者123 更新时间:2023-12-03 08:32:43 25 4
gpt4 key购买 nike

我想通过以下位置的文章安装“iText RUPS”

https://github.com/itext/i7j-rups

在命令提示符中输入:“mvn clean package”后,我得到:

[信息] --- maven-bundle-plugin:4.2.0:manifest (bundle-manifest) @ itext-rups ---

[错误]发生内部错误java.util.ConcurrentModificationException

at java.util.TreeMap.callMappingFunctionWithCheck (TreeMap.java:742)
at java.util.TreeMap.computeIfAbsent (TreeMap.java:558)
at aQute.bnd.osgi.Jar.putResource (Jar.java:288)
at aQute.bnd.osgi.Jar$1.visitFile (Jar.java:202)
at aQute.bnd.osgi.Jar$1.visitFile (Jar.java:177)
at java.nio.file.Files.walkFileTree (Files.java:2804)
at aQute.bnd.osgi.Jar.buildFromDirectory (Jar.java:176)
at aQute.bnd.osgi.Jar.<init> (Jar.java:119)
at aQute.bnd.osgi.Jar.<init> (Jar.java:172)
at org.apache.felix.bundleplugin.BundlePlugin.getOSGiBuilder (BundlePlugin.java:603)
at org.apache.felix.bundleplugin.ManifestPlugin.getAnalyzer (ManifestPlugin.java:285)
at org.apache.felix.bundleplugin.ManifestPlugin.execute (ManifestPlugin.java:111)
at org.apache.felix.bundleplugin.BundlePlugin.execute (BundlePlugin.java:364)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:64)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:564)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)

[信息]-------------------------------------------------------- ----------------------------

[信息]构建失败

[信息]-------------------------------------------------------- ----------------------------

[信息]总时间:4.546 秒

[信息]完成于:2020-11-07T15:07:40+01:00

[信息]-------------------------------------------------------- ----------------------------

[错误] 无法在项目 itext-rups 上执行目标 org.apache.felix:maven-bundle-plugin:4.2.0:manifest (bundle-manifest):maven-bundle-plugin 中的内部错误:ConcurrentModificationException -> [帮助1]

[错误]

[错误] 要查看错误的完整堆栈跟踪,请使用 -e 开关重新运行 Maven。

[错误]使用 -X 开关重新运行 Maven 以启用完整的调试日志记录。

[错误]

[错误]有关错误和可能的解决方案的更多信息,请阅读以下文章:

[错误] [帮助 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

如何解决这个问题?

最佳答案

基于:https://github.com/FasterXML/oss-parent/issues/27

您需要更新版本的 Maven bundle 插件。

尝试将其添加到 POM 文件的插件部分:

<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>5.1.1</version>
</plugin>

关于maven - apache maven 构建失败 - 无法执行目标 org.apache.felix :maven-bundle-plugin:4. 2.0:manifest,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64729046/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com