Re: Transitive dependencies in war-plugin.
If you are using the maven-war-plugin, you can use the warSourceExcludes elements to exclude jars from your war. They will still appear in the work directory (where the war is assembled) but once your war is bundled up, they won't be there. You should also look at dependentWarExcludes. http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html Here's some usage: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0.1/version configuration warSourceExcludes WEB-INF/lib/antlr-2*,WEB-INF/lib/avalon*/warSourceExcludes warName${app.name}/warName containerConfigXML${war.dir}/context.xml/containerConfigXML webXml${war.dir}/WEB-INF/web.xml/webXml /configuration /plugin Zarar Dmystery wrote: IS there a way to turn off transitive dependencies while packaging a war file? I want my ejb-client in the war-packaging but it brings along all the ejb-client dependencies. I've searched enough on this forum but cant find a solution. My webapp pom has a dependency as follows.. dependencies dependency groupIdcom-server/groupId artifactIdcom-server-ejb/artifactId version1/version typeejb-client/type /dependency /dependencies Has anyone solved this isssue? -- View this message in context: http://www.nabble.com/Transitive-dependencies-in-war-plugin.-tf2452739.html#a6838263 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Transitive dependencies in war-plugin.
Where did you define ${app.name} at? On 10/16/06, Zarar Siddiqi [EMAIL PROTECTED] wrote: If you are using the maven-war-plugin, you can use the warSourceExcludes elements to exclude jars from your war. They will still appear in the work directory (where the war is assembled) but once your war is bundled up, they won't be there. You should also look at dependentWarExcludes. http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html Here's some usage: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0.1/version configuration warSourceExcludes WEB-INF/lib/antlr-2*,WEB-INF/lib/avalon*/warSourceExcludes warName${app.name}/warName containerConfigXML${war.dir }/context.xml/containerConfigXML webXml${war.dir}/WEB-INF/web.xml/webXml /configuration /plugin Zarar Dmystery wrote: IS there a way to turn off transitive dependencies while packaging a war file? I want my ejb-client in the war-packaging but it brings along all the ejb-client dependencies. I've searched enough on this forum but cant find a solution. My webapp pom has a dependency as follows.. dependencies dependency groupIdcom-server/groupId artifactIdcom-server-ejb/artifactId version1/version typeejb-client/type /dependency /dependencies Has anyone solved this isssue? -- View this message in context: http://www.nabble.com/Transitive-dependencies-in-war-plugin.-tf2452739.html#a6838263 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson
Re: Transitive dependencies in war-plugin.
How is that relevant to the problem? It's defined in a property file which I read in through a plugin and then store them as project properties. A different propertly file is read for different environments (development, production etc). Mick Knutson-4 wrote: Where did you define ${app.name} at? On 10/16/06, Zarar Siddiqi [EMAIL PROTECTED] wrote: If you are using the maven-war-plugin, you can use the warSourceExcludes elements to exclude jars from your war. They will still appear in the work directory (where the war is assembled) but once your war is bundled up, they won't be there. You should also look at dependentWarExcludes. http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html Here's some usage: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0.1/version configuration warSourceExcludes WEB-INF/lib/antlr-2*,WEB-INF/lib/avalon*/warSourceExcludes warName${app.name}/warName containerConfigXML${war.dir }/context.xml/containerConfigXML webXml${war.dir}/WEB-INF/web.xml/webXml /configuration /plugin Zarar Dmystery wrote: IS there a way to turn off transitive dependencies while packaging a war file? I want my ejb-client in the war-packaging but it brings along all the ejb-client dependencies. I've searched enough on this forum but cant find a solution. My webapp pom has a dependency as follows.. dependencies dependency groupIdcom-server/groupId artifactIdcom-server-ejb/artifactId version1/version typeejb-client/type /dependency /dependencies Has anyone solved this isssue? -- View this message in context: http://www.nabble.com/Transitive-dependencies-in-war-plugin.-tf2452739.html#a6838263 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson -- View this message in context: http://www.nabble.com/Transitive-dependencies-in-war-plugin.-tf2452739.html#a6838444 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Transitive dependencies in war-plugin.
it was not relevant. I am just trying to find better ways to manage the build maintenance process for items like names and version numbers that can be easy for a muilti-module project. On 10/16/06, Zarar Siddiqi [EMAIL PROTECTED] wrote: How is that relevant to the problem? It's defined in a property file which I read in through a plugin and then store them as project properties. A different propertly file is read for different environments (development, production etc). Mick Knutson-4 wrote: Where did you define ${app.name} at? On 10/16/06, Zarar Siddiqi [EMAIL PROTECTED] wrote: If you are using the maven-war-plugin, you can use the warSourceExcludes elements to exclude jars from your war. They will still appear in the work directory (where the war is assembled) but once your war is bundled up, they won't be there. You should also look at dependentWarExcludes. http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html Here's some usage: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0.1/version configuration warSourceExcludes WEB-INF/lib/antlr-2*,WEB-INF/lib/avalon*/warSourceExcludes warName${app.name}/warName containerConfigXML${war.dir }/context.xml/containerConfigXML webXml${war.dir}/WEB-INF/web.xml/webXml /configuration /plugin Zarar Dmystery wrote: IS there a way to turn off transitive dependencies while packaging a war file? I want my ejb-client in the war-packaging but it brings along all the ejb-client dependencies. I've searched enough on this forum but cant find a solution. My webapp pom has a dependency as follows.. dependencies dependency groupIdcom-server/groupId artifactIdcom-server-ejb/artifactId version1/version typeejb-client/type /dependency /dependencies Has anyone solved this isssue? -- View this message in context: http://www.nabble.com/Transitive-dependencies-in-war-plugin.-tf2452739.html#a6838263 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson -- View this message in context: http://www.nabble.com/Transitive-dependencies-in-war-plugin.-tf2452739.html#a6838444 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson
Re: Transitive dependencies in war-plugin.
Hi, Dmystery wrote: IS there a way to turn off transitive dependencies while packaging a war file? I want my ejb-client in the war-packaging but it brings along all the ejb-client dependencies. I've searched enough on this forum but cant find a solution. My webapp pom has a dependency as follows.. dependencies dependency groupIdcom-server/groupId artifactIdcom-server-ejb/artifactId version1/version typeejb-client/type /dependency /dependencies Has anyone solved this isssue? unfortunately the ejb-client has exactly the same dependencies as the ejb itself, there's no mechanism in M2 to define only a subset for the client-jar. You can exclude unwanted deps though: dependency groupIdcom-server/groupId artifactIdcom-server-ejb/artifactId version1/version typeejb-client/type exclusions exclusion dependency groupIdcommons-logging/groupId artifactIdcommons-logging/artifactId /dependency /exclusion /exclusions /dependency but you have to repeat such an exclusion section everywhere you are using the client jar (and you have to realize that this section is global i.e. may exclude such a dep for the complete module even if it is referenced in another transitive dep). - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Transitive dependencies in war-plugin.
Thanks! I was not aware of the warSourceExcludes But, wont it be great to just turn-off the t-dependency by a transitive/transitive element. dependency groupIdcom-server/groupId artifactIdcom-server-ejb/artifactId version1/version typeejb-client/type transitivefalse/transitive /dependency Zarar Siddiqi wrote: If you are using the maven-war-plugin, you can use the warSourceExcludes elements to exclude jars from your war. They will still appear in the work directory (where the war is assembled) but once your war is bundled up, they won't be there. You should also look at dependentWarExcludes. http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html Here's some usage: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0.1/version configuration warSourceExcludes WEB-INF/lib/antlr-2*,WEB-INF/lib/avalon*/warSourceExcludes warName${app.name}/warName containerConfigXML${war.dir}/context.xml/containerConfigXML webXml${war.dir}/WEB-INF/web.xml/webXml /configuration /plugin Zarar Dmystery wrote: IS there a way to turn off transitive dependencies while packaging a war file? I want my ejb-client in the war-packaging but it brings along all the ejb-client dependencies. I've searched enough on this forum but cant find a solution. My webapp pom has a dependency as follows.. dependencies dependency groupIdcom-server/groupId artifactIdcom-server-ejb/artifactId version1/version typeejb-client/type /dependency /dependencies Has anyone solved this isssue? -- View this message in context: http://www.nabble.com/Transitive-dependencies-in-war-plugin.-tf2452739.html#a6848538 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]