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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:40:18+00:00 2026-06-11T06:40:18+00:00

I have Eclipse Juno and m2e installed. It is configured to use external maven

  • 0

I have Eclipse Juno and m2e installed. It is configured to use external maven installation directory. This directory has settings.xml file which I probably should put configuration in. It is said in Jboss manual that their repository should be described within <profiles> section. I have one in my settings.xml but it is (1) commented out and (2) named after jdk14, while I am using 6 or 7.

My questions are:

How does maven work without any profile configured? Which profile it uses by deafault?

If I uncomment 1.4 profile and put jboss description there, will it be used? Who decide which profile to use in eclipse?

May I create my own profile ID and put it into <activeProfiles> section?

How maven knows any repository without any profile? Where is “central repository” described? Can I put jboss repository there instead of profile section?

UPDATE 1

I have created the following repository entry user-level config but it does not work:

<profiles>
    <profile>
        <id>env-dev</id>

        <activation>
            <activeByDefault>true</activeByDefault>
        </activation>


        <repositories>
            <repository>
                <id>jboss-public-repository-group</id>
                <name>JBoss Public Repository Group</name>
                <url>http://repository.jboss.org/nexus/content/groups/public/</url>
                <layout>default</layout>
                <releases>
                    <enabled>true</enabled>
                    <updatePolicy>never</updatePolicy>
                </releases>
                <snapshots>
                    <enabled>true</enabled>
                    <updatePolicy>never</updatePolicy>
                </snapshots>
            </repository>
        </repositories>
    </profile>


</profiles>

I.e. I can’t find version 4.0 of hibernate in dependencies search, only up to 3.6, which means only central repository is searched.

  • 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-06-11T06:40:20+00:00Added an answer on June 11, 2026 at 6:40 am

    How does maven work without any profile configured?

    • A profile is not mandatory, you may not need one. Not all projects need a profile.

    If I uncomment 1.4 profile and put jboss description there, will it be used?

    • When you run maven, if you need to specify a profile, you should do it in the command line: maven install -Pmy-profile, for instance. If you don’t want to specify the profile each time, you should configure it as default. You can create the profile in settings.xml or pom.xml. Take care with this. If you specify a default profile in settigs.xml, it would be the default profile for all Maven projects. If you do it in pom.xml, it would be the default for a project.

      <profile>
          <id>my-profile</id>
          <activation>
              <activeByDefault>true</activeByDefault>
          </activation>
          ...
      </profile>
      

    Who decide which profile to use in eclipse?

    • You 😉 By the way, let’s clarifier this. Is Maven the one who can need it, not Eclipse. If you want to run some Maven goal using Eclipse you should create a Maven “Run Configurations” and put the profile you want to be used in the “Profile” field. If you want to run Maven using the command line, it is as I describe above.

    May I create my own profile ID and put it into <activeProfiles> section?

    • Yes, <activeProfiles> is another way for activating profiles by default. See doc.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've just installed Eclipse Juno with m2e installed. Then, I've created a new Maven
I'm trying to add Apache server to Eclipse(Juno). I have installed Apache server 7.0,
I am struggling with maven in Eclipse even though I have m2e. I checked
I have installed Eclipse Juno for creating Android apps, but when I try to
I have been trying to deploy an Apache Axis2 WebService using Eclipse Juno, Maven
I'm using Eclipse Juno IDE and phpMyAdmin. I have java application, for this application
I'm kind of new to Eclipse. So I installed the latest Eclipse Juno, m2e
I have Eclipse 4.2 (Juno) + PDT 3.1.1 freshly installed and i've selected PHP
I have recently downloaded Eclipse Juno and installed latest Groovy plugin. Now here is
I have Eclipse: eclipse-jee-juno-win32 . I need to create Maven project with it, but

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.