pd4ml的Maven依赖

时间:2017-03-15 09:00:37

标签: java web-services rest html-to-pdf pd4ml

我在谷歌搜索并没有找到PD4ML的依赖项。我已经手动添加了jar,但每次我 mvn clean install 它给了我编译时间错误

  

错误:包org.zefer.pd4ml不存在

     

org.zefer.pd4ml不存在

4 个答案:

答案 0 :(得分:1)

我花了几个小时就得到了答案

第一步:下载pd4ml.jar

第二步:在命令提示符下运行以下命令

mvn install:install-file -Dfile=D:\<path to your downloaded jar>\pd4ml.jar -DgroupId=com.pd4ml.utilities -DartifactId=pd4ml -Dversion=1.0 -Dpackaging=jar

第3步:根据你提供的groupId和artifactsId添加对pom.xml的依赖

    <dependency>
        <groupId>com.pd4ml.utilities</groupId>
        <artifactId>pd4ml</artifactId>
        <version>1.0</version>
    </dependency>

记住ss_css2 jar也需要运行pd4ml,按照上面的步骤为这个jar创建一个mvn依赖

答案 1 :(得分:0)

您是否在pom.xml文件中添加了依赖项? 类似的东西:

<dependency>
    <groupId>org.zefer.pd4ml</groupId>
    <artifactId>pd4ml</artifactId>
    <version>3.2.3fx5</version>
</dependency>

答案 2 :(得分:0)

在pom.xml中首先添加存储库以解析pd4ml,如下所示:

<repositories>
   <repository>
     <id>my-repo2</id>
     <name>your custom repo</name>
     <url>http://maven.scandilabs.com/repository</url>
   </repository>
 </repositories>

然后在依赖项中添加依赖项,如下所示:

<dependency>
    groupId>org.zefer.pd4ml</groupId>
    <artifactId>pd4ml</artifactId>
    <version>370fx2</version>
  </dependency>

答案 3 :(得分:0)

将存储库https://pd4ml.tech/maven2/和依赖项com.pd4ml添加到您的pom.xml

<project ...>
  <groupId>de.luckydonald.stackoverflow</groupId>
  <artifactId>42805145</artifactId>
  <version>1.0-SNAPSHOT</version>
  <repositories>
    <repository>
      <id>pd4ml</id>
      <url>https://pd4ml.tech/maven2/</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
  </repositories>
  <dependencies>
    <!-- html to rtf -->
    <dependency>
      <groupId>com.pd4ml</groupId>
      <artifactId>pd4ml</artifactId>
      <version>4.0.2</version>
    </dependency>
  </dependencies>
</project>