Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6164649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:01:48+00:00 2026-05-23T22:01:48+00:00

In JBoss AS 7, a Web application that depends on libraries contained in the

  • 0

In JBoss AS 7, a Web application that depends on libraries contained in the AS, must declare those dependencies in META-INF/MANIFEST.MF like this:

Dependencies: <package-name>

Example:

Dependencies: org.slf4j

(This is comparable to Import-Package: for OSGi.)
Further information can be found in the articles about migration from older versions, class loading and implicit module dependencies for deployments

The project is built with Maven. All dependencies included in the AS are declared with scope ‘provided’.

Now the question

Is there a simple way to create this list of dependencies automatically with Maven?

Only dependencies with declared scope ‘provided’ should be included, because all others are already included in the WAR.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T22:01:49+00:00Added an answer on May 23, 2026 at 10:01 pm

    Those dependencies are declared by names which maven artifacts don’t have any mappings to. You probably could keep groupId in sync with jboss module names but I’m not sure if it’s a good idea. And I still can’t think of any automated solution.

    But there is a place where you can manage the configuration by hand, as described in one of the sources you provided in your question:

       <build>
           ...
           <plugins>
             <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-war-plugin</artifactId>
               <configuration>
                  <archive>
                     <manifestEntries>
                        <Dependencies>org.slf4j</Dependencies>
                     </manifestEntries>  
                  </archive>
               </configuration>
             </plugin>   
           </plugins>
        </build>
    

    I hope someone comes up with a plugin to make it less cumbersome.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've developed a web application that worked fine in JBoss 4. Now, I need
I have a web application running in a jboss application server (But it is
I have a web application deployed on a jboss server running on a unix
I try to run jsf application in myeclipse using jboss web server and following
I have a jboss web service that is getting the wrong initial context. I
What is the relation between web.xml and jboss-web.xml ? Seems like: Jboss-web.xml specifies the
I have a web app on JBoss 4.2.3 and I'd like it to send
We have JSF web application that generates XLS file and gives user link to
I have a web application deployed on JBoss 5.1.0 with a couple of webservices.
I am using Jboss and Netbeans to create Spring MVC web application on windows.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.