Clojure版本 1.11.1.1267
操作系统:macOS 13.x
命令clj -Spom
未按预期运行,生成的pom.xml
未显示任何依赖项。
标志-X:deps list
和-X:deps tree
按预期运行,并正确解决了deps.edn
的依赖文件,但标志-Spom
无法生成有效的pom.xml(不包含任何依赖项)。
在以下仓库测试:https://github.com/clojure/tools.deps
输出clj -Spom && cat pom.xml
(1.11.1.1267)
<?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>
<packaging>jar</packaging>
<groupId>tools.deps</groupId>
<artifactId>tools.deps</artifactId>
<version>0.1.0</version>
<name>tools.deps</name>
<dependencies/>
<repositories/>
</project>
输出clj -Spom && cat pom.xml
(1.11.1.1165)
Skipping paths: src/main/resources
<?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>
<packaging>jar</packaging>
<groupId>tools.deps</groupId>
<artifactId>tools.deps</artifactId>
<version>0.1.0</version>
<name>tools.deps</name>
<dependencies>
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<version>1</version>
</dependency>
<dependency>
<groupId>org.clojure</groupId>
<artifactId>clojure</artifactId>
<version>1.10.3</version>
</dependency>
<dependency>
<groupId>com.cognitect.aws</groupId>
<artifactId>api</artifactId>
<version>0.8.612</version>
</dependency>
<dependency>
<groupId>com.cognitect.aws</groupId>
<artifactId>endpoints</artifactId>
<version>1.1.12.321</version>
</dependency>
<dependency>
<groupId>org.clojure</groupId>
<artifactId>tools.cli</artifactId>
<version>1.0.214</version>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-transport-http</artifactId>
<version>1.8.2</version>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-transport-file</artifactId>
<version>1.8.2</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.11.0</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>3.8.6</version>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-api</artifactId>
<version>1.8.2</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-resolver-provider</artifactId>
<version>3.8.6</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>31.1-android</version>
</dependency>
<dependency>
<groupId>org.clojure</groupId>
<artifactId>data.xml</artifactId>
<version>0.2.0-alpha8</version>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-spi</artifactId>
<version>1.8.2</version>
</dependency>
<dependency>
<groupId>org.clojure</groupId>
<artifactId>tools.gitlibs</artifactId>
<version>2.5.190</version>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-connector-basic</artifactId>
<version>1.8.2</version>
</dependency>
<dependency>
<groupId>com.cognitect.aws</groupId>
<artifactId>s3</artifactId>
<version>822.2.1145.0</version>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-impl</artifactId>
<version>1.8.2</version>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-util</artifactId>
<version>1.8.2</version>
</dependency>
</dependencies>
<build>
<sourceDirectory>src/main/clojure</sourceDirectory>
</build>
<repositories>
<repository>
<id>clojars</id>
<url>https://repo.clojars.org/</url>
</repository>
</repositories>
</project>
因此1.11.1.1165的输出是预期的输出,但1.11.1.1267的行为不同。命令clj -X:deps pom
不起作用。
这是否是一个bug,还是在1.11.1.1267中的合法行为?我该如何从我的deps.edn
生成包含所有依赖项的有效pom.xml
?