maven 在新克隆的WSO 2 API Manager上,“P2发布者返回代码为1”

0mkxixxg  于 2023-10-17  发布在  Maven
关注(0)|答案(1)|浏览(164)

你好Stack Overflow社区
我在尝试构建某些WSO 2产品时遇到了一个具有挑战性的问题,特别是APIM(API管理器)版本。以前,我试图在APIM 3.2上修复CVE,一切都很好,但最近我遇到了一个持续存在的问题,阻碍了我的进展。大约一周前,我注意到构建Carbon或APIM产品的尝试总是失败,即使是在使用未经修改的新克隆存储库时也是如此。
我的开发环境包括OpenJDK 11.0.20和用于构建的Maven 3.9.4。然而,尽管有这些稳定的工具,我还是遇到了一个我自己无法解决的错误。
以下是API Manager 4.2.0版本的日志文件片段:

  1. [INFO] Command line:
  2. [/usr/lib/jvm/java-11-openjdk-amd64/bin/java, -jar, /home/user/.m2/repository/org/eclipse/tycho/tycho-bundles-external/0.25.0/eclipse/plugins/org.eclipse.equinox.launcher_1.3.200.v20151021-1308.jar, -configuration, /tmp/tycho-p2-runtime3733042892252974600.tmp/configuration, -debug, -consoleLog, -console, -nosplash, -application, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, -source, /home/user/INTM/Ticket40/apimtest/modules/p2-profile/product/target/tmp.1691598513211/featureExtract, -metadataRepository, file:/home/user/INTM/Ticket40/apimtest/modules/p2-profile/product/target/p2-repo, -metadataRepositoryName, am-p2-profile, -artifactRepository, file:/home/user/INTM/Ticket40/apimtest/modules/p2-profile/product/target/p2-repo, -artifactRepositoryName, am-p2-profile, -publishArtifacts, -publishArtifactRepository, -compress, -append]
  3. Configuration location:
  4. file:/tmp/tycho-p2-runtime3733042892252974600.tmp/configuration/
  5. Configuration file:
  6. file:/tmp/tycho-p2-runtime3733042892252974600.tmp/configuration/config.ini loaded
  7. Install location:
  8. file:/tmp/tycho-p2-runtime3733042892252974600.tmp/
  9. Framework located:
  10. file:/home/user/.m2/repository/org/eclipse/tycho/tycho-bundles-external/0.25.0/eclipse/plugins/org.eclipse.osgi_3.11.0.v20160309-1913.jar
  11. Framework classpath:
  12. file:/home/user/.m2/repository/org/eclipse/tycho/tycho-bundles-external/0.25.0/eclipse/plugins/org.eclipse.osgi_3.11.0.v20160309-1913.jar
  13. Debug options:
  14. file:/home/user/INTM/Ticket40/apimtest/modules/p2-profile/product/.options not found
  15. Time to load bundles: 337
  16. !SESSION 2023-08-09 18:28:43.789 -----------------------------------------------
  17. eclipse.buildId=unknown
  18. java.version=11.0.20
  19. java.vendor=Ubuntu
  20. BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=fr_FR
  21. Framework arguments: -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -source /home/user/INTM/Ticket40/apimtest/modules/p2-profile/product/target/tmp.1691598513211/featureExtract -metadataRepository file:/home/user/INTM/Ticket40/apimtest/modules/p2-profile/product/target/p2-repo -metadataRepositoryName am-p2-profile -artifactRepository file:/home/user/INTM/Ticket40/apimtest/modules/p2-profile/product/target/p2-repo -artifactRepositoryName am-p2-profile -publishArtifacts -publishArtifactRepository -compress -append
  22. Command-line arguments: -debug -consoleLog -console -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -source /home/user/INTM/Ticket40/apimtest/modules/p2-profile/product/target/tmp.1691598513211/featureExtract -metadataRepository file:/home/user/INTM/Ticket40/apimtest/modules/p2-profile/product/target/p2-repo -metadataRepositoryName am-p2-profile -artifactRepository file:/home/user/INTM/Ticket40/apimtest/modules/p2-profile/product/target/p2-repo -artifactRepositoryName am-p2-profile -publishArtifacts -publishArtifactRepository -compress -append
  23. !ENTRY org.eclipse.tycho.p2.resolver.impl 4 0 2023-08-09 18:28:44.644
  24. !MESSAGE FrameworkEvent ERROR
  25. !STACK 0
  26. org.osgi.framework.BundleException: Could not resolve module: org.eclipse.tycho.p2.resolver.impl [53]
  27. Unresolved requirement: Import-Package: org.eclipse.tycho
  28. at org.eclipse.osgi.container.Module.start(Module.java:444)
  29. at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1620)
  30. at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1599)
  31. at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1571)
  32. at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1514)
  33. at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
  34. at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
  35. at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
  36. !ENTRY org.eclipse.tycho.p2.maven.repository 4 0 2023-08-09 18:28:44.646
  37. !MESSAGE FrameworkEvent ERROR
  38. !STACK 0
  39. org.osgi.framework.BundleException: Could not resolve module: org.eclipse.tycho.p2.maven.repository [54]
  40. Unresolved requirement: Import-Package: org.eclipse.tycho
  41. at org.eclipse.osgi.container.Module.start(Module.java:444)
  42. at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1620)
  43. at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1599)
  44. at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1571)
  45. at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1514)
  46. at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
  47. at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
  48. at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
  49. !ENTRY org.eclipse.tycho.p2.tools.impl 4 0 2023-08-09 18:28:44.646
  50. !MESSAGE FrameworkEvent ERROR
  51. !STACK 0
  52. org.osgi.framework.BundleException: Could not resolve module: org.eclipse.tycho.p2.tools.impl [55]
  53. Unresolved requirement: Import-Package: org.eclipse.tycho
  54. at org.eclipse.osgi.container.Module.start(Module.java:444)
  55. at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1620)
  56. at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1599)
  57. at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1571)
  58. at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1514)
  59. at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
  60. at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
  61. at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
  62. !ENTRY org.eclipse.osgi 4 0 2023-08-09 18:28:44.815
  63. !MESSAGE Could not find bundle: org.eclipse.equinox.console
  64. !STACK 0
  65. org.osgi.framework.BundleException: Could not find bundle: org.eclipse.equinox.console
  66. at org.eclipse.core.runtime.internal.adaptor.ConsoleManager.checkForConsoleBundle(ConsoleManager.java:58)
  67. at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:339)
  68. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:239)
  69. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  70. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  71. at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  72. at java.base/java.lang.reflect.Method.invoke(Method.java:566)
  73. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:670)
  74. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:609)
  75. at org.eclipse.equinox.launcher.Main.run(Main.java:1516)
  76. at org.eclipse.equinox.launcher.Main.main(Main.java:1489)
  77. Starting application: 1028
  78. Generating metadata for ..
  79. Status ERROR: this code=0 publishing result null children=[Status OK: unknown code=0 OK null Status ERROR: org.eclipse.equinox.p2.publisher.eclipse code=0 An error occurred while publishing bundle /home/user/INTM/Ticket40/apimtest/modules/p2-profile/product/target/tmp.1691598513211/featureExtract/plugins/waffle-jna-1.6.0.wso2v7.jar: Invalid CEN header (invalid zip64 extra data field size) java.util.zip.ZipException: Invalid CEN header (invalid zip64 extra data field size) Status ERROR: org.eclipse.equinox.p2.publisher.eclipse code=0 An error occurred while publishing bundle /home/user/INTM/Ticket40/apimtest/modules/p2-profile/product/target/tmp.1691598513211/featureExtract/plugins/waffle-jna-1.6.0.wso2v6.jar: Invalid CEN header (invalid zip64 extra data field size) java.util.zip.ZipException: Invalid CEN header (invalid zip64 extra data field size)]
  80. Product publisher application was executed with the following arguments:
  81. -source
  82. /home/user/INTM/Ticket40/apimtest/modules/p2-profile/product/target/tmp.1691598513211/featureExtract
  83. -metadataRepository
  84. file:/home/user/INTM/Ticket40/apimtest/modules/p2-profile/product/target/p2-repo
  85. -metadataRepositoryName
  86. am-p2-profile
  87. -artifactRepository
  88. file:/home/user/INTM/Ticket40/apimtest/modules/p2-profile/product/target/p2-repo
  89. -artifactRepositoryName
  90. am-p2-profile
  91. -publishArtifacts
  92. -publishArtifactRepository
  93. -compress
  94. -append
  95. [ERROR] P2 publisher return code was 1
  96. org.apache.maven.plugin.MojoFailureException: P2 publisher return code was 1
  97. at org.wso2.maven.p2.RepositoryGenMojo.generateRepository (RepositoryGenMojo.java:255)
  98. at org.wso2.maven.p2.RepositoryGenMojo.createRepo (RepositoryGenMojo.java:204)
  99. at org.wso2.maven.p2.RepositoryGenMojo.execute (RepositoryGenMojo.java:191)
  100. at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
  101. at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
  102. at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
  103. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
  104. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
  105. at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
  106. at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
  107. at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
  108. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
  109. at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
  110. at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
  111. at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
  112. at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
  113. at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
  114. at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
  115. at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
  116. at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
  117. at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
  118. at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
  119. at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
  120. at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
  121. at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
  122. at java.lang.reflect.Method.invoke (Method.java:566)
  123. at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
  124. at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
  125. at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
  126. at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
  127. [INFO] ------------------------------------------------------------------------
  128. [INFO] Reactor Summary for WSO2 API Manager - Aggregator Module 4.2.0-SNAPSHOT:
  129. [INFO]
  130. [INFO] WSO2 API Manager - Aggregator Module ............... SUCCESS [ 38.591 s]
  131. [INFO] WSO2 API Manager - Styles Parent ................... SUCCESS [ 0.025 s]
  132. [INFO] WSO2 API Manager - Styles .......................... SUCCESS [ 22.109 s]
  133. [INFO] WSO2 API Manager - UI Styles ....................... SUCCESS [ 44.569 s]
  134. [INFO] WSO2 API Manager - Multi Tenant Dashboard .......... SUCCESS [ 3.821 s]
  135. [INFO] WSO2 API Manager - Features Parent ................. SUCCESS [ 0.022 s]
  136. [INFO] WSO2 API Manager - Features Aggregator Module ...... SUCCESS [ 0.019 s]
  137. [INFO] WSO2 API Manager - Styles Features ................. SUCCESS [ 13.838 s]
  138. [INFO] WSO2 API Manager - Multi Tenant Dashboard Feature .. SUCCESS [ 14.893 s]
  139. [INFO] WSO2 API Manager - Secutity Aggregated Feature ..... SUCCESS [ 24.827 s]
  140. [INFO] WSO2 API Manager - P2 Profile Generation Parent .... SUCCESS [ 0.018 s]
  141. [INFO] WSO2 API Manager - P2 Profile Generation ........... FAILURE [05:07 min]
  142. [INFO] WSO2 API Manager - OAuth2 Grant Types .............. SKIPPED
  143. [INFO] WSO2 API Manager - CallHome Module ................. SKIPPED
  144. [INFO] WSO2 API Manager - Identity Local Authenticators ... SKIPPED
  145. [INFO] WSO2 API Manager - Distribution Parent ............. SKIPPED
  146. [INFO] WSO2 API Manager - Distribution .................... SKIPPED
  147. [INFO] WSO2 API Manager - Integration Tests ............... SKIPPED
  148. [INFO] WSO2 API Manager - Integration Test Common Module .. SKIPPED
  149. [INFO] WSO2 API Manager - Integration Admin Clients Module SKIPPED
  150. [INFO] WSO2 API Manager - Integration Clients Module ...... SKIPPED
  151. [INFO] Publisher API client ............................... SKIPPED
  152. [INFO] Admin API client ................................... SKIPPED
  153. [INFO] Gateway API client ................................. SKIPPED
  154. [INFO] Service Catalog API client ......................... SKIPPED
  155. [INFO] Store API client ................................... SKIPPED
  156. [INFO] Internal API client ................................ SKIPPED
  157. [INFO] WSO2 API Manager - Integration Common Test Module .. SKIPPED
  158. [INFO] WSO2 API Manager - Test Artifacts Tests ............ SKIPPED
  159. [INFO] WSO2 API Manager - RestFul Backend Module for Integration Tests SKIPPED
  160. [INFO] WSO2 API Manager - ArtifactDeploymentMonitor WebApp SKIPPED
  161. [INFO] WSO2 API Manager - Framework Extensions ............ SKIPPED
  162. [INFO] WSO2 API Manager - Integration Extensions Module ... SKIPPED
  163. [INFO] WSO2 API Manager - Integration UI Pages Module ..... SKIPPED
  164. [INFO] WSO2 API Manager - Extensions ...................... SKIPPED
  165. [INFO] WSO2 API Manager - Third Party Key Manager ......... SKIPPED
  166. [INFO] WSO2 API Manager - Integration New Test Module ..... SKIPPED
  167. [INFO] WSO2 API Manager - Based on product backend Test Module SKIPPED
  168. [INFO] WSO2 API Manager - Based on product benchmark Test Module SKIPPED
  169. [INFO] WSO2 API Manager - Based on product restart Test Module SKIPPED
  170. [INFO] ------------------------------------------------------------------------
  171. [INFO] BUILD FAILURE
  172. [INFO] ------------------------------------------------------------------------
  173. [INFO] Total time: 08:33 min
  174. [INFO] Finished at: 2023-08-09T18:28:55+02:00
  175. [INFO] ------------------------------------------------------------------------
  176. [ERROR] Failed to execute goal org.wso2.maven:carbon-p2-plugin:5.1.2:p2-repo-gen (2-p2-repo-generation) on project am-p2-profile: P2 publisher return code was 1 -> [Help 1]
  177. org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.wso2.maven:carbon-p2-plugin:5.1.2:p2-repo-gen (2-p2-repo-generation) on project am-p2-profile: P2 publisher return code was 1
  178. at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:333)
  179. at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
  180. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
  181. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
  182. at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
  183. at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
  184. at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
  185. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
  186. at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
  187. at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
  188. at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
  189. at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
  190. at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
  191. at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
  192. at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
  193. at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
  194. at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
  195. at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
  196. at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
  197. at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
  198. at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
  199. at java.lang.reflect.Method.invoke (Method.java:566)
  200. at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
  201. at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
  202. at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
  203. at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
  204. Caused by: org.apache.maven.plugin.MojoExecutionException: P2 publisher return code was 1
  205. at org.wso2.maven.p2.RepositoryGenMojo.createRepo (RepositoryGenMojo.java:210)
  206. at org.wso2.maven.p2.RepositoryGenMojo.execute (RepositoryGenMojo.java:191)
  207. at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
  208. at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
  209. at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
  210. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
  211. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
  212. at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
  213. at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
  214. at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
  215. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
  216. at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
  217. at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
  218. at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
  219. at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
  220. at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
  221. at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
  222. at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
  223. at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
  224. at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
  225. at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
  226. at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
  227. at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
  228. at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
  229. at java.lang.reflect.Method.invoke (Method.java:566)
  230. at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
  231. at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
  232. at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
  233. at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
  234. Caused by: org.apache.maven.plugin.MojoFailureException: P2 publisher return code was 1
  235. at org.wso2.maven.p2.RepositoryGenMojo.generateRepository (RepositoryGenMojo.java:255)
  236. at org.wso2.maven.p2.RepositoryGenMojo.createRepo (RepositoryGenMojo.java:204)
  237. at org.wso2.maven.p2.RepositoryGenMojo.execute (RepositoryGenMojo.java:191)
  238. at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
  239. at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
  240. at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
  241. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
  242. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
  243. at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
  244. at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
  245. at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
  246. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
  247. at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
  248. at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
  249. at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
  250. at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
  251. at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
  252. at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
  253. at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
  254. at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
  255. at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
  256. at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
  257. at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
  258. at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
  259. at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
  260. at java.lang.reflect.Method.invoke (Method.java:566)
  261. at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
  262. at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
  263. at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
  264. at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
  265. [ERROR]
  266. [ERROR]
  267. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  268. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  269. [ERROR]
  270. [ERROR] After correcting the problems, you can resume the build with the command
  271. [ERROR] mvn <args> -rf :am-p2-profile
  272. [DEBUG] Shutting down adapter factory; available factories [file-lock, rwlock-local, semaphore-local, noop]; available name mappers [discriminating, file-gav, file-hgav, file-static, gav, static]
  273. [DEBUG] Shutting down 'file-lock' factory
  274. [DEBUG] Shutting down 'rwlock-local' factory
  275. [DEBUG] Shutting down 'semaphore-local' factory
  276. [DEBUG] Shutting down 'noop' factory

此错误似乎与P2发布程序进程有关,其中返回代码为1。我试图进一步调查,但无法确定根本原因。我已经按照错误消息中提供的建议链接进行了操作,但仍然无法找到解决问题的方法。
我请求社区帮助我诊断和解决这个问题。如果您需要有关我的环境或配置的任何其他信息或具体细节,请告诉我。我将非常感谢任何可以指导我解决这个构建失败的见解或建议。
提前感谢您的支持和专业知识!

xwbd5t1u

xwbd5t1u1#

较新版本的JDK(例如11.0.20+)引入了影响某些依赖项的旧版本的更改。JDK已经引入了一个系统属性[1],可以用来在运行时克服这个问题。APIM构建也会受到JDK中此更改的影响。因此,您将不得不使用旧版本的JDK,直到这些依赖项被碰撞。
此外,还不支持使用JDK 17构建产品存储库。
[1]- https://bugs.openjdk.org/browse/JDK-8302992

相关问题