I am trying to run maven install in my project with some dependencies:
<dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.15</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> <version>1.5.2</version> </dependency> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>0.9.24</version> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId> <version>3.3.2.GA</version> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-annotations</artifactId> <version>3.4.0.GA</version> </dependency>
when you run mvn install
first time, it works just fine (BUILD SUCCESS) but the second time ("after making some changes to the code") I try to run the mvn install
and maven throw error "when opening a zip file".
[ERROR] error: error reading C:\Users\Idan\.m2\repository\javax\jms\jms\1.1\jms- 1.1.jar; error in opening zip file [ERROR] error: error reading C:\Users\Idan\.m2\repository\com\sun\jdmk\jmxtools\1.2.1\jmxtools-1.2.1.jar; error in opening zip file [ERROR] error: error reading C:\Users\Idan\.m2\repository\com\sun\jmx\jmxri\1.2.1\jmxri-1.2.1.jar; error in opening zip file [ERROR] error: error reading C:\Users\Idan\.m2\repository\ch\qos\logback\logback-classic\0.9.24\logback-classic-0.9.24.jar; error in opening zip file
but
if I remove log4j, SLF4J, and logback-classoc dependencies run maven install (BUILD SUCCESS) return log4j, SLF4J, and the classic dependency log run maven install it run just fine (BUILD SUCCESS).
What could be the problem?
Update:
well, I will delete my entire .m2 / reposetory folder, delete all the target folders in my project, then I run mvn install
and I get
[INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building d 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ 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
thanks for the help.
source share