要使用kebeja解析dxf文件,但是找不到依赖的包,浪费了一些时间,分享给大家
方法1:直接在仓库下载,地址:
添加上依赖,刷新maven会报错,把下载的文件放到仓库文件替换掉,再刷新maven即可
<dependency>
<groupId>org.kabeja</groupId>
<artifactId>kabeja</artifactId>
<version>0.4</version>
</dependency>
<dependency>
<groupId>org.kabeja</groupId>
<artifactId>kabeja-svg</artifactId>
<version>0.4</version>
</dependency>
<dependency>
<groupId>org.kabeja</groupId>
<artifactId>kabeja-xslt</artifactId>
<version>0.4</version>
</dependency>
方法2:在maven配置仓库地址,刷新maven即可
<repositories>
<repository>
<id>logicaldoc.sourceforge.net</id>
<name>logicaldoc.sourceforge.net</name>
<url>http://logicaldoc.sourceforge.net/maven/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
添加上相关依赖:
<dependency>
<groupId>org.kabeja</groupId>
<artifactId>kabeja</artifactId>
<version>0.4</version>
</dependency>
<dependency>
<groupId>org.kabeja</groupId>
<artifactId>kabeja-svg</artifactId>
<version>0.4</version>
</dependency>
<dependency>
<groupId>org.kabeja</groupId>
<artifactId>kabeja-xslt</artifactId>
<version>0.4</version>
</dependency>