maven

cannot access net.sf.ehcache.CacheManager, class file for net.sf.ehcache.CacheManager not found

China☆狼群 提交于 2021-02-07 14:29:24
问题 I have been implementing some caching in my project using EhCache . I have added following dependencies to my pom.xml <!-- https://mvnrepository.com/artifact/org.springframework/spring-context --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>4.3.8.RELEASE</version> </dependency> <!-- https://mvnrepository.com/artifact/org.springframework/spring-context-support --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring

Build failure run “mvn clean install”. I just upgraded Big Sur

爱⌒轻易说出口 提交于 2021-02-07 14:25:28
问题 mvn clean install building failure [INFO] Total time: 1.911 s [INFO] Finished at: 2020-11-14T19:07:37+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project es-starter: Compilation failure [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? [ERROR] [ERROR] -> [Help 1] [ERROR] [ERROR] To see

How to load an external properties file from a maven java project

浪子不回头ぞ 提交于 2021-02-07 14:16:02
问题 I have a maven java project, with a properties file in the src/main/resources directory. I've packaged the jar without the properties file in the jar, so it can be deployed to different environments with different settings, but the unit tests are failing The project structure is Properties Application Project |-- pom.xml `-- src |-- main |-- java | `-- java classes |-- resources | `-- myProps.properties `-- target |--properties-app.jar myProps.properties The values are loaded in this file

How to load an external properties file from a maven java project

我只是一个虾纸丫 提交于 2021-02-07 14:13:13
问题 I have a maven java project, with a properties file in the src/main/resources directory. I've packaged the jar without the properties file in the jar, so it can be deployed to different environments with different settings, but the unit tests are failing The project structure is Properties Application Project |-- pom.xml `-- src |-- main |-- java | `-- java classes |-- resources | `-- myProps.properties `-- target |--properties-app.jar myProps.properties The values are loaded in this file

Java 9 automatic module dependencies cannot be resolved / module not found

老子叫甜甜 提交于 2021-02-07 13:47:56
问题 I'm trying to migrate some legacy applications to the new Java 9 module system, to strengthen its encapsulation. I'm starting from the outside-in, with the assumption that classes on the periphery will have the least external dependencies. As you'd expect, I've declared a very open module to start with: module com.example.user { exports com.example.user; } This instantly breaks the entire project (inside all classes), when suddenly every import for an external dependency no longer resolves

Gradle: how to include dependencies from repositories to output aar file [duplicate]

青春壹個敷衍的年華 提交于 2021-02-07 12:55:25
问题 This question already has answers here : How to include JAR dependency into an AAR library (4 answers) Closed 3 years ago . I am trying to build an arr package in Android Studio. This package contains dependecies for Zendesk: allprojects { repositories { maven { url 'https://zendesk.artifactoryonline.com/zendesk/repo' } } } compile (group: 'com.zendesk', name: 'sdk', version: '1.7.0.1') { transitive = true } compile (group: 'com.zopim.android', name: 'sdk', version: '1.3.1.1') { transitive =

部署Kafka集群管理工具kafka-manager

孤街醉人 提交于 2021-02-07 12:35:14
一.kafka-manager简介 kafka-manager是目前最受欢迎的kafka集群管理工具,它最早由雅虎开源,功能非常齐全,展示的数据非常丰富。同时用户能够在界面上执行一些简单的集群管理操作。 不过雅虎已经将其更名为CMAK(Cluster Manager for Apache Kafka)。具体支持以下内容: 管理多个集群 轻松检查集群状态(主题,消费者,偏移,代理,副本分发,分区分发) 运行首选副本选举 使用选项生成分区分配以选择要使用的代理 运行分区重新分配(基于生成的分配) 使用可选主题配置创建主题(0.8.1.1具有与0.8.2+不同的配置) 删除主题(仅支持0.8.2+并记住在代理配置中设置delete.topic.enable = true) 主题列表现在指示标记为删除的主题(仅支持0.8.2+) 批量生成多个主题的分区分配,并可选择要使用的代理 批量运行重新分配多个主题的分区 将分区添加到现有主题 更新现有主题的配置 选择性为 broker level and topic level metrics 开放JMX polling 选择性过滤掉在zookeeper中没有ids|owners|offsets|directories的消费者 CMAK管理工具支持的范围 支持 Kafka 0.8以上版本 Java 11+ zookeeper必须是3.5+版本。

Maven Build error TOOLS.JAR NOT FOUND IN JRE

亡梦爱人 提交于 2021-02-07 12:31:08
问题 I am getting this problem while building maven project .. please help me out.. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project Subs_Engine: Fatal error compiling: tools.jar not found: C:\Program Files\Java\jre7\..\lib\tools.jar -> [Help 1] 回答1: If you're getting this in eclipse make sure that Eclipse is pointing to a JDK and Not a JRE. In Eclipse navigate to Window->Preferences->Java->Installed JRES- Add... Standard VM

Maven: package io.swagger.annotations does not exist

半世苍凉 提交于 2021-02-07 12:26:23
问题 I want to document my project with swagger. I add swagger annotations and io.springfox dependencies to my project but when I run mvn clean package I have a lot of errors: PS D:\parent-project> mvn clean package [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] parent-project [pom] [INFO] module-common-lib [jar] [INFO] module1 [jar] [INFO] module2 [jar] [INFO] [INFO] ------------< parent