修改pom.xml文件,新增各子系统接口文件
Change-Id: Iec5c52a44f09accbda6c0e227b55f7572a06204a
diff --git a/pom.xml b/pom.xml
index b97228e..5e052ae 100644
--- a/pom.xml
+++ b/pom.xml
@@ -11,13 +11,36 @@
<!-- 指定 Java 版本 -->
<properties>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
+ <!-- 使用 Java 9,以支持接口中的 private 方法 -->
+ <maven.compiler.source>9</maven.compiler.source>
+ <maven.compiler.target>9</maven.compiler.target>
+ <!-- 推荐使用 release 模式,自动设置 source/target -->
+ <maven.compiler.release>9</maven.compiler.release>
</properties>
- <!-- 可选:添加执行插件,方便 mvn exec:java 直接运行 -->
+ <!-- 添加依赖 -->
+ <dependencies>
+ <!-- Apache Commons Lang3,用于 Pair 等工具类 -->
+ <dependency>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-lang3</artifactId>
+ <version>3.12.0</version>
+ </dependency>
+ </dependencies>
+
+ <!-- 构建配置 -->
<build>
<plugins>
+ <!-- 编译插件,设定 Java 9 编译 -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>3.8.1</version>
+ <configuration>
+ <release>9</release>
+ </configuration>
+ </plugin>
+ <!-- 执行插件,方便 mvn exec:java 直接运行 -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
@@ -29,4 +52,4 @@
</plugins>
</build>
-</project>
+</project>
\ No newline at end of file