我正在尝试编译并运行maven项目,它有一个POM.xml
文件。它的jar文件夹中有几个.jar
个文件。我只是在Eclipse中导入整个项目。我只是清理然后安装。但它抱怨以下错误。我该如何解决?
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project WLStatusData: Compilation failure: Compilation failure:
[ERROR] /C:/Users/mhossein/Documents/WLStatusData/src/main/DataCollector.java:[410,48] package weblogic.health does not exist
[ERROR] /C:/Users/mhossein/Documents/WLStatusData/src/main/DataCollector.java:[410,97] package weblogic.health does not exist
这是我的POM.xml
:
<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>com.mywork</groupId>
<artifactId>WLStatusData</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>WLStatusData</name>
<build>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.oracle.jars.wlserver_10_3.server.lib</groupId>
<artifactId>wlfullclient</artifactId>
<version>11.1.1.4.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.24</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.2.1</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>1.2.1</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.8</version>
</dependency>
</dependencies>
</project>