classpath fileseparator problem in generated manifest file under winxp
Hello, I'm building a Java project using Maven 2.0.9 and JVM 1.5.0_14 on Windows XP. My project depends on runtime from some jar files that are resides in the same directory with my jar so I put this configuration to my pom.xml: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.2/version configuration archive manifest addClasspathtrue/addClasspath classpathPrefix.\/classpathPrefix /manifest /archive /configuration /plugin After build the manifest file in my jar file contains all dependencies with prefix ./ Is this a bug or I missed something? Regards, th - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: classpath fileseparator problem in generated manifest file under winxp
Using the classpathPrefix.\/classpathPrefix tag I want to get .\ (backslash) as prefix but the manifest file contains ./ (slash) prefixes. Unfortunatelly running the jar under WinXP doesn't recognizes paths with slashes :( I wrote to the list because I didn't found any information in doc pages to handle this problem. Regards, th Paolo Compieta írta: Using the classpathPrefix.\/classpathPrefix tag, you're telling the Jar plugin to put that prefix - and it seems to behave correctly. always visit the plugin's doc pages for details: http://maven.apache.org/plugins/maven-jar-plugin/ Maven Jar Plugin http://maven.apache.org/shared/maven-archiver/examples/classpath.html Maven Archiver Regards, PC Thalmeiner Zsolt wrote: Hello, I'm building a Java project using Maven 2.0.9 and JVM 1.5.0_14 on Windows XP. My project depends on runtime from some jar files that are resides in the same directory with my jar so I put this configuration to my pom.xml: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.2/version configuration archive manifest addClasspathtrue/addClasspath classpathPrefix.\/classpathPrefix /manifest /archive /configuration /plugin After build the manifest file in my jar file contains all dependencies with prefix ./ Is this a bug or I missed something? Regards, th - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: classpath fileseparator problem in generated manifest file under winxp
Can you send me a simple working example? Thank you in advance. th Paolo Compieta írta: This is not a Maven problem. The classpath entry in the manifest file is platform independent, and all paths are relative to the containing jar - you shouldn't even need the ./ prefix. see http://mindprod.com/jgloss/jar.html#CLASSPATH Regards, PC Thalmeiner Zsolt wrote: Using the classpathPrefix.\/classpathPrefix tag I want to get .\ (backslash) as prefix but the manifest file contains ./ (slash) prefixes. Unfortunatelly running the jar under WinXP doesn't recognizes paths with slashes :( I wrote to the list because I didn't found any information in doc pages to handle this problem. Regards, th - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]