我在项目中使用了SLF4J,但我从maven项目中删除了所有依赖项,因为我不需要它。不幸的是,当我运行我的项目时,我在下面看到了这个。我在我的项目中没有看到任何SLF4J句柄。你能告诉我为什么我会看到这个吗?
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinde
我从eclipse市场下载了maven api。
但是,当我尝试创建任何maven项目时,它会给出以下错误
Could not calculate build plan: Plugin
org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its
dependencies could not be resolved: Failed to read artifact descriptor
for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
此外,当我试图使用m
我在Maven中创建了一个简单的测试项目,因为我刚开始使用它并试图学习它。我正准备设置一个.jar文件,但当我在项目中运行构建并进行清理时,我总是收到以下错误: SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/Aaron/Downloads/Eclipse%20Installer/eclipse/plugins/org.eclipse.m2e.maven.runtime.slf4j.simple_1.16.0.20200610-1735/jars/s
安装完成后,我从maven-archetype-quickstart和start dependency:tree goal创建了项目。以下是Eclipse控制台中的输出:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/anahel/.p2/pool/plugins/org.eclipse.m2e.maven.runtime.slf4j.simple_1.16.0.20200610-1735/jars/slf4j-simple-1.7.5.jar!/org/
正在尝试使用maven项目执行.jmx (Jmeter)。在Jmeter 3.1版本中创建了jmx文件。使用jmeter maven-plugin 2.1.0。在命令行中使用- mvn clean verify执行时出现以下错误
[INFO] P E R F O R M A N C E T E S T S
[INFO] -------------------------------------------------------
[INFO] Invalid value detected for <postTestPauseInSeconds>. Setting paus
我想在JMeter中运行我的JUnit测试。使用maven- jar -plugin,我可以用我的测试创建一个jar,以便将它放入JMETER的类路径($JMETER_HOME/lib/junit)。问题是我的测试有很多Maven2没有放到jar中的依赖项,包括项目的主类、来自其他项目的类和外部库。我该怎么做呢?
我有一个maven项目,可以从命令行构建,没有任何问题。但是,当我使用IntelliJ构建它时,我得到了错误:
java: FileName.java:89: cannot find symbol
symbol : variable log
在java文件中没有定义或导入日志,但存在
@Slf4j
final public class FileName {
语句,该语句应定义日志类。
在项目结构窗口中,类用于:
Maven: org.slf4j:jcl-over-slf4j:1.6.1
Maven: org.slf4j:slf4j-api:1.6.6
Maven: org.slf4j:slf
我们有一个新的Maven项目,当我们使用exec- maven -plugin通过maven配置文件启动我们的过程时,我们将面临一个问题。进程启动失败,错误如下:
java.lang.IllegalArgumentException: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation (class org.slf4j.impl.JDK14LoggerFactory loaded fr