Java pd4ml的Maven依赖关系

Java pd4ml的Maven依赖关系,java,web-services,rest,html-to-pdf,pd4ml,Java,Web Services,Rest,Html To Pdf,Pd4ml,您好,我在google上搜索了一下,没有找到PD4ML的依赖项。我已经手动添加了jar,但每次我执行mvn clean安装时都会出现编译时错误 错误:包org.zefer.pd4ml不存在 org.zefer.pd4ml不存在 您是否向pom.xml文件添加了依赖项? 比如: <dependency> <groupId>org.zefer.pd4ml</groupId> <artifactId>pd4ml</artifactI

您好,我在google上搜索了一下,没有找到PD4ML的依赖项。我已经手动添加了jar,但每次我执行mvn clean安装时都会出现编译时错误

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

org.zefer.pd4ml不存在


您是否向pom.xml文件添加了依赖项? 比如:

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

org.zefer.pd4ml
pd4ml
3.2.3fx5

在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>

my-repo2
您的定制回购
http://maven.scandilabs.com/repository
然后在依赖项中添加依赖项,如下所示:

<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>

groupId>org.zefer.pd4ml
pd4ml
370fx2

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

第一步:下载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
mvn安装:安装文件-Dfile=D:\\pd4ml.jar-DgroupId=com.pd4ml.utilities-DartifactId=pd4ml-Dversion=1.0-dpackage=jar
步骤3:根据您提供的groupId和artifactsId添加对pom.xml的依赖关系

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

com.pd4ml.utilities
pd4ml
1

请记住,运行pd4ml也需要使用
ss_css2 jar
,请按照上述步骤为该jar创建mvn依赖关系添加存储库
https://pd4ml.tech/maven2/
和对您的
pom.xml
的依赖项
com.pd4ml


德勒基唐纳德
42805145
1.0-快照
pd4ml
https://pd4ml.tech/maven2/
真的
com.pd4ml
pd4ml
4.0.2

将其包含在jsp页面中的标记库uri是什么真的很有用。我可以用你的答案解决同样的问题。我将ss_css2 jar保存在保存pd4ml.jar的文件夹中。感谢您的支持:自PD4MLV3.9.8以来,不需要开源ss_css2 jar CSS解析器库。实际的PD4ML v4 Maven说明可在此处找到: