
[英]Unable to get the auto-suggestion for annotations for springframework inspite of using the dependency
我已经从 spring 初始化程序创建了一个 spring 项目并将其导入 IntelliJ,在创建时包含了 Web 依赖项,但我没有得到注释的自动建议,尽管 pom.xml 具有它的依赖项。 我尝试重新启动并加载 maven,但仍然无法正常工作。 这里需要一些帮助。 ...
[英]Unable to get the auto-suggestion for annotations for springframework inspite of using the dependency
我已经从 spring 初始化程序创建了一个 spring 项目并将其导入 IntelliJ,在创建时包含了 Web 依赖项,但我没有得到注释的自动建议,尽管 pom.xml 具有它的依赖项。 我尝试重新启动并加载 maven,但仍然无法正常工作。 这里需要一些帮助。 ...
[英]Is Masterthought report threadsafe?
我试图从 Jenkins 并行化 Maven 构建,但这给出了以下错误 masterthought 黄瓜报告线程安全吗? 有什么办法可以并行化构建吗? ...
[英]Maven - dependency list and download artifacts
是否可以在 mvn 依赖项:树等 maven 项目中找到所有依赖项,将结果保存到文件,然后使用 mvn 命令从命令行中的列表文件下载所有依赖项? 谢谢 ...
[英]Error java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
我正在使用 sendGrid API 在我们的 Java 服务中使用 sendGrid maven 依赖项发送电子邮件。 我们为我们的服务创建了一个胖罐子来执行它。 但是添加了这个依赖之后,fat jar 没有执行,给出 SecurityException: Invalid signature ...
[英]Pact verify not publishing result to pact broker
我已成功将 pact JS 中的合同发布到 Pact 代理,现在正尝试在 Java spring boot 中验证合同,合同验证通过没有问题,但验证的结果没有发布到 Pact 代理,这留下了Pactflow 上的联系方式未经验证,这是我正在使用的插件 我运行mvn pact:verify并得到以 ...
[英]Maven copying pom to an OneDrive location during build
我的 java 构建失败,因为出于某种原因 Maven 正在尝试将 POM 文件复制到 One Drive 位置。 早些时候情况并非如此。 我刚刚将我的项目备份到 OneDrive。 这导致构建失败。 settings.xml中没有定义路径知道我需要在哪里进行更改以指向本地目录而不是 OneDri ...
[英]Plugin and dependency not found
我用 Jhipster 创建了一个项目,当我用 IntelliJ 打开项目时,我在 pom.xml 中遇到了这些问题: pom.xml 问题我尝试了 maven clean/package/install,前两个运行成功但是当我运行 maven 安装时测试失败: 测试失败我还尝试使用插件注册表(在 ...
[英]No plugin found for prefix 'azure-function' in the current project and in the plugin groups
我一直在尝试在我的本地机器上运行 spring-cloud-azure-function。 但看起来我很难弄清楚 pom 插件。 我已经从 Microsoft Doc 中尝试过如何使用 spring 云函数创建 azure function。 这是参考: https://docs.microsoft ...
[英]Maven plugin config goal inside execution tag
我注意到 maven 插件有目标,它们被绑定到不同的阶段。 但似乎有些目标只有在我们在 side execution标签中明确配置它们之后才会执行。 例如,maven-jar-plugin 有两个目标jar和test-jar 。 如果您没有在execution标记内显式配置test-jar目标,那么 ...
[英]Read properties from .properties file present on internet in project's .xml file [NOT in POM file] to update version of module
我在互联网/在线上有一个 .properties 文件(你可以说它是一个外部文件)。 我想从中读取属性(版本)以更新我的 .XML 文件中的模块版本。 我搜索了PropertyPlaceholderConfigurer ,但它已被弃用。 还有其他方法吗? 属性文件: XML 文件: 预期 ...
[英]How can I reduced the maven Jar file size Currently 255 MB
如何减小 Maven 可执行 Jar 文件的大小。 目前它的 255 MB。 它不允许在 Cloudformation 中部署。 我正在通过 cloudformation --> Lambda 和 API Getway 进行部署。 如果我可以将文件从 255 MB 减少,那么我的问题将得到 ...
[英]Maven: how to build 2 jar with different log4j config from 1 project
我有一个有 2 个主要类的 Maven 项目。 我想生成 2 个具有不同log4j2.properties的 jar,我尝试了具有 2 个执行 ID 的 copy-rename-maven-plugin 但它不起作用。 ...
[英]maven-compiler-plugin source not work as expect
我的本地有 java11,我正在使用 maven-compiler-plugin 将它的源/目标设置为 1.8,在我的代码中我正在使用Objects.requireNonNullElse(null, new Object()); 这在 java 中不受支持 8. 当我运行 mvn package 时 ...
[英]Maven Dependency plugin throwing Sonatype Error
我们实施了 Dependency-check-maven,到目前为止一切正常。 但是现在突然出现这个错误, [警告] 分析“oldui/includes/ckeditor/lang/no.js”(Sonatype OSS 索引分析器)时发生错误。 不确定这是从哪里来的? ...
[英]maven dependency plugin throwing error even if I add flag ignoreunuseddeclareddependecy
我正在尝试构建我的代码,但我收到了这个错误: 这是我的 pom 中依赖插件的配置: 我尝试将测试客户端添加到标志ignoreUnsedDeclaredDependecy(请参阅注释部分)但仍然出现错误。 我试图将 failOnWarning 标志设置为 false,但我也收到了同样的警告。 当我添 ...
[英]What is the difference between maven surefire plugin and maven surefire dependency
Maven Surefire 插件 [...] org.apache.maven.plugins maven-surefire-plugin 3.0.0-M6 [...] Maven Surefire 依赖 surefire插件和依赖有什么区别? ...
[英]GWT maven plugin - Unexpected internal compiler error
我正在尝试升级旧的 GWT 项目以使用 Java 17(最初是 java 8,Wildfly 18)运行它。 该应用程序打包为 war 文件,可以部署到 Wildfly 24。代码未进行任何更改。 在执行 maven package 目标时,如下配置的 gwt maven 插件不断产生 Illega ...
[英]maven how to automaticaly apply plugin from another artifact to project
我必须设置许多具有几乎相同结构、相同依赖项和相同插件的 Maven 项目。 所以我决定创建一个包含我所有常见依赖项的 bom。 所以我的所有其他项目都包括这个 bom(通过继承或导入)。 我想用 Maven 插件做同样的事情。 因此,我在我的 bom 项目中的<plugins> bl ...
[英]Maven Tests not Running in sequential Order
我正在为我的自动化项目使用 TestNG 框架。 从命令行运行时,我给出了以下命令。 mvn clean test -Dtest=Login,OpenImage,Logout 通过运行上面的命令,它的执行顺序是 Login->Logout->OpenImage(可能按字母顺序)。 ...
[英]Replace dependency org.apache.httpcomponents:httpclient in maven-pmd-plugin and maven-checkstyle-plugin
我确实使用maven-pmd-plugin:3.15.0和maven-checkstyle-plugin:3.1.2 。 两者都在旧版本的org.apache.httpcomponents:httpclient:4.0.2上传递导入。 如何配置每个插件以使用最新版本的 httpclient ( ...