- 创建problem目录存储问题分析和解决方案 - 添加Aspose.CAD Python问题详细报告 - 提供Java版本测试方案和完整代码 - 创建Java版本安装运行指南 - 更新README文档包含Java版本推荐 - 添加颜色元素提取相关脚本 - 提供完整的Maven项目配置
108 lines
3.6 KiB
XML
108 lines
3.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
|
|
http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>com.example</groupId>
|
|
<artifactId>dwg-color-extractor</artifactId>
|
|
<version>1.0.0</version>
|
|
<packaging>jar</packaging>
|
|
|
|
<name>DWG Color Extractor</name>
|
|
<description>Extract specific color elements from DWG files using Aspose.CAD for Java</description>
|
|
|
|
<properties>
|
|
<maven.compiler.source>8</maven.compiler.source>
|
|
<maven.compiler.target>8</maven.compiler.target>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<!-- Aspose.CAD for Java -->
|
|
<dependency>
|
|
<groupId>com.aspose</groupId>
|
|
<artifactId>aspose-cad</artifactId>
|
|
<version>23.1.0</version>
|
|
</dependency>
|
|
|
|
<!-- JSON处理 -->
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-databind</artifactId>
|
|
<version>2.15.2</version>
|
|
</dependency>
|
|
|
|
<!-- CSV处理 -->
|
|
<dependency>
|
|
<groupId>com.opencsv</groupId>
|
|
<artifactId>opencsv</artifactId>
|
|
<version>5.8</version>
|
|
</dependency>
|
|
|
|
<!-- 日志 -->
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-simple</artifactId>
|
|
<version>2.0.7</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<!-- Maven编译插件 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.11.0</version>
|
|
<configuration>
|
|
<source>8</source>
|
|
<target>8</target>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- Maven执行插件 -->
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
<version>3.1.0</version>
|
|
<configuration>
|
|
<mainClass>DwgColorExtractor</mainClass>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- Maven打包插件 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<version>3.4.1</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>shade</goal>
|
|
</goals>
|
|
<configuration>
|
|
<transformers>
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
|
<mainClass>DwgColorExtractor</mainClass>
|
|
</transformer>
|
|
</transformers>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<repositories>
|
|
<!-- Aspose Maven仓库 -->
|
|
<repository>
|
|
<id>aspose-maven-repository</id>
|
|
<name>Aspose Maven Repository</name>
|
|
<url>https://repository.aspose.com/repo/</url>
|
|
</repository>
|
|
</repositories>
|
|
</project>
|