WAR dependency in a WAR project (M2) does not compile
Hi! I have a pom that contains a dependency of type war (lets call it dep:dep:war). The dep:dep:war contains classes that I need for compilation in my project. When I run the goal compile the dep:dep:war is downloaded but not included in the compiler plugin's classpath. Am I missing something here? Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: WAR dependency in a WAR project (M2) does not compile
No, JARs are the standard way to share code. You can't share code in a WAR or EAR. Move the common code into a JAR module. -Original Message- From: Martin Goldhahn [mailto:[EMAIL PROTECTED] Sent: Monday, July 31, 2006 10:43 AM To: users@maven.apache.org Subject: WAR dependency in a WAR project (M2) does not compile Hi! I have a pom that contains a dependency of type war (lets call it dep:dep:war). The dep:dep:war contains classes that I need for compilation in my project. When I run the goal compile the dep:dep:war is downloaded but not included in the compiler plugin's classpath. Am I missing something here? Martin - 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: WAR dependency in a WAR project (M2) does not compile
I believe the WAR plugin allows you to overlay one War over another. I have seen this discussed on this list recently but don't know any details myself, so you'll need to search the list at Nabble for overlay to find more info. Wayne On 7/31/06, Mike Perham [EMAIL PROTECTED] wrote: No, JARs are the standard way to share code. You can't share code in a WAR or EAR. Move the common code into a JAR module. -Original Message- From: Martin Goldhahn [mailto:[EMAIL PROTECTED] Sent: Monday, July 31, 2006 10:43 AM To: users@maven.apache.org Subject: WAR dependency in a WAR project (M2) does not compile Hi! I have a pom that contains a dependency of type war (lets call it dep:dep:war). The dep:dep:war contains classes that I need for compilation in my project. When I run the goal compile the dep:dep:war is downloaded but not included in the compiler plugin's classpath. Am I missing something here? Martin - 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]