gpt4 book ai didi

clojure-maven-plugin - 如何修复警告 : clj-refactor and refactor-nrepl are out of sync?

转载 作者:行者123 更新时间:2023-12-02 04:32:13 27 4
gpt4 key购买 nike

我正在使用 clojure-maven-plugin。当我执行 cider-connect 时,我收到此消息“警告:clj-refactor 和 refactor-nrepl 不同步。它们的版本分别为 2.4.0-SNAPSHOT(包:20171117.317)和 n/a。”我可以对我的 pom.xml 做些什么来让这个警告消失吗?我尝试将 refactor-nrepl 2.4.0-SNAPSHOT 添加为依赖项。

最佳答案

我有一个较旧的项目,由于某些原因使用 maven 进行构建,并且此配置对我有用:

确保您拥有所有需要的依赖项。

<dependencies>

<dependency>
<groupId>nrepl</groupId>
<artifactId>nrepl</artifactId>
</dependency>

<dependency>
<groupId>cider</groupId>
<artifactId>cider-nrepl</artifactId>
</dependency>

<dependency>
<groupId>refactor-nrepl</groupId>
<artifactId>refactor-nrepl</artifactId>
</dependency>

</dependencies>

然后在插件配置中配置中间件。

<plugin>
<groupId>com.theoryinpractise</groupId>
<artifactId>clojure-maven-plugin</artifactId>
<version>${clojure-maven-plugin-version}</version>
<extensions>true</extensions>
<configuration>
...
<nreplMiddlewares>
<middleware>cider.nrepl/wrap-apropos</middleware>
<middleware>cider.nrepl/wrap-classpath</middleware>
<middleware>cider.nrepl/wrap-clojuredocs</middleware>
<middleware>cider.nrepl/wrap-complete</middleware>
<middleware>cider.nrepl/wrap-content-type</middleware>
<middleware>cider.nrepl/wrap-debug</middleware>
<middleware>cider.nrepl/wrap-enlighten</middleware>
<middleware>cider.nrepl/wrap-format</middleware>
<middleware>cider.nrepl/wrap-info</middleware>
<middleware>cider.nrepl/wrap-inspect</middleware>
<middleware>cider.nrepl/wrap-macroexpand</middleware>
<middleware>cider.nrepl/wrap-ns</middleware>
<middleware>cider.nrepl/wrap-out</middleware>
<middleware>cider.nrepl/wrap-slurp</middleware>
<middleware>cider.nrepl/wrap-profile</middleware>
<middleware>cider.nrepl/wrap-refresh</middleware>
<middleware>cider.nrepl/wrap-resource</middleware>
<middleware>cider.nrepl/wrap-spec</middleware>
<middleware>cider.nrepl/wrap-stacktrace</middleware>
<middleware>cider.nrepl/wrap-test</middleware>
<middleware>cider.nrepl/wrap-trace</middleware>
<middleware>cider.nrepl/wrap-tracker</middleware>
<middleware>cider.nrepl/wrap-undef</middleware>
<middleware>cider.nrepl/wrap-version</middleware>
<middleware>cider.nrepl/wrap-xref</middleware>
<middleware>refactor-nrepl.middleware/wrap-refactor</middleware>
</nreplMiddlewares>
</configuration>
...
</plugin>

关于clojure-maven-plugin - 如何修复警告 : clj-refactor and refactor-nrepl are out of sync?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47659416/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com