Jasper server maven repository url?

不羁的心 提交于 2019-12-07 11:00:50

问题


I am trying to get below dependency from jasper server.

<dependency>
      <groupId>com.jaspersoft.jasperserver</groupId>
      <artifactId>jasperserver-api</artifactId>
      <version>6.0.1</version>
    </dependency>

But i am getting below error

 Missing artifact com.jaspersoft.jasperserver:jasperserver-api:jar:6.0.1

Here is my POM

<project ...>
  <modelVersion>4.0.0</modelVersion>
  ....
  <name>jasperProject</name>
  <url>http://www.jaspersoft.com</url>

  <dependencies>

   <dependency>
      <groupId>com.jaspersoft.jasperserver</groupId>
      <artifactId>jasperserver-api</artifactId>
      <version>6.0.1</version>
    </dependency>

  </dependencies>
</project>

回答1:


With some simple googling you can get to this other answer on SO, where you can find a reference to this, which in term states you can add it like this:

<repository>
    <id>JasperForge Maven Repository</id>
    <!-- note: you need a <server> definition at bottom of file this file -->
    <url>http://anonsvn:anonsvn@jasperforge.org/svn/repos/maven2</url>
    <snapshots>
        <enabled>true</enabled>
    </snapshots>
    <releases>
        <enabled>true</enabled>
    </releases>
</repository>

It also seems there's http://www.jasperforge.org/maven2/, which appears to be a non-browseable repository.




回答2:


Another option is to put all required jars to a local maven repository. I know this is not the best solution, but it works, when you have no idea regarding correct Jasper public repository



来源:https://stackoverflow.com/questions/28195128/jasper-server-maven-repository-url

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!