1

我已经在我的 pom.xml 中添加了以下几行。我仍然无法在我的本地 maven 存储库中找到 gson-2.2.4.jar。

 <dependency>
        <groupId>com.google.code.gson</groupId>
        <artifactId>gson</artifactId>
        <version>2.2.4</version>
        <scope>compile</scope>
  </dependency>

这可能是什么原因。我使用的 Maven 版本是

Apache Maven 3.0.4
Maven home: /usr/share/maven
Java version: 1.7.0_25, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-oracle/jre
Default locale: en_NZ, platform encoding: UTF-8
OS name: "linux", version: "3.5.0-37-generic", arch: "amd64", family: "unix"
4

0 回答 0