我正在尝试部署网络应用,但我无法部署我的网络应用,我正在使用:
Intellij IDEA 14.1.4
OS X YOSEMITE 10.10.4
Maven 3.2.5
Tomcat 7.0.63
在我的pom.xml文件中。我写了这个:
<?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>
<groupId>simple</groupId>
<artifactId>simple</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.12</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.12</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<url>http://127.0.0.1:8080/manager/text/</url>
<server>TomcatServer</server>
<username>tomcatg</username>
<password>sg</password>
<path>/firstwebapp</path>
</configuration>
</plugin>
</plugins>
</build>
</project>
我选择tomcat7:deploy并按Run Maven Build按钮,结果为:
[INFO] Deploying war to http://127.0.0.1:8080/firstwebapp
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#StaticLoggerBinder for further details
我查看了网页www.slf4j.org,但我不知道如何在类路径上放置slf4-simple.jar,我在这里查看了一些解决方案,但我无法解决这个问题。 / p>
任何人都可以帮助我吗?