Link
Skip to main content

添加为 Maven 依赖项

要在 Maven 项目中使用 JPedal,您需要将 JAR 文件添加为项目依赖项。
这可以通过两种方式完成。

手动

  1. 点击此处下载JPedal
  2. 将 JAR 文件安装到本地 Maven 仓库
    mvn install:install-file -Dfile=<path-to-JPedal-jar> -DgroupId=com.idrsolutions -Dpackaging=jar -DartifactId=jpedal -Dversion=1.0  
    
  3. 完成后,可以通过将以下内容添加到您的 POM 文件的依赖项中,将其添加到您的项目中。
    <dependencies>
        <dependency>
            <groupId>com.idrsolutions</groupId>
            <artifactId>jpedal</artifactId>
            <version>1.0</version>
        </dependency>
    </dependencies>
    

    上述示例使用的是步骤 2 中的值,如果您使用了自定义值,则需要更新这些内容。

使用我们的远程仓库

  1. 为了使用我们的远程仓库,您需要将登录信息添加到您的用户 settings.xml 文件中,该文件可以在您的 .m2 目录下找到(在 Windows 中通常位于 %userprofile%\.m2\,在 Linux/Mac 中位于 ~/.m2/)。 如果 settings.xml 文件尚不存在,您可以自行创建该文件(可以参考这里 获取文件的参考)。

    在 settings.xml 文件中,添加以下内容到 servers 部分:

    <servers>
        <server>
            <id>IDRsolutions</id>
            <username>{Customer Username or Trial Token}</username>
            <password>{Customer Password or Trial Token}</password>
        </server>
    </servers>
    

    请注意,如果您尝试访问试用版 JAR 文件,则必须将用户名和密码都设置为您的试用令牌。

  2. 然后,在您项目的 pom.xml 文件中,您可以通过以下方式添加我们的远程仓库:
    <repositories>
       <repository>
           <id>IDRsolutions</id>
           <name>IDR Solutions</name>
           <url>https://maven.idrsolutions.com</url>
       </repository>
    </repositories>
    
  3. 最后,在您项目的 pom.xml 文件中,您需要将 JPedal 添加为依赖项:
    <dependencies>
        <dependency>
            <groupId>com.idrsolutions</groupId>
            <artifactId>{artifactId}</artifactId>
            <version>{YYYY.MM}</version>
        </dependency>
    </dependencies>
    

    Customer Artifact IDs:

    • jpedal 其中版本格式为 YYYY.MM

    Trial Artifact IDs:

    • jpedal-trial 其中版本格式为 YYYY.MM

    每日构建版本:

    客户可以使用以下 artifact ID 访问每日构建版本。请注意,我们只存储最新的每日构建版本。

    • jpedal-daily 其中版本格式为 YYYY.MM.DD

为什么选择 JPedal?

  • 定期更新的商业库,提供全面支持且无第三方依赖项。
  • 处理 PDF 文件的速度比其他 Java PDF 库快达 3 倍。
  • 为原始设备制造商(OEM)用户提供简单的许可选项和源代码访问权限。

Learn more about JPedal

免费试用


Customer Downloads

Select Download