[seam-dev] Using jboss-logging in your AS7 app

Marek Schmidt maschmid at redhat.com
Thu Aug 18 03:36:47 EDT 2011


On 08/17/2011 08:50 AM, Shane Bryzak wrote:
> Hey guys,
>
> In case you don't know how to do this already, to set up your app to use
> jboss-logging in AS7 you need to add the following line to the
> META-INF/MANIFEST.MF file in your deployment:
>
> Dependencies: org.jboss.logging,org.jboss.logmanager
>
> The easiest way is to automate this as part of your Maven build by
> adding the following snippet to your pom.xml.  Here's an example:
>
> <build>
> <finalName>seam-university</finalName>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <configuration>
> <failOnMissingWebXml>false</failOnMissingWebXml>
> <archive>
> <manifestEntries>
> <Dependencies>org.slf4j.impl,org.jboss.logging,org.jboss.logmanager</Dependencies>
> </manifestEntries>
> </archive>
> </configuration>
> </plugin>
>
> Stuart has also written a great article about class loading in AS7,
> which you can find at
> https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7 - I
> recommend that all Seam devs read it.
>
> Thanks to Stuart for the above tip, and for the article.  Module leads,
> can you please update your examples if they use jboss-logging (most
> examples, if not all will most likely use it indirectly through solder).

Can we please add that directly to the seam-solder-logging jar instead? 
(or whatever it will be called after the logging is moved to its own 
module)

Adding

>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-jar-plugin</artifactId>
>         <configuration>
>           <archive>
>             <manifestEntries>
>                 <Dependencies>org.jboss.logging,org.jboss.logmanager</Dependencies>
>             </manifestEntries>
>           </archive>
>         </configuration>
>       </plugin>


to the solder/logging/pom.xml seems to work...

--
Marek

>
> Shane
>
> _______________________________________________
> seam-dev mailing list
> seam-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/seam-dev



More information about the seam-dev mailing list