嗨,我在Google上进行了搜索,但没有找到PD4ML的依赖性。我已经手动添加了JAR,但是每次我都进行 mvn Clean slockant 它给我编译时间错误
错误:软件包org.zefer.pd4ml不存在
org.zefer.pd4ml不存在
我在几个小时后得到答案
第一步:下载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和trafactsid添加对pom.xml的依赖性
<dependency>
<groupId>com.pd4ml.utilities</groupId>
<artifactId>pd4ml</artifactId>
<version>1.0</version>
</dependency>
请记住,ss_css2 jar
也需要运行PD4ML,请按照上述步骤为此jar
您是否在pom.xml文件中添加了依赖关系?类似:
<dependency>
<groupId>org.zefer.pd4ml</groupId>
<artifactId>pd4ml</artifactId>
<version>3.2.3fx5</version>
</dependency>
在您的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>
将存储库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>