-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 04/26/2013 10:24 AM, Emmanuel Bourg wrote: > Le 26/04/2013 10:16, Eugene Zhukov a écrit : > >> To fix this warning you can patch pom.xml with maven-jar-plugin and >> <addClasspath>true</addClasspath> flag. >> http://maven.apache.org/shared/maven-archiver/examples/classpath.html > > Thank you Eugene, I wasn't aware of this feature. > > However will that really work in our case? It seems the jars are > specified in the Class-Path attribute with the version. We want > version-less jars, that is: > > Class-Path: plexus-utils.jar commons-lang.jar > > instead of: > > Class-Path: plexus-utils-1.1.jar commons-lang-2.1.jar Seems something like <build> <plugins> <plugin> <artifactId>maven-war-plugin</artifactId> <configuration> <archive> <manifest> <addClasspath>true</addClasspath> <classpathLayoutType>custom</classpathLayoutType> <customClasspathLayout>$${artifact.artifactId}-$${artifact.version}.$${artifact.extension}</customClasspathLayout> </manifest> </archive> </configuration> </plugin> </plugins> </build> is possible (http://maven.apache.org/shared/maven-archiver/examples/classpath.html#aCustom). So you could remove version > > > > Emmanuel Bourg > > - -- Olivier Sallou IRISA / University of Rennes 1 Campus de Beaulieu, 35000 RENNES - FRANCE Tel: 02.99.84.71.95 gpg key id: 4096R/326D8438 (keyring.debian.org) Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJRelDAAAoJEHjcaNsybYQ4K+wP/37QAxh69vomg3xLnWesxQql BWTGWCdiRjGJ/ID6ZsInn/2xKgJhj6rAAKIDVK+IAymD6ru8V926u8mGaccCwUpj 8bP/15ee8tWUhZkN5KXSwLkaVq9HNHf76/JCrXBLTh4OeEGZs5SeK4yeTtRq0KQO ih5E8fk8eeWyQqvLmoYnXiKgBj8GdQS/vwyeHiiU6Q64cvI29vOnD9CfOKXakELb gYYt19DRap976v4N49ZUCGwbCYxT6rZ2GjQP5tzouRDdqFPZ3RKR0I7+AdynUrY+ AgSZAFfu3K/RGM3s4U875sOG1wuibvV0jDIzuG1d90cyiv8D9xQXYRRSS61aeFEB GrHEf/2bQzHLQvFDxtkcK9NJeVZ1tyq08KZT2PMy2yI8utBK1tYY9L4dcGpoZeLB ZyaAR6pUMvZbd9GzZeVINewDCssA2puY2Qk4p9YklbqL7IQqYly+ArNTCxSOxCG4 /9bHI4wYkINcXNq0I2IG7GLL0g43OuHrEQLfNSo+Cz5UbdK3dF71eimL82OHgz8E wTiGjSWzPB2hkBX4sqvSrFgcAQ3zD8iZNX2lG2m9gNpEXlrWWKzR2Sw6oYA6Pgt3 esxNypJbsSQMa0gWWCcSV91hFwe6eSn5vTuxpffXAem8pA2OuLFwmUAmIi3MkaIG QAZlV38DU0L1PW8Lso39 =ErJo -----END PGP SIGNATURE-----