【问题标题】:Adding gmaps4jsf into spring jsf application using maven dependancies使用 maven 依赖项将 gmaps4jsf 添加到 spring jsf 应用程序中
【发布时间】:2018-04-11 07:12:18
【问题描述】:

我正在开发一个基于 JSF Spring Web 的应用程序我想在我的应用程序中使用谷歌地图我想使用 maven 添加它任何人都可以帮我添加这个 jar,我尝试添加它并且我已经添加了依赖项和它的存储库我收到了这个错误:Missing artifact com.googlecode.gmaps4jsf:gmaps4jsf-core:jar:3.0.0

在我的 pom.xml 中:

<repositories>
    <repository>
        <id>prime-repo</id>
        <name>PrimeFaces Maven Repository</name>
        <url>http://repository.primefaces.org</url>
        <layout>default</layout>
    </repository>

        <repository>
        <id>googlecode.com</id>
        <name>gmap Maven Repository</name>
        <url>http://gmaps4jsf.googlecode.com/svn/trunk/gmaps4jsf-repo</url>
        <layout>default</layout>
    </repository>



</repositories>



  <dependencies>

<!-- map dependency  -->
  <dependency>
    <groupId>com.googlecode.gmaps4jsf</groupId>
    <artifactId>gmaps4jsf-core</artifactId>
    <version>3.0.0</version>
</dependency> 
[..................]

</dependencies>

【问题讨论】:

    标签: spring maven google-maps jsf


    【解决方案1】:

    我也有同样的问题。目前解决方案是下载 jar 并安装在本地 maven 或私有存储库中,例如 nexus 或 artifactory。

    【讨论】:

    • Googlecode 已经死了好几年了,难怪它不再工作了 ;-)
    【解决方案2】:

    Google 代码已经死了好几年了(它是archived)。通过将“gmaps4jsf maven”放入搜索引擎,我在 github 中找到了一个 repo

    https://github.com/hazems/gmaps4jsf/tree/master/gmaps4jsf-repo

    【讨论】:

      猜你喜欢
      • 2015-08-11
      • 2020-12-12
      • 1970-01-01
      • 2017-01-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-12-30
      相关资源
      最近更新 更多