maven-plugin 相关问题

不要将此标记用于特定Maven插件的使用。仅用于Maven插件开发相关问题。

如何调试Maven插件?

我使用 POM 中配置的 allure-maven 插件。但是,当它失败时 ru.yandex.qatools.allure.data.ReportGenerationException:找不到任何诱惑结果 我想调试 p...

回答 3 投票 0

maven 错误:找不到私有 github 存储库中托管的工件

我试图拉取托管在 github(公司的私人仓库)中的工件,但它抛出了一个错误: [信息] 正在扫描项目... [信息] [信息]-------------------------------------< com.my:package-orde...

回答 1 投票 0

java.lang.NoClassDefFoundError:运行 Junit5 时出现 org/apache/maven/surefire/api/testset/TestSetFailedException

运行 Junit 5 测试用例时面临以下问题。 CMD: $ mvn test -Dtest=com.app.AppTest -DskipTests=false (仅运行特定的测试文件,根据需要和 Jdk 1.8.0_232 使用 apache-mav...

回答 1 投票 0

在 Intellij IDE 中找不到插件“maven-clean-plugin:”

我在 pom.xml 中添加了以下内容。 maven-clean-插件 <

回答 1 投票 0

获取maven插件内本地存储库的路径

我是 Maven 新手,我正在尝试构建我的第一个 Maven 插件, 在我的插件中,我想确定项目依赖项的路径,但我没有看到访问

回答 1 投票 0

gradle升级到7后找不到org.gradle.api.DefaultTask类型的方法pom()

我正在将 gradle 从 2.6 升级到 7.0,升级后出现此错误 在 org.grale.api.DefaultTask 类型的任务上找不到参数的方法 pom()。 删除应用后

回答 1 投票 0

maven 没有为 Spring Boot 项目创建 META-INF

当我构建 Spring boot 项目时,它会创建一个目标文件夹并 目标/类也一样,但它不会创建任何 META-INF。我还包括依赖项 - org.ap...

回答 2 投票 0

在 pom.xml 中设置 JVM 参数的一般方法独立于所使用的插件

我有一个 Maven 项目,它通过使用 XSLT 转换在 org.codehaus.mojo.xml-maven-plugin(版本 1.0.2)的帮助下生成代码。 然而,当运行时它超出了 XPath 运算符 lim...

回答 1 投票 0

Maven 编译器插件不支持的类文件主要版本 60

我正在更新 Spigot (Minecraft) 插件,最新版本的 Spigot 需要 Java 16。在我的 pom 中,我将 maven 编译器插件目标更改为 16,源代码仍然是 1.8。现在我正在...

回答 5 投票 0

Wildfly 23 启动...但随后由于启动超时而阻塞

看来启动正确 17:44:17,093 INFO [org.jboss.as.mail.extension](MSC 服务线程 1-8)WFLYMAIL0001:绑定邮件会话 [java:jboss/mail/Default] 17:44:17,201 信息 [org.wildfly.exte...

回答 1 投票 0

Gitlab-runner maven 构建失败,并显示“权限被拒绝”消息,但在调试选项打开时成功

我正在尝试使用 gitlab-runner 使用 Maven 映像构建 java 项目。 直到昨天我遇到以下错误时才出现问题 许可被拒绝。 这是命令...

回答 1 投票 0

Jitpack 库已成功上传,但无法访问实现中的任何方法

我已将我的库上传到jitpack,这是链接 https://jitpack.io/com/github/gastsail/hzone/0.9/hzone-0.9.pom 事情是,当我尝试将它导入到任何项目中时,例如

回答 1 投票 0

使用“template-maven-plugin”时如何处理构建路径源

我正在从 Ivy+Ant 迁移到 Maven,我对 Maven 还很陌生,所以请耐心等待... 我需要“过滤”包含 @@replaceme@@ 占位符的单个源文件 (.java),然后编译结果...

回答 1 投票 0

仅在父级中运行 Maven 插件

我创建了一个 Maven 插件来启动、清理和停止数据库。我的项目由一个包含 4 个模块的 pom 文件组成: 基础设施

回答 2 投票 0

运行检查依赖关系Maven插件时出现日期解析错误

我们最近在 Spring Boot 项目中运行 Maven 检查插件时遇到了一个新错误。 我们的配置如下 org.owasp 我们最近在 Spring Boot 项目中运行 Maven 检查插件时遇到了一个新错误。 我们的配置如下 <plugin> <groupId>org.owasp</groupId> <artifactId>dependency-check-maven</artifactId> <version>8.2.1</version> <configuration> <formats> <format>html</format> <format>json</format> </formats> </configuration> <executions> <execution> <goals> <goal>check</goal> </goals> </execution> </executions> </plugin> 运行 Maven 检查依赖关系后,这是错误日志的标题: 2023-12-01T16:59:53.8260662Z [WARNING] A new version of dependency-check is available. Consider updating to version 9.0.2. 2023-12-01T16:59:53.9300519Z [INFO] Updating CISA Known Exploited Vulnerability list: https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json 2023-12-01T16:59:54.0402611Z [ERROR] Error reading CISA Known Exploited Vulnerabilities JSON data 2023-12-01T16:59:54.0446587Z [ERROR] Unable to find the CISA Known Exploited Vulnerabilities file to parse 2023-12-01T16:59:54.0448462Z org.owasp.dependencycheck.data.update.exception.UpdateException: Unable to find the CISA Known Exploited Vulnerabilities file to parse 2023-12-01T16:59:54.0451357Z at org.owasp.dependencycheck.data.update.cisa.KnownExploitedVulnerabilityParser.parse (KnownExploitedVulnerabilityParser.java:84) 2023-12-01T16:59:54.0452940Z at org.owasp.dependencycheck.data.update.KnownExploitedDataSource.update (KnownExploitedDataSource.java:82) 2023-12-01T16:59:54.0453968Z at org.owasp.dependencycheck.Engine.doUpdates (Engine.java:900) 2023-12-01T16:59:54.0454784Z at org.owasp.dependencycheck.Engine.initializeAndUpdateDatabase (Engine.java:705) 2023-12-01T16:59:54.0455791Z at org.owasp.dependencycheck.Engine.analyzeDependencies (Engine.java:631) 2023-12-01T16:59:54.0456909Z at org.owasp.dependencycheck.maven.BaseDependencyCheckMojo.runCheck (BaseDependencyCheckMojo.java:1919) 2023-12-01T16:59:54.0458119Z at org.owasp.dependencycheck.maven.BaseDependencyCheckMojo.execute (BaseDependencyCheckMojo.java:1102) 2023-12-01T16:59:54.0459304Z at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) 2023-12-01T16:59:54.0460409Z at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370) 2023-12-01T16:59:54.0461390Z at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351) 2023-12-01T16:59:54.0462336Z at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) 2023-12-01T16:59:54.0463286Z at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171) 2023-12-01T16:59:54.0464232Z at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163) 2023-12-01T16:59:54.0465322Z at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) 2023-12-01T16:59:54.0466800Z at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) 2023-12-01T16:59:54.0468146Z at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) 2023-12-01T16:59:54.0469387Z at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) 2023-12-01T16:59:54.0470266Z at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:298) 2023-12-01T16:59:54.0471003Z at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) 2023-12-01T16:59:54.0471819Z at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) 2023-12-01T16:59:54.0472492Z at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960) 2023-12-01T16:59:54.0473157Z at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293) 2023-12-01T16:59:54.0473799Z at org.apache.maven.cli.MavenCli.main (MavenCli.java:196) 2023-12-01T16:59:54.0474482Z at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) 2023-12-01T16:59:54.0475386Z at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) 2023-12-01T16:59:54.0476466Z at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) 2023-12-01T16:59:54.0477309Z at java.lang.reflect.Method.invoke (Method.java:566) 2023-12-01T16:59:54.0478085Z at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) 2023-12-01T16:59:54.0479028Z at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) 2023-12-01T16:59:54.0479998Z at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) 2023-12-01T16:59:54.0480958Z at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) 2023-12-01T16:59:54.0484209Z Caused by: com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.util.Date` from String "2023-12-01T15:09:26..642Z": not a valid representation (error: Failed to parse Date value '2023-12-01T15:09:26..642Z': Cannot parse date "2023-12-01T15:09:26..642Z": while it seems to fit format 'yyyy-MM-dd'T'HH:mm:ss.SSSX', parsing fails (leniency? null)) 2023-12-01T16:59:54.0487501Z at [Source: (InputStreamReader); line: 4, column: 21] (through reference chain: org.owasp.dependencycheck.data.knownexploited.json.KnownExploitedVulnerabilitiesSchema["dateReleased"]) 2023-12-01T16:59:54.0489077Z at com.fasterxml.jackson.databind.exc.InvalidFormatException.from (InvalidFormatException.java:67) 2023-12-01T16:59:54.0490312Z at com.fasterxml.jackson.databind.DeserializationContext.weirdStringException (DeserializationContext.java:1996) 2023-12-01T16:59:54.0491639Z at com.fasterxml.jackson.databind.DeserializationContext.handleWeirdStringValue (DeserializationContext.java:1224) 2023-12-01T16:59:54.0493028Z at com.fasterxml.jackson.databind.deser.std.StdDeserializer._parseDate (StdDeserializer.java:1362) 2023-12-01T16:59:54.0494167Z at com.fasterxml.jackson.databind.deser.std.StdDeserializer._parseDate (StdDeserializer.java:1304) 2023-12-01T16:59:54.0495470Z at com.fasterxml.jackson.databind.deser.std.DateDeserializers$DateBasedDeserializer._parseDate (DateDeserializers.java:201) 2023-12-01T16:59:54.0496879Z at com.fasterxml.jackson.databind.deser.std.DateDeserializers$DateDeserializer.deserialize (DateDeserializers.java:303) 2023-12-01T16:59:54.0498272Z at com.fasterxml.jackson.databind.deser.std.DateDeserializers$DateDeserializer.deserialize (DateDeserializers.java:281) 2023-12-01T16:59:54.0499682Z at com.fasterxml.jackson.module.blackbird.deser.SettableObjectProperty.deserializeAndSet (SettableObjectProperty.java:44) 2023-12-01T16:59:54.0500997Z at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize (BeanDeserializer.java:278) 2023-12-01T16:59:54.0502265Z at com.fasterxml.jackson.module.blackbird.deser.SuperSonicBeanDeserializer.deserialize (SuperSonicBeanDeserializer.java:155) 2023-12-01T16:59:54.0503802Z at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue (DefaultDeserializationContext.java:323) 2023-12-01T16:59:54.0504966Z at com.fasterxml.jackson.databind.ObjectReader._bind (ObjectReader.java:2079) 2023-12-01T16:59:54.0505839Z at com.fasterxml.jackson.databind.ObjectReader.readValue (ObjectReader.java:1229) 2023-12-01T16:59:54.0507065Z at org.owasp.dependencycheck.data.update.cisa.KnownExploitedVulnerabilityParser.parse (KnownExploitedVulnerabilityParser.java:77) 2023-12-01T16:59:54.0508510Z at org.owasp.dependencycheck.data.update.KnownExploitedDataSource.update (KnownExploitedDataSource.java:82) 2023-12-01T16:59:54.0509481Z at org.owasp.dependencycheck.Engine.doUpdates (Engine.java:900) 2023-12-01T16:59:54.0510266Z at org.owasp.dependencycheck.Engine.initializeAndUpdateDatabase (Engine.java:705) 2023-12-01T16:59:54.0511139Z at org.owasp.dependencycheck.Engine.analyzeDependencies (Engine.java:631) 2023-12-01T16:59:54.0512138Z at org.owasp.dependencycheck.maven.BaseDependencyCheckMojo.runCheck (BaseDependencyCheckMojo.java:1919) 2023-12-01T16:59:54.0513306Z at org.owasp.dependencycheck.maven.BaseDependencyCheckMojo.execute (BaseDependencyCheckMojo.java:1102) 2023-12-01T16:59:54.0514477Z at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) 2023-12-01T16:59:54.0515544Z at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370) 2023-12-01T16:59:54.0516502Z at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351) 2023-12-01T16:59:54.0517456Z at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) 2023-12-01T16:59:54.0518392Z at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171) 2023-12-01T16:59:54.0519329Z at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163) 2023-12-01T16:59:54.0520415Z at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) 2023-12-01T16:59:54.0521701Z at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) 2023-12-01T16:59:54.0523048Z at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) 2023-12-01T16:59:54.0524269Z at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) 2023-12-01T16:59:54.0525159Z at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:298) 2023-12-01T16:59:54.0525890Z at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) 2023-12-01T16:59:54.0526611Z at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) 2023-12-01T16:59:54.0527277Z at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960) 2023-12-01T16:59:54.0527929Z at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293) 2023-12-01T16:59:54.0528562Z at org.apache.maven.cli.MavenCli.main (MavenCli.java:196) 2023-12-01T16:59:54.0529234Z at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) 2023-12-01T16:59:54.0530125Z at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) 2023-12-01T16:59:54.0531196Z at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) 2023-12-01T16:59:54.0532030Z at java.lang.reflect.Method.invoke (Method.java:566) 2023-12-01T16:59:54.0532802Z at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) 2023-12-01T16:59:54.0533736Z at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) 2023-12-01T16:59:54.0534667Z at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) 2023-12-01T16:59:54.0535662Z at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) 2023-12-01T16:59:54.0536296Z [INFO] Begin database defrag 2023-12-01T17:00:01.6980202Z [INFO] End database defrag (7661 ms) 2023-12-01T17:00:01.7008453Z [WARNING] Unable to update 1 or more Cached Web DataSource, using local data instead. Results may not include recent vulnerabilities. 2023-12-01T17:00:01.7010049Z [ERROR] Unable to continue dependency-check analysis. 2023-12-01T17:00:02.0368360Z [INFO] ------------------------------------------------------------------------ 2023-12-01T17:00:02.0378862Z [INFO] BUILD FAILURE 2023-12-01T17:00:02.0381631Z [INFO] ------------------------------------------------------------------------ 2023-12-01T17:00:02.0382344Z [INFO] Total time: 06:37 min 2023-12-01T17:00:02.0382810Z [INFO] Finished at: 2023-12-01T17:00:02Z 2023-12-01T17:00:02.0383496Z [INFO] ------------------------------------------------------------------------ 2023-12-01T17:00:02.0385139Z [ERROR] Failed to execute goal org.owasp:dependency-check-maven:8.2.1:check (default) on project acet-api: Fatal exception(s) analyzing acet-api: One or more exceptions occurred during analysis: 2023-12-01T17:00:02.0386722Z [ERROR] UpdateException: Unable to find the CISA Known Exploited Vulnerabilities file to parse 2023-12-01T17:00:02.0389667Z [ERROR] caused by InvalidFormatException: Cannot deserialize value of type `java.util.Date` from String "2023-12-01T15:09:26..642Z": not a valid representation (error: Failed to parse Date value '2023-12-01T15:09:26..642Z': Cannot parse date "2023-12-01T15:09:26..642Z": while it seems to fit format 'yyyy-MM-dd'T'HH:mm:ss.SSSX', parsing fails (leniency? null)) 2023-12-01T17:00:02.0392812Z [ERROR] at [Source: (InputStreamReader); line: 4, column: 21] (through reference chain: org.owasp.dependencycheck.data.knownexploited.json.KnownExploitedVulnerabilitiesSchema["dateReleased"]) 2023-12-01T17:00:02.0394086Z [ERROR] NoDataException: No documents exist 我们尝试将插件版本升级到9.0.0,但总是出现同样的错误。 经过第一次日志分析,问题是由 cisa.gov json 文件引起的,因为属性 dateReleased 格式错误。 https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json 有谁知道如何绕过这个错误,或者我们应该等待 cisa.org 修改文件吗? 检查后问题,json文件已修复。 "title": "CISA Catalog of Known Exploited Vulnerabilities", "catalogVersion": "2023.12.01", "dateReleased": "2023-12-01T18:47:38.1879Z", 问题解决了, CISA.GOV 已修复该文件。 这是有回应。

回答 2 投票 0

如何在 Maven 中将文件部署到 Artifactory?

我当前的 pom 配置为将 jar 部署到我的神器中。 此外,还有一个运行该 jar 的 bash 脚本,我也将其保留在我的项目中。 我也想部署这个脚本(

回答 1 投票 0

在插件执行期间解决运行时的maven依赖关系

我有一个 Maven 插件可以检查一些依赖关系。这些依赖项一开始是未知的,所以我无法将它们添加到 pom 文件中。因此,我需要一种方法来解决运行时的依赖关系...

回答 1 投票 0

对于我发布到 Maven Central 的库,IntelliJ 显示的是 *.class 文件,而不是 *.kt

我将一个用 kotlin 编写的库发布到 Maven Central。 (使用sona类型) 我尝试在其他项目中使用它。我可以使用,但 IntelliJ IDEA 在我执行时只显示 *.class 文件(Ctrl+...

回答 1 投票 0

Wildfly 30 启动...但随后由于启动超时而阻塞

看来启动正确 17:44:17,093 INFO [org.jboss.as.mail.extension](MSC 服务线程 1-8)WFLYMAIL0001:绑定邮件会话 [java:jboss/mail/Default] 17:44:17,201 信息 [org.wildfly.exte...

回答 1 投票 0

if else 语句返回错误答案

导入java.util.Scanner; 公共类或运算符{ 公共静态无效主(字符串参数[]){ System.out.println("此代码用于检查您是否符合资格"); 扫描...

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.