Created attachment 117 [details] Error Message Steps to Reproduce: Build jar file: mvn package Run jar file: java -cp target/chess-0.0.1-SNAPSHOT.jar chess.chess.App Expected Results: import log4j successfully Actual Results: ClassNotFoundException on org.apache.log4j during compilation of jar file.
And run the following code to build using the following commands: 1. mvn assembly:assembly -DdescriptorId=jar-with-dependencies 2. java -jar target/chess-1.0.jar
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <configuration> <archive> <manifest> <mainClass>chess.chess.App</mainClass> </manifest> </archive> <appendAssemblyId>false</appendAssemblyId> </configuration> </plugin>