小编Sur*_*esh的帖子

Maven 更新特定依赖的版本

我正在尝试使用以下命令更新 Spring Boot 项目中特定依赖项的版本。但是依赖版本没有得到更新。这是我正在使用的命令:

mvn versions:use-latest-snapshots -Dincludes=com.example:drools-sample-proj
Run Code Online (Sandbox Code Playgroud)

Spring Boot 项目的依赖:

mvn versions:use-latest-snapshots -Dincludes=com.example:drools-sample-proj
Run Code Online (Sandbox Code Playgroud)

我的本地 Maven 存储库.m2文件夹包含 2 个版本drools-sample-proj

  • 0.0.2-快照
  • 0.0.3-快照

我的 Spring Boot 项目pom.xml没有0.0.3-SNAPSHOT使用此构建命令更新该依赖项:

mvn versions:use-latest-snapshots -Dincludes=com.example:drools-sample-proj
Run Code Online (Sandbox Code Playgroud)

构建控制台日志:

<dependency>
    <groupId>com.example</groupId>
    <artifactId>drools-sample-proj</artifactId>
    <version>0.0.1-SNAPSHOT</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)

Spring Boot 版本:1.5.9

Spring Boot 项目的pom.xml

mvn versions:use-latest-snapshots -Dincludes=com.example:drools-sample-proj
Run Code Online (Sandbox Code Playgroud)

我在 Spring STS IDE 中使用嵌入式 Maven。我在这里遗漏了什么还是我对更新的理解pom.xml不正确?任何见解都会有所帮助。

使用 mvn use-latest-versions 命令后的日志。

使用此命令时出现异常: mvn versions:use-latest-versions -Dincludes=com.example.brms:drools-sample-proj -X

[DEBUG]   (s) project = MavenProject: com.example.brms:springboot-ruleservice-api:1.0 @ C:\Drools Workspace\sprinboot-ruleservice-api\pom.xml
[DEBUG]   (f) …
Run Code Online (Sandbox Code Playgroud)

maven-3 spring-boot maven-versions-plugin

6
推荐指数
1
解决办法
5772
查看次数

AWS - 无法应用包含空格的值的标签

我正在尝试为使用以下 aws cli 命令创建的 ebs 卷手动应用标签。手动应用标签的原因是 Pivotal cloud Foundry 的安装错误。

我的标签键/值对包含空格。有没有办法添加空格并仍然使 cli 命令工作。这是我的 cli 命令:

不起作用: aws ec2 create-tags --resources ami-4778889 vol-1445333--tags Key=Name,Value=PCF Key=Product Family,Value=Enterprise Services

使用下划线 aws ec2 create-tags --resources ami-4778889 vol-1445333--tags Key=Name,Value=PCF Key=Product_Family,Value=Enterprise_Services

关于如何解决这个问题的任何想法?感谢你的帮助!

AWS CLI:aws-cli/1.16.24 Python/3.6.0 Windows/10 botocore/1.12.14

amazon-ec2 aws-cli

2
推荐指数
1
解决办法
2146
查看次数