When using maven-jar-plugin
I would like to add an entry to Manifest.mf
Thus, it will contain:
Class path :.
When I add this entry to Pom:
<Class-Path>.</Class-Path>
It will create a Class-Path with all the dependency.
as:
Class path :. jar1name.jar jar2name.jar etc.
Instead of just
Class path :.
Is there a way to prevent maven from adding all jar names to Class-Path?
thanks
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> <manifest> <addClasspath>true</addClasspath> </manifest> <manifestEntries> <Built-By>Me</Built-By> <Class-Path>.</Class-Path> </manifestEntries> </archive> </configuration> </plugin>
java maven manifest
user648026
source share