Well...I suspect that it is skipping the dependency because it is system-scoped. If so, this doesn’t make it useless for most people since most of use do not use “system-scoped” dependencies...
> On Jan 25, 2018, at 4:43 AM, Basin Ilya <basini...@gmail.com> wrote: > > 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. > 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 --> > <!-- > https://urldefense.proofpoint.com/v2/url?u=http-3A__maven.apache.org_plugins_maven-2Dwar-2Dplugin_examples_war-2Dmanifest-2Dguide.html&d=DwICaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=nSxyAsyxa1Izff8ULe7vW8u084madbci-hLPsiLpxeU&m=viSwPT5200iSAfpL5QhAPYezvqa-RNTM1-l8F8QcGQ4&s=I1VopBe7SIoNcTAVqHOFWoUZjivGkkKnBd04duRtjqM&e= > --> > </dependency> > ... > <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". > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org