Java 为什么可以';我的maven找不到stripe库吗?

Java 为什么可以';我的maven找不到stripe库吗?,java,maven,intellij-idea,Java,Maven,Intellij Idea,使用intellij,我可以在我的外部库中看到该包,但当我使用maven构建时,我会遇到以下问题: 运行时: mvn clean package 我得到这个错误: Failure to find com.stripe:stripe-java:jar:${stripe-version} in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted un

使用intellij,我可以在我的外部库中看到该包,但当我使用maven构建时,我会遇到以下问题:

运行时:

mvn clean package
我得到这个错误:

Failure to find com.stripe:stripe-java:jar:${stripe-version} in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
其中版本为:

<stripe-version>1.1.16</stripe-version>

我可以在这里看到版本:

依赖项下载很好:

<dependency>
    <groupId>com.stripe</groupId>
    <artifactId>stripe-java</artifactId>
    <version>1.1.16</version>
</dependency>

com.stripe
条纹java
1.1.16
您似乎在定义/使用stripe version属性时遇到问题:

<properties>
    <stripe.version>1.1.16</stripe.version>
</properties>

<!--- ... -->
<version>${stripe.version}</version>

1.1.16
${stripe.version}

我有这样一个问题:
com.stripe stripe java${stripe version}
尝试
1.1.16
,如果它解决了您的问题,请按照我上面描述的方式尝试该属性。它起作用了,但不确定为什么,因为我以相同的方式定义了所有版本!当我执行${stripe.version}时,我现在得到了这样的信息:在central()中找不到工件com.stripe:stripe java:jar:${stripe.version}->是的,当我在同一pom中定义属性时,它工作正常,因此您的权利似乎没有正确地拾取父pom。在父pom中运行“mvn clean install”很有效,谢谢!
<properties>
    <stripe.version>1.1.16</stripe.version>
</properties>

<!--- ... -->
<version>${stripe.version}</version>