Re: excluding files from jar doesn't work completely well - maven-jar-plugin 2.2
Post an issue in jira. And attach a simple project test case to reproduce the issue. Thanks, -- Olivier 2008/3/11, Patrizio Munzi [EMAIL PROTECTED]: Hi All, I'm trying to exclude some files from the built jar by using the maven-jar-plugin exclude feature. Here's my configuration: excludes exclude**/*.properties/exclude exclude**/*.xml/exclude exclude**/*.xsd/exclude /excludes Although all the specified files are actually excluded from the deployed jar, the directory paths of the excluded files are still created into the jar. I mean, if I have the following files under the resources directory: resources/log4j.properties resources/xml/file.xml resources/xml/schema/schema.xsd These files won't be included in the built jar, but I'll still have the following path into it: resources/xml/schema/ Is anyone aware of this problem with the maven-jar-plugin...? Thanks. Cheers Patrizio -- *Patrizio Munzi* Product Engineer Viale Bruno Buozzi, 19 - 00197 Roma (Italy) tel: +39 06 4543 3540 fax: +39 06 4543 3587 mobile: +39 393 7195 164 mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] web: http://www.eris4.com http://www.eris4.com/ skype: eris4_munzi skype:eris4_munzi?add - 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: excluding files from jar doesn't work completely well - maven-jar-plugin 2.2
Thanks for your answer, so is it a real problem...? Thanks Olivier Lamy wrote: Post an issue in jira. And attach a simple project test case to reproduce the issue. Thanks, -- Olivier 2008/3/11, Patrizio Munzi [EMAIL PROTECTED]: Hi All, I'm trying to exclude some files from the built jar by using the maven-jar-plugin exclude feature. Here's my configuration: excludes exclude**/*.properties/exclude exclude**/*.xml/exclude exclude**/*.xsd/exclude /excludes Although all the specified files are actually excluded from the deployed jar, the directory paths of the excluded files are still created into the jar. I mean, if I have the following files under the resources directory: resources/log4j.properties resources/xml/file.xml resources/xml/schema/schema.xsd These files won't be included in the built jar, but I'll still have the following path into it: resources/xml/schema/ Is anyone aware of this problem with the maven-jar-plugin...? Thanks. Cheers Patrizio -- *Patrizio Munzi* Product Engineer Viale Bruno Buozzi, 19 - 00197 Roma (Italy) tel: +39 06 4543 3540 fax: +39 06 4543 3587 mobile: +39 393 7195 164 mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] web: http://www.eris4.com http://www.eris4.com/ skype: eris4_munzi skype:eris4_munzi?add - 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] -- *Patrizio Munzi* Product Engineer Viale Bruno Buozzi, 19 - 00197 Roma (Italy) tel: +39 06 4543 3540 fax: +39 06 4543 3587 mobile: +39 393 7195 164 mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] web: http://www.eris4.com http://www.eris4.com/ skype: eris4_munzi skype:eris4_munzi?add - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: excluding files from jar doesn't work completely well - maven-jar-plugin 2.2
It doesn't surprise me too much that the maven-jar-plugin still creates empty directories even when all files that were in that directory have been excluded. I haven't checked myself, but it sounds like a situation that the plugin author could easily have overlooked. But it doesn't cause any problems does it? Just a minor wastage of space in the generated jarfile? In this case, it is probably worth filing a jira issue for this, but it should be marked minor or even trivial unless it causes actual problems for programs. Regards, Simon Patrizio Munzi schrieb: Thanks for your answer, so is it a real problem...? Thanks Olivier Lamy wrote: Post an issue in jira. And attach a simple project test case to reproduce the issue. Thanks, -- Olivier 2008/3/11, Patrizio Munzi [EMAIL PROTECTED]: Hi All, I'm trying to exclude some files from the built jar by using the maven-jar-plugin exclude feature. Here's my configuration: excludes exclude**/*.properties/exclude exclude**/*.xml/exclude exclude**/*.xsd/exclude /excludes Although all the specified files are actually excluded from the deployed jar, the directory paths of the excluded files are still created into the jar. I mean, if I have the following files under the resources directory: resources/log4j.properties resources/xml/file.xml resources/xml/schema/schema.xsd These files won't be included in the built jar, but I'll still have the following path into it: resources/xml/schema/ Is anyone aware of this problem with the maven-jar-plugin...? Thanks. Cheers Patrizio -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: excluding files from jar doesn't work completely well - maven-jar-plugin 2.2
Yes, you're right. Not a so heavy issue. Just a correctness remark. I've already filed a jira issue for it with simple project test case. Regards, Patrizio [EMAIL PROTECTED] wrote: It doesn't surprise me too much that the maven-jar-plugin still creates empty directories even when all files that were in that directory have been excluded. I haven't checked myself, but it sounds like a situation that the plugin author could easily have overlooked. But it doesn't cause any problems does it? Just a minor wastage of space in the generated jarfile? In this case, it is probably worth filing a jira issue for this, but it should be marked minor or even trivial unless it causes actual problems for programs. Regards, Simon Patrizio Munzi schrieb: Thanks for your answer, so is it a real problem...? Thanks Olivier Lamy wrote: Post an issue in jira. And attach a simple project test case to reproduce the issue. Thanks, -- Olivier 2008/3/11, Patrizio Munzi [EMAIL PROTECTED]: Hi All, I'm trying to exclude some files from the built jar by using the maven-jar-plugin exclude feature. Here's my configuration: excludes exclude**/*.properties/exclude exclude**/*.xml/exclude exclude**/*.xsd/exclude /excludes Although all the specified files are actually excluded from the deployed jar, the directory paths of the excluded files are still created into the jar. I mean, if I have the following files under the resources directory: resources/log4j.properties resources/xml/file.xml resources/xml/schema/schema.xsd These files won't be included in the built jar, but I'll still have the following path into it: resources/xml/schema/ Is anyone aware of this problem with the maven-jar-plugin...? Thanks. Cheers Patrizio -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- *Patrizio Munzi* Product Engineer Viale Bruno Buozzi, 19 - 00197 Roma (Italy) tel: +39 06 4543 3540 fax: +39 06 4543 3587 mobile: +39 393 7195 164 mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] web: http://www.eris4.com http://www.eris4.com/ skype: eris4_munzi skype:eris4_munzi?add - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Excluding files from JAR with maven-jar-plugin 2.2-SNAPSHOT failed
Hi, Can you try with : excludes exclude**/*.xsd/exclude /excludes -- Olivier 2008/1/12, supareno [EMAIL PROTECTED]: Hello guys i read the previous threads about exclusion with interest because i am always confronted with the excludes problem i followed all the steps: changed my settings.xml to enable snapshot plugin repositories... (http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html) everything is working except the excludes tag my pom.xml looks like this: ... plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.2-SNAPSHOT/version executions execution goals goaljar/goal /goals configuration excludes**/*.xsd/excludes schemaDirectorysrc/main/resources/xml/schemaDirectory /configuration /execution /executions /plugin ... and when i run maven with the following command: mvn -Papache package i've got this exception! ... [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-jar-plugin:2.2-SNAPSHOT (found static expression: '**/*.xsd' which may act as a default value). Cause: Cannot assign configuration entry 'excludes' to 'class [Ljava.lang.String;' from '**/*.xsd', which is of type class java.lang.String [INFO] [INFO] For more information, run Maven with the -e switch ... do i forget something during my builds?? regards supareno - 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: Excluding files from JAR with maven-jar-plugin 2.2-SNAPSHOT failed
On Jan 12, 2008 3:59 PM, supareno [EMAIL PROTECTED] wrote: [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-jar-plugin:2.2-SNAPSHOT (found static expression: '**/*.xsd' which may act as a default value). Configuration problem on your side, use excludes exclude**/*.xsd/exclude /excludes Jochen -- Look, that's why there's rules, understand? So that you think before you break 'em. -- (Terry Pratchett, Thief of Time) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Excluding files from JAR with maven-jar-plugin 2.2-SNAPSHOT failed
The excludes configuration is a set of things to exclude. It needs to be configured like this: excludes exclude**/*.xsd/exclude /excludes supareno wrote: Hello guys i read the previous threads about exclusion with interest because i am always confronted with the excludes problem i followed all the steps: changed my settings.xml to enable snapshot plugin repositories... (http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html) everything is working except the excludes tag my pom.xml looks like this: ... plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.2-SNAPSHOT/version executions execution goals goaljar/goal /goals configuration excludes**/*.xsd/excludes schemaDirectorysrc/main/resources/xml/schemaDirectory /configuration /execution /executions /plugin ... and when i run maven with the following command: mvn -Papache package i've got this exception! ... [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-jar-plugin:2.2-SNAPSHOT (found static expression: '**/*.xsd' which may act as a default value). Cause: Cannot assign configuration entry 'excludes' to 'class [Ljava.lang.String;' from '**/*.xsd', which is of type class java.lang.String [INFO] [INFO] For more information, run Maven with the -e switch ... do i forget something during my builds?? regards supareno - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Excluding files from JAR with maven-jar-plugin 2.2-SNAPSHOT failed
Thanks Olivier (and Jochen and Dennis), it is now building without any error but the xsd files is always here i'm gonna try with Ant task to if it is working ! regards Hi, Can you try with : excludes exclude**/*.xsd/exclude /excludes -- Olivier 2008/1/12, supareno [EMAIL PROTECTED]: Hello guys i read the previous threads about exclusion with interest because i am always confronted with the excludes problem i followed all the steps: changed my settings.xml to enable snapshot plugin repositories... (http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html) everything is working except the excludes tag my pom.xml looks like this: ... plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.2-SNAPSHOT/version executions execution goals goaljar/goal /goals configuration excludes**/*.xsd/excludes schemaDirectorysrc/main/resources/xml/schemaDirectory /configuration /execution /executions /plugin ... and when i run maven with the following command: mvn -Papache package i've got this exception! ... [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-jar-plugin:2.2-SNAPSHOT (found static expression: '**/*.xsd' which may act as a default value). Cause: Cannot assign configuration entry 'excludes' to 'class [Ljava.lang.String;' from '**/*.xsd', which is of type class java.lang.String [INFO] [INFO] For more information, run Maven with the -e switch ... do i forget something during my builds?? regards supareno - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Excluding files from JAR with maven-jar-plugin 2.2-SNAPSHOT failed
The excludes field in the jar plugin is to exclude content from ${project.build.outputDirectory} not to exclude resources. In order to exclude resources have a look here [1]. I don't really understand your jar plugin configuration. Can you try a more simple : plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration excludes exclude**/*.xsd/exclude /excludes /configuration /plugin -- Olivier [1] http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html 2008/1/12, supareno [EMAIL PROTECTED]: Thanks Olivier (and Jochen and Dennis), it is now building without any error but the xsd files is always here i'm gonna try with Ant task to if it is working ! regards Hi, Can you try with : excludes exclude**/*.xsd/exclude /excludes -- Olivier 2008/1/12, supareno [EMAIL PROTECTED]: Hello guys i read the previous threads about exclusion with interest because i am always confronted with the excludes problem i followed all the steps: changed my settings.xml to enable snapshot plugin repositories... (http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html) everything is working except the excludes tag my pom.xml looks like this: ... plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.2-SNAPSHOT/version executions execution goals goaljar/goal /goals configuration excludes**/*.xsd/excludes schemaDirectorysrc/main/resources/xml/schemaDirectory /configuration /execution /executions /plugin ... and when i run maven with the following command: mvn -Papache package i've got this exception! ... [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-jar-plugin:2.2-SNAPSHOT (found static expression: '**/*.xsd' which may act as a default value). Cause: Cannot assign configuration entry 'excludes' to 'class [Ljava.lang.String;' from '**/*.xsd', which is of type class java.lang.String [INFO] [INFO] For more information, run Maven with the -e switch ... do i forget something during my builds?? regards supareno - 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] - 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: Excluding files from JAR with maven-jar-plugin 2.2-SNAPSHOT failed
thanks for your Olivier , it works now! i forgot to make a clean in the target folder so that's why the files were always present ! regards The excludes field in the jar plugin is to exclude content from ${project.build.outputDirectory} not to exclude resources. In order to exclude resources have a look here [1]. I don't really understand your jar plugin configuration. Can you try a more simple : plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration excludes exclude**/*.xsd/exclude /excludes /configuration /plugin -- Olivier [1] http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html 2008/1/12, supareno [EMAIL PROTECTED]: Thanks Olivier (and Jochen and Dennis), it is now building without any error but the xsd files is always here i'm gonna try with Ant task to if it is working ! regards Hi, Can you try with : excludes exclude**/*.xsd/exclude /excludes -- Olivier 2008/1/12, supareno [EMAIL PROTECTED]: Hello guys i read the previous threads about exclusion with interest because i am always confronted with the excludes problem i followed all the steps: changed my settings.xml to enable snapshot plugin repositories... (http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html) everything is working except the excludes tag my pom.xml looks like this: ... plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.2-SNAPSHOT/version executions execution goals goaljar/goal /goals configuration excludes**/*.xsd/excludes schemaDirectorysrc/main/resources/xml/schemaDirectory /configuration /execution /executions /plugin ... and when i run maven with the following command: mvn -Papache package i've got this exception! ... [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-jar-plugin:2.2-SNAPSHOT (found static expression: '**/*.xsd' which may act as a default value). Cause: Cannot assign configuration entry 'excludes' to 'class [Ljava.lang.String;' from '**/*.xsd', which is of type class java.lang.String [INFO] [INFO] For more information, run Maven with the -e switch ... do i forget something during my builds?? regards supareno - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Excluding files from JAR
Hi, Sorry for incomplete information about the problem. I used delete task , and it is working now. Did not try the snapshot jar plugin yet. Thanks and regards, Amit Kumar On Jan 11, 2008 5:46 AM, Wayne Fay [EMAIL PROTECTED] wrote: I don't think Simon is telling you to use Ant's jar command -- instead he is suggesting that you use Ant's delete task to physically remove the unwanted files out of /target/ before allowing Maven to do its own packaging step. (Right, Simon?) You would probably want to bind this to prepare-package as you have done below. Here's the Ant Delete task page: http://ant.apache.org/manual/CoreTasks/delete.html Also, you should be using -X to get full debugging information. And if it doesn't work this time, please reply back with a lot more details about what exactly happened when you tried this eg what errors were reported, what seemed to happen, etc. Simply saying it didn't work tells us absolutely nothing about what actually happened vs what you were expecting etc. Wayne On 1/10/08, amit kumar [EMAIL PROTECTED] wrote: Hi Simon, Being totally unaware of ANT although I tried but of no use. I used this with google's help plugin artifactIdmaven-antrun-plugin/artifactId executions execution phaseprepare-package/phase configuration tasks target name=jar-file depends=compile-src,copy jar destfile=${root}/target/file.jar basedir=${build} excludes=*.xsd,*.xsb / /target /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin Where am I lacking? Regards, Amit On Jan 10, 2008 9:45 PM, amit kumar [EMAIL PROTECTED] wrote: Hi, I have downloaded the patches from the link mentioned by you. But I don't know how to apply them. regards, Amit On Jan 10, 2008 6:29 PM, Olivier Lamy [EMAIL PROTECTED] wrote: Hi, No you don't miss something here. It's a know issue [1] and it's fixed in trunk. You can try last snapshot to test the fix. -- Olivier [1] http://jira.codehaus.org/browse/MJAR-30 2008/1/10, amit kumar [EMAIL PROTECTED]: HI, Just like WAR can I as well exclude some files from JAR builds as well? I have used this, but not working. /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.1/version executions execution goals goaljar/goal /goals /execution /executions configuration excludes**/*.xsd/excludes schemaDirectorysrc/schema/xsd/schemaDirectory /configuration /plugin Am I missing something? Amit - 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: Excluding files from JAR
Hi, No you don't miss something here. It's a know issue [1] and it's fixed in trunk. You can try last snapshot to test the fix. -- Olivier [1] http://jira.codehaus.org/browse/MJAR-30 2008/1/10, amit kumar [EMAIL PROTECTED]: HI, Just like WAR can I as well exclude some files from JAR builds as well? I have used this, but not working. /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.1/version executions execution goals goaljar/goal /goals /execution /executions configuration excludes**/*.xsd/excludes schemaDirectorysrc/schema/xsd/schemaDirectory /configuration /plugin Am I missing something? Amit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Excluding files from JAR
amit kumar [EMAIL PROTECTED] schrieb: Just like WAR can I as well exclude some files from JAR builds as well? Not until the next version of the jar plugin is released. For the moment, the usual workaround is to use the antrun plugin to remove the unwanted files before the jar is created. Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Excluding files from JAR
Hi, I have downloaded the patches from the link mentioned by you. But I don't know how to apply them. regards, Amit On Jan 10, 2008 6:29 PM, Olivier Lamy [EMAIL PROTECTED] wrote: Hi, No you don't miss something here. It's a know issue [1] and it's fixed in trunk. You can try last snapshot to test the fix. -- Olivier [1] http://jira.codehaus.org/browse/MJAR-30 2008/1/10, amit kumar [EMAIL PROTECTED]: HI, Just like WAR can I as well exclude some files from JAR builds as well? I have used this, but not working. /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.1/version executions execution goals goaljar/goal /goals /execution /executions configuration excludes**/*.xsd/excludes schemaDirectorysrc/schema/xsd/schemaDirectory /configuration /plugin Am I missing something? Amit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Excluding files from JAR
Nothing to patch locally. The snapshot with this patch is available in snapshot plugin repositories. In order to test this have a look here [1] (first section How to include the plugin snapshot repositories as part of your build). If you have any issues let us know, Thanks, -- Olivier [1] http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html 2008/1/10, amit kumar [EMAIL PROTECTED]: Hi, I have downloaded the patches from the link mentioned by you. But I don't know how to apply them. regards, Amit On Jan 10, 2008 6:29 PM, Olivier Lamy [EMAIL PROTECTED] wrote: Hi, No you don't miss something here. It's a know issue [1] and it's fixed in trunk. You can try last snapshot to test the fix. -- Olivier [1] http://jira.codehaus.org/browse/MJAR-30 2008/1/10, amit kumar [EMAIL PROTECTED]: HI, Just like WAR can I as well exclude some files from JAR builds as well? I have used this, but not working. /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.1/version executions execution goals goaljar/goal /goals /execution /executions configuration excludes**/*.xsd/excludes schemaDirectorysrc/schema/xsd/schemaDirectory /configuration /plugin Am I missing something? Amit - 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: Excluding files from JAR
Hi Simon, Being totally unaware of ANT although I tried but of no use. I used this with google's help plugin artifactIdmaven-antrun-plugin/artifactId executions execution phaseprepare-package/phase configuration tasks target name=jar-file depends=compile-src,copy jar destfile=${root}/target/file.jar basedir=${build} excludes=*.xsd,*.xsb / /target /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin Where am I lacking? Regards, Amit On Jan 10, 2008 9:45 PM, amit kumar [EMAIL PROTECTED] wrote: Hi, I have downloaded the patches from the link mentioned by you. But I don't know how to apply them. regards, Amit On Jan 10, 2008 6:29 PM, Olivier Lamy [EMAIL PROTECTED] wrote: Hi, No you don't miss something here. It's a know issue [1] and it's fixed in trunk. You can try last snapshot to test the fix. -- Olivier [1] http://jira.codehaus.org/browse/MJAR-30 2008/1/10, amit kumar [EMAIL PROTECTED]: HI, Just like WAR can I as well exclude some files from JAR builds as well? I have used this, but not working. /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.1/version executions execution goals goaljar/goal /goals /execution /executions configuration excludes**/*.xsd/excludes schemaDirectorysrc/schema/xsd/schemaDirectory /configuration /plugin Am I missing something? Amit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Excluding files from JAR
I don't think Simon is telling you to use Ant's jar command -- instead he is suggesting that you use Ant's delete task to physically remove the unwanted files out of /target/ before allowing Maven to do its own packaging step. (Right, Simon?) You would probably want to bind this to prepare-package as you have done below. Here's the Ant Delete task page: http://ant.apache.org/manual/CoreTasks/delete.html Also, you should be using -X to get full debugging information. And if it doesn't work this time, please reply back with a lot more details about what exactly happened when you tried this eg what errors were reported, what seemed to happen, etc. Simply saying it didn't work tells us absolutely nothing about what actually happened vs what you were expecting etc. Wayne On 1/10/08, amit kumar [EMAIL PROTECTED] wrote: Hi Simon, Being totally unaware of ANT although I tried but of no use. I used this with google's help plugin artifactIdmaven-antrun-plugin/artifactId executions execution phaseprepare-package/phase configuration tasks target name=jar-file depends=compile-src,copy jar destfile=${root}/target/file.jar basedir=${build} excludes=*.xsd,*.xsb / /target /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin Where am I lacking? Regards, Amit On Jan 10, 2008 9:45 PM, amit kumar [EMAIL PROTECTED] wrote: Hi, I have downloaded the patches from the link mentioned by you. But I don't know how to apply them. regards, Amit On Jan 10, 2008 6:29 PM, Olivier Lamy [EMAIL PROTECTED] wrote: Hi, No you don't miss something here. It's a know issue [1] and it's fixed in trunk. You can try last snapshot to test the fix. -- Olivier [1] http://jira.codehaus.org/browse/MJAR-30 2008/1/10, amit kumar [EMAIL PROTECTED]: HI, Just like WAR can I as well exclude some files from JAR builds as well? I have used this, but not working. /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.1/version executions execution goals goaljar/goal /goals /execution /executions configuration excludes**/*.xsd/excludes schemaDirectorysrc/schema/xsd/schemaDirectory /configuration /plugin Am I missing something? Amit - 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]