Jasper server maven repository url?

2019-05-07 10:40发布

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>

2条回答
女痞
2楼-- · 2019-05-07 11:18

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.

查看更多
女痞
3楼-- · 2019-05-07 11:18

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

查看更多
登录 后发表回答