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 6772087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:30:29+00:00 2026-05-26T15:30:29+00:00

The situation I want to integrate a gradle script to specify the dependencies for

  • 0

The situation

I want to integrate a gradle script to specify the dependencies for JBoss AS 6 and use that script to create eclipse projects. We are currently using gradle for a project. It builds fine, and runs tests correctly, but when we try to import it into eclipse, we get errors. We have a property variable called jbossHome. I dumped all of the libs into one directory for jboss6 and that is what jbossHome points to.

repositories{
    fileTree(dir: jbossHome)  //include required JBoss jars
}

dependencies {
    providedCompile fileTree(dir: jbossHome)  // include the required JBoss jars    
}

The problem

When we import into Eclipse, we get the following errors:

  • Java compiler level does not match the version of the installed Java project facet.
  • Target runtime jboss-6.0.0.Final Runtime is not defined.

We have both a web service project and a jms project that we need to set this up for.

Question #1
– How can I setup my project to use the maven repo and include/exclude the correct jars similar to this jboss 7 example?

Question #2
– If using the Maven repos, is there a way to specify it to cache it to a specific directory so it doesn’t download every time for integration into a CI server like Jenkins?

Note: I have been jumping around projects and languages, and I am not that familiar with Gradle or Maven. I am pretty familiar with CMake, but AFAIK there isn’t a similar concept with dependencies and maven repos.

  • 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-26T15:30:29+00:00Added an answer on May 26, 2026 at 3:30 pm

    The following gradle worked for me. I was also trying to deploy via war so I needed to make sure that I used providedCompile instead of compile otherwise every jboss .jar file ended up in the war file.

    repositories {    
    
       mavenCentral()
       mavenRepo urls: "http://repository.jboss.org/nexus/content/groups/public"
    
    }
    
    
    dependencies {
       //*****Note - providedCompile means to use it during compile, but don't include the war
    
       //jboss and hornetq 
       providedCompile ("org.jboss.jbossas:jboss-as-client:6.0.0.Final") { 
          exclude group: 'org.hibernate', module: 'hibernate-annotations'  //error if not excluded
          exclude group: 'com.sun.istack', module: 'istack-commons-runtime'  //error if not excluded
    
       }
       providedCompile ("org.hornetq:hornetq-jms:2.1.2.Final")
    
    
    }
    

    I hope this can help someone else.

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

Sidebar

Related Questions

I have a situation where I want to create a signature of a data
I am in a situation where I want to restructure my site's urls. That
I've got a situation where I want to use an associative container, and I
I have an app that plays radio stations, and I now want to integrate
Situation: I want to provide a website service where users can enter some data
I have a sort of unique situation....I want to populate a ModelChoiceField based of
So the situation is: I want to optimize my code some for doing counting
I have a situation where I want to copy the output assembly from one
I've got a situation where I want to have a master list at the
I have a situation where I want certain code to be executed no matter

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.