dependency-management 相关问题

管理软件项目使用的依赖项,例如第三方库。

如何安装没有 GPU 依赖的 pytorch?

我有一个项目依赖于torch==2.0.1,但它将在CPU而不是GPU上运行。 torch 有一些大的 cuda/cublas/cudnn 依赖项,我相信只有在 GPU 上运行时才需要这些依赖项。这些包,

回答 1 投票 0

apache flink 中的依赖管理和执行环境

我们正在评估 apache flink 用于部署流式机器学习应用程序。 apache flink 尤其是执行环境中如何处理依赖管理? 想象一下具有 diff 的 python 任务...

回答 1 投票 0

如何反转类工厂的依赖关系移至库

当所有涉及的类都在同一个项目中时(defineSubClass是BaseClass的成员),下面的代码工作得很好: protected static BaseClass certainSubClass(String p1, int p2, B...

回答 2 投票 0

缓解运行时库中的漏洞

我们每晚在 CI 服务器上运行 dotnet list .sln package --vulnerable --include-transitive --source https://api.nuget.org/v3/index.json 来检查我们是否有依赖项任意

回答 1 投票 0

库目标的 add_dependency 和 target_link_libraries 有什么区别?

在CMake中,有什么区别: 添加依赖项(tgt1 tgt2) 和 target_link_libraries(tgt1 tgt2) 当 tgt2 是库目标时? 注意:我的意思不是实现上的差异,我的意思是

回答 2 投票 0

Maven 多模块项目的问题:未找到依赖项

我正在开发一个 Maven 多模块项目,并且在两个模块中使用通用包时遇到问题。这是项目结构: 目标: 我想在两个图像中使用通用包 -...

回答 1 投票 0

在 Windows 10 上安装 Composer 后如何开始在项目中使用 Composer?

我下载了 Composer-Setup.exe 并运行,只需点击几下鼠标即可使用安装程序安装 Composer。 通过输入 cmd 打开终端。在命令提示符下输入 Composer 并看到所有...

回答 3 投票 0

是否有 .NET 替代 Java 工件存储库(例如 Nexus 或 Artifactory)?您在哪里存储版本控制的 DLL?

在 Team System 上自动构建所需的二进制文件存储在哪里? 您是否将它们与代码一起存储在 SCM 或其他地方? SCM 中存在大量二进制文件是否会导致任何问题

回答 5 投票 0

Maven 传递依赖项显示旧版本,即使父包在 dependencyManagement 中更新

我有以下POM(不是完整文件): UTF-8 11 我有以下 POM(不是完整文件): <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>11</maven.compiler.source> <maven.compiler.target>11</maven.compiler.target> <spring.boot.version>2.4.0</spring.boot.version> <spring.boot.starter.web.version>2.5.15</spring.boot.starter.web.version> </properties> <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <version>${spring.boot.starter.web.version}</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-dependencies</artifactId> <version>${spring.boot.version}</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <version>${spring.boot.starter.web.version}</version> </dependency> </dependencies> <build> <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> <plugins> <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle --> <plugin> <artifactId>maven-clean-plugin</artifactId> <version>3.1.0</version> </plugin> <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging --> <plugin> <artifactId>maven-resources-plugin</artifactId> <version>3.0.2</version> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> </plugin> <plugin> <artifactId>maven-surefire-plugin</artifactId> <version>2.22.1</version> </plugin> <plugin> <artifactId>maven-jar-plugin</artifactId> <version>3.0.2</version> </plugin> <plugin> <artifactId>maven-install-plugin</artifactId> <version>2.5.2</version> </plugin> <plugin> <artifactId>maven-deploy-plugin</artifactId> <version>2.8.2</version> </plugin> <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle --> <plugin> <artifactId>maven-site-plugin</artifactId> <version>3.7.1</version> </plugin> <plugin> <artifactId>maven-project-info-reports-plugin</artifactId> <version>3.0.0</version> </plugin> </plugins> </pluginManagement> </build> 当我跑步时: mvn dependency:tree -Dincludes=org.springframework:spring-webmvc -Dverbose 我得到以下输出: [INFO] Scanning for projects... [INFO] [INFO] --------------------------< com.example:demo >-------------------------- [INFO] Building demo 1.0-SNAPSHOT [INFO] from pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- dependency:3.6.1:tree (default-cli) @ demo --- [INFO] com.example:demo:jar:1.0-SNAPSHOT [INFO] \- org.springframework.boot:spring-boot-starter-web:jar:2.5.15:compile [INFO] \- org.springframework:spring-webmvc:jar:5.3.1:compile (version managed from 5.3.27) [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ 这里的问题是,即使我在spring-boot-starter-web中覆盖了dependencyManagement并在spring-boot-dependencies之前声明了它,正在使用的spring-webmvc的版本仍然是5.3.1而不是5.3.27或者我是吗?误解了(version managed from 5.3.27)的含义。 2.5.15的版本spring-boot-starter-web使用5.3.27的版本spring-webmvc。由于包扫描器检测到漏洞问题,我需要使用此版本。 我会删除 spring-boot-starter-web 并在那里声明 spring-web 。你没看错,它必须在 spring-boot-dependency BOM 导入之前。 我在陷入 SB 2 的项目中所做的另一件事是为 Spring 和 Spring Security 添加 BOM 导入,因为 spring-boot-dependency BOM 不再附带更新,因此我仍然可以更新漏洞修复. <!-- need to override spring and spring-security versions as they are vulnerable and no updates are coming from spring-boot-dependencies anymore --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-framework-bom</artifactId> <version>${spring.version}</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-bom</artifactId> <version>${spring-security.version}</version> <type>pom</type> <scope>import</scope> </dependency>

回答 1 投票 0

Google Admob 实施中的依赖项、重复类、版本号和打包清单的冲突问题

我需要知道 gradle 文件的神奇配置才能真正工作并再次运行我的应用程序。 我知道发生这种情况是因为我添加了 AdMob 广告! 我得到了很多不同类型的...

回答 1 投票 0

Flutter pubspec.yaml 依赖选择算法

在我的flutter项目中,我在pubspec.yaml文件中有injectable_generator: ^2.4.1,而pub dev上的最新版本目前是injectable_generator: ^2.6.1,问题是,通过什么

回答 1 投票 0

如何解决 useSelector 抛出的未知错误:未处理的承诺拒绝:TypeError:useSyncExternalStore 不是函数?

完整的错误是: 未处理的承诺拒绝:类型错误:useSyncExternalStore 不是函数。 (在“useSyncExternalStore(订阅,getSelection,getServerSelection)”中,“useSyncExternalStore”是

回答 1 投票 0

如何生成 docker 文件内的 python 环境的包依赖关系图

我有一个 docker 文件,其中包含 /app/venv/bin/python 中的虚拟 python 环境。 我知道如何使用生成包列表 docker run --entrypoint /bin/bash mydocker:1.0.0 -c "...

回答 1 投票 0

防止 go.mod 更改运行 `go fmt ./...`

我正在运行一个 GitHub 管道(以及其他测试)以确保代码格式正确。我通过在我的源上运行 go fmt ./... 来做到这一点,然后检查这不会改变任何内容...

回答 1 投票 0

使用 Yarn 安装软件包时,“不正确的对等依赖”是什么意思?

我刚刚克隆了一个存储库,建议使用 Yarn 来安装依赖项。当我运行yarn install时,似乎没问题,但它提供了以下警告: 纱线安装 v0.20.3 [1/4] 🔍 解决

回答 3 投票 0

临时依赖 Rust 的修补版本

我正在尝试修复 Rust/Cargo 中的依赖问题。我有一个依赖项 ctclib-pp,它又依赖于 bindgen 0.59.2。但是,出于兼容性原因,我需要使用 0.60.1 或更高版本...

回答 1 投票 0

使用最新 Visual Studio 2022 构建的应用程序中的第一个 std::mutex::lock() 崩溃

最近我安装了最新的 Visual Studio 2022 v17.10 来构建我的程序,最初一切顺利。但是在安装了一些其他程序之后,我的程序立即开始失败......

回答 1 投票 0

如何在docker中使用poetry?

如何在我的图像中添加诗歌? (我应该使用点吗?) 我应该使用哪个版本的诗歌? 我需要虚拟环境吗? 野外有很多例子和观点提供了不同的

回答 4 投票 0

如何自动将我的服务注册添加到di容器中

我想自动向容器添加服务。在我的 ServiceRegistration 类中: builder.Services.AddScoped(); builder.Services.AddScoped<

回答 1 投票 0

有没有办法以交互方式安装建议的作曲家包?

我想为我的作曲家包的用户提供一个界面来选择和安装任何建议的包。好像没有命令行选项,在API中我只能找到一个getSu...

回答 8 投票 0

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.