2018-01-25 11:43 GMT+01:00 Basin Ilya <basini...@gmail.com>: > Hi List. > As far as I know, Class-Path in MANIFEST.MF of a .war file is only useful > when you need to add jars that are not in WEB-INF/lib and not provided by > the container. >
this really depends on the classloader of the container running the war and the way it is configured. > But can maven add paths that are absolute or relative? I tried this: > > <dependency> > <groupId>nah</groupId> > <artifactId>nah</artifactId> > <version>1.0.0</version> > <scope>system</scope> > <systemPath>/C:/1/ccc.jar</systemPath> > <optional>true</optional> > <!-- goes in manifest classpath, but not included in > WEB-INF/lib --> > <!-- http://maven.apache.org/plugins/maven-war-plugin/ > examples/war-manifest-guide.html --> > </dependency> > Optional dependencies are not required at runtime and should not be expected to be part of the war > ... > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-war-plugin</artifactId> > <configuration> > <archive> > <manifest> > <addClasspath>true</addClasspath> > </manifest> > </archive> > > The Class-Path was indeed added to MANIFEST.MF, but not the "ccc.jar". > makes sense to me. -- Disclaimer; This message is just a reflection of what I thought at the time of sending. The message may contain information that is not intended for you or that you don't understand.