MAVEN does not automatically pack dependent items into jars in the project, and if you need to place the managed jar in the Target/lib directory, you can add it to the Pom.xml:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactid>m
Aven-jar-plugin</artifactid> <configuration> <archive>
<manifest> <addClasspath>true</addClasspath> <classpathPrefix>lib/</classpathPrefix> <mainclass>com.myhexin.main.
Main</mainclass> </manifest> <manifestEntries>
<Class-Path>.</Class-Path> </manifestEntries> </archive> </configuration> </plugin> <plugin> <groupid>org.
Apache.maven.plugins</groupid> <artifactId>maven-dependency-plugin</artifactId> <executions&gT <execution> <id>copy</id> <phase>install</phase
> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <outputdirecto
Ry> Target/lib </outputDirectory> </configuration> </execution> </executions> </PL Ugin>