RE: How to include jars and add them into the MANIFEST.MF/Class-Path attribute?
FYI, not from maven, but using custom Ant tasks, we have relied on manifest classpath in webapps & ejbjars in * was 4 * was 5 * weblogic 7 * weblogic 8 * jboss 3.2.X It definitely works, and since it this proposed maven support would be optional, even if there are aplication servers or web containers that don't support it, that shouldn't prevent it being a feature (i.e. just don't use war.manifest.classpath if your container doesn't support it) NB AFAIK this is only relevant for applications servers since the manifest classpath is relative to the ear so for standalone webapps I dont think this is relevant (but I could be wrong) Matthew > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, December 15, 2003 2:17 PM > To: Maven Users List > Subject: RE: How to include jars and add them into the > MANIFEST.MF/Class-Path attribute? > > > > Hi Matthew, > > I also had the same problem, because I include some common jar > files in the > ear file. Hence I fully support your suggestion. However, I > seems to read > from somewhere that the manifest classpaths is not supported in certain > apps server, so I kind of wonder if this is a standard J2EE specification. > > Anyway, would appreciate if you could send me the codes of your modified > war-plugin. Lazy to do the cut and paste :) > > Regards, > Eng Hoe > App Dev-DCS > SGX-IT Division > > DID: (65) 62368963 > FAX: (65) 64388840 > email: [EMAIL PROTECTED] > > > > > "J. Matthew > > Pryor" To: "Maven Users > List" <[EMAIL PROTECTED]> > > yahoo.com>Subject: RE: How to > include jars and add them into the >MANIFEST.MF/Class-Path > attribute? > 15/12/2003 > > 11:06 AM > > Please respond > > to "Maven Users > > List" > > > > > > > > > > As far as I can see, the CVS HEAD version of the war plugin does not > support > manifest classpaths for webapps > > Now I can see how for a small project, it is convenievnt to use WEBAPP\lib > for webapps, but if I have a lot of webapps that use the same library, i > get > one copy of it in the ear for each webapp > > For large projects, this will significantly increase the size of the ear > (unecessarily) > > IMO manifest classpath is the best way to deal with shared libraries from > both webapps and ejbjars, so I am wondeirng if there is any plan > to support > manifest classpath for webapps > > I have a modified local version of the war plugin that works > correctly with > > true > > Anyone interested. It was a simple copy & paste job from the ejb plugin. > > Interestingly the serverside maven j2e tutorial uses > true even though AFAICT > there is no support for it currently > > Matthew > > > -Original Message- > > From: Rademacher Tobias [mailto:[EMAIL PROTECTED] > > Sent: Friday, November 21, 2003 10:04 PM > > To: 'Maven Users List' > > Subject: AW: How to include jars and add them into the > > MANIFEST.MF/Class-Path attribute? > > > > > > For WAR you only only have to provide lib directory within the > > WAR File. It can contain any depending JAR you need. This is > > standard for WAR files (startig at 2.3 Servlet Spec I think). For > > EJB-JARS and EAR we don't have such a standard currently. You > > have to provide the relative path in the Manifest of the EJB-JAR > > if you want to force containers to load the dependent JAR Files. > > > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Gesendet am: Freitag, 21. November 2003 11:48 > > > An: [EMAIL PROTECTED] > Betreff: RE: How to include jars and add them > into the > MANIFEST.MF/Class-Path attribute? > > Problem with the > ear.bundle is, that the jar is installed as > java module > (which is > reserved for e.g. ejb client jars). > > I can manually copy the jar via > the copy-deps task, but that doesn't > solve the problem of the classpath > (escpecially for war's, because > there's no war.manifest.classpath > property). > > Cheers, > simon > > > -Original Message- > From: > R > a n e s [mailto:[EMAIL PROTECTED] > Sent: Freitag, 21. November 2003 > 10:51 > To: Maven Users List > Subject: Re: How to include jars and add > them > into the > MANIFEST.
RE: How to include jars and add them into the MANIFEST.MF/Class-Path attribute?
Hi Matthew, I also had the same problem, because I include some common jar files in the ear file. Hence I fully support your suggestion. However, I seems to read from somewhere that the manifest classpaths is not supported in certain apps server, so I kind of wonder if this is a standard J2EE specification. Anyway, would appreciate if you could send me the codes of your modified war-plugin. Lazy to do the cut and paste :) Regards, Eng Hoe App Dev-DCS SGX-IT Division DID: (65) 62368963 FAX: (65) 64388840 email: [EMAIL PROTECTED] "J. Matthew Pryor"To: "Maven Users List" <[EMAIL PROTECTED]> Subject: RE: How to include jars and add them into the MANIFEST.MF/Class-Path attribute? 15/12/2003 11:06 AM Please respond to "Maven Users List" As far as I can see, the CVS HEAD version of the war plugin does not support manifest classpaths for webapps Now I can see how for a small project, it is convenievnt to use WEBAPP\lib for webapps, but if I have a lot of webapps that use the same library, i get one copy of it in the ear for each webapp For large projects, this will significantly increase the size of the ear (unecessarily) IMO manifest classpath is the best way to deal with shared libraries from both webapps and ejbjars, so I am wondeirng if there is any plan to support manifest classpath for webapps I have a modified local version of the war plugin that works correctly with true Anyone interested. It was a simple copy & paste job from the ejb plugin. Interestingly the serverside maven j2e tutorial uses true even though AFAICT there is no support for it currently Matthew > -Original Message- > From: Rademacher Tobias [mailto:[EMAIL PROTECTED] > Sent: Friday, November 21, 2003 10:04 PM > To: 'Maven Users List' > Subject: AW: How to include jars and add them into the > MANIFEST.MF/Class-Path attribute? > > > For WAR you only only have to provide lib directory within the > WAR File. It can contain any depending JAR you need. This is > standard for WAR files (startig at 2.3 Servlet Spec I think). For > EJB-JARS and EAR we don't have such a standard currently. You > have to provide the relative path in the Manifest of the EJB-JAR > if you want to force containers to load the dependent JAR Files. > > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Gesendet am: Freitag, 21. November 2003 11:48 > An: [EMAIL PROTECTED] > Betreff: RE: How to include jars and add them into the > MANIFEST.MF/Class-Path attribute? > > Problem with the ear.bundle is, that the jar is installed as > java module > (which is reserved for e.g. ejb client jars). > > I can manually copy the jar via the copy-deps task, but that doesn't > solve the problem of the classpath (escpecially for war's, because > there's no war.manifest.classpath property). > > Cheers, > simon > > > -----Original Message- > From: R a n e s [mailto:[EMAIL PROTECTED] > Sent: Freitag, 21. November 2003 10:51 > To: Maven Users List > Subject: Re: How to include jars and add them into the > MANIFEST.MF/Class-Path attribute? > > > Hi, > You can set the "ear.bundle" to true. > >>common > jar > > true > >> > Regards, > Ranes. > > - Original Message - > From: <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, November 21, 2003 2:57 PM > Subject: How to include jars and add them into the > MANIFEST.MF/Class-Path > attribute? > > > When building an ear, i'd like to include the dependent jar > fi
RE: How to include jars and add them into the MANIFEST.MF/Class-Path attribute?
> Now I can see how for a small project, it is convenievnt to use WEBAPP\lib > for webapps, but if I have a lot of webapps that use the same > library, i get > one copy of it in the ear for each webapp Sorry I meant to say WEB-INF/lib - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to include jars and add them into the MANIFEST.MF/Class-Path attribute?
As far as I can see, the CVS HEAD version of the war plugin does not support manifest classpaths for webapps Now I can see how for a small project, it is convenievnt to use WEBAPP\lib for webapps, but if I have a lot of webapps that use the same library, i get one copy of it in the ear for each webapp For large projects, this will significantly increase the size of the ear (unecessarily) IMO manifest classpath is the best way to deal with shared libraries from both webapps and ejbjars, so I am wondeirng if there is any plan to support manifest classpath for webapps I have a modified local version of the war plugin that works correctly with true Anyone interested. It was a simple copy & paste job from the ejb plugin. Interestingly the serverside maven j2e tutorial uses true even though AFAICT there is no support for it currently Matthew > -Original Message- > From: Rademacher Tobias [mailto:[EMAIL PROTECTED] > Sent: Friday, November 21, 2003 10:04 PM > To: 'Maven Users List' > Subject: AW: How to include jars and add them into the > MANIFEST.MF/Class-Path attribute? > > > For WAR you only only have to provide lib directory within the > WAR File. It can contain any depending JAR you need. This is > standard for WAR files (startig at 2.3 Servlet Spec I think). For > EJB-JARS and EAR we don't have such a standard currently. You > have to provide the relative path in the Manifest of the EJB-JAR > if you want to force containers to load the dependent JAR Files. > > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Gesendet am: Freitag, 21. November 2003 11:48 > An: [EMAIL PROTECTED] > Betreff: RE: How to include jars and add them into the > MANIFEST.MF/Class-Path attribute? > > Problem with the ear.bundle is, that the jar is installed as > java module > (which is reserved for e.g. ejb client jars). > > I can manually copy the jar via the copy-deps task, but that doesn't > solve the problem of the classpath (escpecially for war's, because > there's no war.manifest.classpath property). > > Cheers, > simon > > > -Original Message- > From: R a n e s [mailto:[EMAIL PROTECTED] > Sent: Freitag, 21. November 2003 10:51 > To: Maven Users List > Subject: Re: How to include jars and add them into the > MANIFEST.MF/Class-Path attribute? > > > Hi, > You can set the "ear.bundle" to true. > >>common > jar > > true > >> > Regards, > Ranes. > > - Original Message - > From: <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, November 21, 2003 2:57 PM > Subject: How to include jars and add them into the > MANIFEST.MF/Class-Path > attribute? > > > When building an ear, i'd like to include the dependent jar > files in the > lib dir of the ear and add them to the Class-Path of the including > applications. > Is there any easy way to do so? > > > Cheers, > simon > > - > 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: How to include jars and add them into the MANIFEST.MF/Class-Path attribute?
I have a WAR, JAR, EJB, and even a SAR project. In my EAR I set these dependencies, they all seem to be able to find each other when the EAR is deployed (JBoss). Of course I have to arrange the build in the correct order, for example the JAR project has to be built first since the other projects include stuff from the jar package etc. ${pom.groupId} warproject 1.0 war true client ${pom.groupId} ejbproject ejb 1.0 true true ${pom.groupId} hiberhagel 1.0 sar true true ${pom.groupId} hageljar 1.0 true true - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 21, 2003 2:47 AM Subject: RE: How to include jars and add them into the MANIFEST.MF/Class-Path attribute? Problem with the ear.bundle is, that the jar is installed as java module (which is reserved for e.g. ejb client jars). I can manually copy the jar via the copy-deps task, but that doesn't solve the problem of the classpath (escpecially for war's, because there's no war.manifest.classpath property). Cheers, simon -Original Message- From: R a n e s [mailto:[EMAIL PROTECTED] Sent: Freitag, 21. November 2003 10:51 To: Maven Users List Subject: Re: How to include jars and add them into the MANIFEST.MF/Class-Path attribute? Hi, You can set the "ear.bundle" to true. common jar true Regards, Ranes. - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 21, 2003 2:57 PM Subject: How to include jars and add them into the MANIFEST.MF/Class-Path attribute? When building an ear, i'd like to include the dependent jar files in the lib dir of the ear and add them to the Class-Path of the including applications. Is there any easy way to do so? Cheers, simon - 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: How to include jars and add them into the MANIFEST.MF/Class-Path attribute?
Problem with the ear.bundle is, that the jar is installed as java module (which is reserved for e.g. ejb client jars). I can manually copy the jar via the copy-deps task, but that doesn't solve the problem of the classpath (escpecially for war's, because there's no war.manifest.classpath property). Cheers, simon -Original Message- From: R a n e s [mailto:[EMAIL PROTECTED] Sent: Freitag, 21. November 2003 10:51 To: Maven Users List Subject: Re: How to include jars and add them into the MANIFEST.MF/Class-Path attribute? Hi, You can set the "ear.bundle" to true. common jar true Regards, Ranes. - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 21, 2003 2:57 PM Subject: How to include jars and add them into the MANIFEST.MF/Class-Path attribute? When building an ear, i'd like to include the dependent jar files in the lib dir of the ear and add them to the Class-Path of the including applications. Is there any easy way to do so? Cheers, simon - 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: How to include jars and add them into the MANIFEST.MF/Class-Path attribute?
Hi, You can set the "ear.bundle" to true. common jar true Regards, Ranes. - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 21, 2003 2:57 PM Subject: How to include jars and add them into the MANIFEST.MF/Class-Path attribute? When building an ear, i'd like to include the dependent jar files in the lib dir of the ear and add them to the Class-Path of the including applications. Is there any easy way to do so? Cheers, simon - 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]