Include Common JSPs in multiple wars
How do you include commons JSPs in multiple wars? We have a common module that produces a jar instead of a war, but I need to include all the JSPs in this module in all my other webapps. I tried using the resource tag, but that places the files in WEB-INF/classes. Is there another tag that I am missing from the documentation? Thanks, Doug Tanner Configuration Management Engineer Benefitfocus.com, Inc. BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is intended only for the individual or entity to which it is addressed and may contain information that is confidential and protected by law. Unauthorized review, use, disclosure, or dissemination of this communication or its contents in any way is prohibited and may be unlawful. If you are not the intended recipient or a person responsible for delivering this message to an intended recipient, please notify the original sender immediately by e-mail or telephone, return the original message to the original sender or to [EMAIL PROTECTED], and destroy all copies or derivations of the original message. Thank you. (BFeComNote Rev. 08/01/2005) ***
Re: Include Common JSPs in multiple wars
On 4/3/07, Doug Tanner [EMAIL PROTECTED] wrote: How do you include commons JSPs in multiple wars? We have a common module that produces a jar instead of a war, but I need to include all the JSPs in this module in all my other webapps. I tried using the resource tag, but that places the files in WEB-INF/classes. Is there another tag that I am missing from the documentation? There's no way to 'pass' those jsp to your 'war' projects from within 'jar' project (at least I do not know such a way). But you may change packaging of your 'shared' project from 'jar' to 'war'. Then this 'shared' war will contain all required jsp files and compiled classes, under WEB-INF/classes. Then, for your 'war' projects maven will include all of this (both classes and jsp files) in created war and that will be, what are you looking for, HTH, Tomek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Include Common JSPs in multiple wars
Directory Structure: Webapps -common -src -main -webapp -[Bunch of JSPs] -pom.xml -module1 -src -main -java -webapp -[Bunch of JSPs] -pom.xml -module2 -src -main -java -webapp -[Bunch of JSPs] -pom.xml How do I include the JSPs from the common module in module1.war and module2.war? Doug Tanner -Original Message- From: Tomasz Pik [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 03, 2007 12:24 PM To: Maven Users List Subject: Re: Include Common JSPs in multiple wars On 4/3/07, Doug Tanner [EMAIL PROTECTED] wrote: How do you include commons JSPs in multiple wars? We have a common module that produces a jar instead of a war, but I need to include all the JSPs in this module in all my other webapps. I tried using the resource tag, but that places the files in WEB-INF/classes. Is there another tag that I am missing from the documentation? There's no way to 'pass' those jsp to your 'war' projects from within 'jar' project (at least I do not know such a way). But you may change packaging of your 'shared' project from 'jar' to 'war'. Then this 'shared' war will contain all required jsp files and compiled classes, under WEB-INF/classes. Then, for your 'war' projects maven will include all of this (both classes and jsp files) in created war and that will be, what are you looking for, HTH, Tomek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is intended only for the individual or entity to which it is addressed and may contain information that is confidential and protected by law. Unauthorized review, use, disclosure, or dissemination of this communication or its contents in any way is prohibited and may be unlawful. If you are not the intended recipient or a person responsible for delivering this message to an intended recipient, please notify the original sender immediately by e-mail or telephone, return the original message to the original sender or to [EMAIL PROTECTED], and destroy all copies or derivations of the original message. Thank you. (BFeComNote Rev. 08/01/2005) *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Include Common JSPs in multiple wars
Problem solved. Solution: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0/version configuration webResources resource !-- this is relative to the pom.xml directory -- directory../common/src/main/webapp/directory /resource /webResources /configuration /plugin Doug Tanner -Original Message- From: Doug Tanner [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 03, 2007 1:00 PM To: Maven Users List Subject: RE: Include Common JSPs in multiple wars Directory Structure: Webapps -common -src -main -webapp -[Bunch of JSPs] -pom.xml -module1 -src -main -java -webapp -[Bunch of JSPs] -pom.xml -module2 -src -main -java -webapp -[Bunch of JSPs] -pom.xml How do I include the JSPs from the common module in module1.war and module2.war? Doug Tanner -Original Message- From: Tomasz Pik [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 03, 2007 12:24 PM To: Maven Users List Subject: Re: Include Common JSPs in multiple wars On 4/3/07, Doug Tanner [EMAIL PROTECTED] wrote: How do you include commons JSPs in multiple wars? We have a common module that produces a jar instead of a war, but I need to include all the JSPs in this module in all my other webapps. I tried using the resource tag, but that places the files in WEB-INF/classes. Is there another tag that I am missing from the documentation? There's no way to 'pass' those jsp to your 'war' projects from within 'jar' project (at least I do not know such a way). But you may change packaging of your 'shared' project from 'jar' to 'war'. Then this 'shared' war will contain all required jsp files and compiled classes, under WEB-INF/classes. Then, for your 'war' projects maven will include all of this (both classes and jsp files) in created war and that will be, what are you looking for, HTH, Tomek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** ** BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is intended only for the individual or entity to which it is addressed and may contain information that is confidential and protected by law. Unauthorized review, use, disclosure, or dissemination of this communication or its contents in any way is prohibited and may be unlawful. If you are not the intended recipient or a person responsible for delivering this message to an intended recipient, please notify the original sender immediately by e-mail or telephone, return the original message to the original sender or to [EMAIL PROTECTED], and destroy all copies or derivations of the original message. Thank you. (BFeComNote Rev. 08/01/2005) ** * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is intended only for the individual or entity to which it is addressed and may contain information that is confidential and protected by law. Unauthorized review, use, disclosure, or dissemination of this communication or its contents in any way is prohibited and may be unlawful. If you are not the intended recipient or a person responsible for delivering this message to an intended recipient, please notify the original sender immediately by e-mail or telephone, return the original message to the original sender or to [EMAIL PROTECTED], and destroy all copies or derivations of the original message. Thank you. (BFeComNote Rev. 08/01/2005) *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Include Common JSPs in multiple wars
A war overlay would be the cleanest solution: http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html Mark On 03/04/07, Doug Tanner [EMAIL PROTECTED] wrote: Problem solved. Solution: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0/version configuration webResources resource !-- this is relative to the pom.xml directory -- directory../common/src/main/webapp/directory /resource /webResources /configuration /plugin Doug Tanner -Original Message- From: Doug Tanner [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 03, 2007 1:00 PM To: Maven Users List Subject: RE: Include Common JSPs in multiple wars Directory Structure: Webapps -common -src -main -webapp -[Bunch of JSPs] -pom.xml -module1 -src -main -java -webapp -[Bunch of JSPs] -pom.xml -module2 -src -main -java -webapp -[Bunch of JSPs] -pom.xml How do I include the JSPs from the common module in module1.war and module2.war? Doug Tanner -Original Message- From: Tomasz Pik [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 03, 2007 12:24 PM To: Maven Users List Subject: Re: Include Common JSPs in multiple wars On 4/3/07, Doug Tanner [EMAIL PROTECTED] wrote: How do you include commons JSPs in multiple wars? We have a common module that produces a jar instead of a war, but I need to include all the JSPs in this module in all my other webapps. I tried using the resource tag, but that places the files in WEB-INF/classes. Is there another tag that I am missing from the documentation? There's no way to 'pass' those jsp to your 'war' projects from within 'jar' project (at least I do not know such a way). But you may change packaging of your 'shared' project from 'jar' to 'war'. Then this 'shared' war will contain all required jsp files and compiled classes, under WEB-INF/classes. Then, for your 'war' projects maven will include all of this (both classes and jsp files) in created war and that will be, what are you looking for, HTH, Tomek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** ** BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is intended only for the individual or entity to which it is addressed and may contain information that is confidential and protected by law. Unauthorized review, use, disclosure, or dissemination of this communication or its contents in any way is prohibited and may be unlawful. If you are not the intended recipient or a person responsible for delivering this message to an intended recipient, please notify the original sender immediately by e-mail or telephone, return the original message to the original sender or to [EMAIL PROTECTED], and destroy all copies or derivations of the original message. Thank you. (BFeComNote Rev. 08/01/2005) ** * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is intended only for the individual or entity to which it is addressed and may contain information that is confidential and protected by law. Unauthorized review, use, disclosure, or dissemination of this communication or its contents in any way is prohibited and may be unlawful. If you are not the intended recipient or a person responsible for delivering this message to an intended recipient, please notify the original sender immediately by e-mail or telephone, return the original message to the original sender or to [EMAIL PROTECTED], and destroy all copies or derivations of the original message. Thank you. (BFeComNote Rev. 08/01/2005) *** - 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]
How to use war overlay approach with Maven 1.0??? (was: Include Common JSPs in multiple wars)
Subject says it all - does anyone have any examples of how this might be accomplished using Maven 1.0 ? On 4/3/07, Mark Hobson [EMAIL PROTECTED] wrote: A war overlay would be the cleanest solution: http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html Mark