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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:10:07+00:00 2026-06-11T05:10:07+00:00

profile is: i use ${artifactId} as profile id. <profiles> <profile> <id>${artifactId}</id> <build> <plugins> <plugin>

  • 0

profile is:
i use ${artifactId} as profile id.

 <profiles>
    <profile>
        <id>${artifactId}</id>
        <build>
            <plugins>
                <plugin>
                    <artifactId>maven-assembly-plugin</artifactId>
                    <version>2.3</version>
                    <configuration>
                        <descriptors>
                            <descriptor>distribution.xml</descriptor>
                        </descriptors>
                    </configuration>
                    <executions>
                        <execution>
                            <id>make-assembly</id>
                            <phase>package</phase>
                            <goals>
                                <goal>single</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </build>
    </profile>

Running maven in shell:
mvn -U -Dmaven.test.skip=true -f pom.xml -Pabc_test clean install

Then I catch an error:

[WARNING] The requested profile “abc_test” could not be activated because it does not exist.
Finish

  • 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-11T05:10:09+00:00Added an answer on June 11, 2026 at 5:10 am

    You have to define all your profiles in pom.xml.

        <profiles>
            <profile>
                <id>dev</id>
                        <activation>
                            <activeByDefault>true</activeByDefault>
                        </activation>
                        <properties>
                            <war.name>dev</war.name>
                        </properties>
            </profile>
            <profile>
                        <id>prod</id>
                        <properties>
                            <war.name>prod</war.name>
                        </properties>
            </profile>
        </profiles>
    

    Here the profile names are dev and prod. You can use ${war.name} as the variable modified by the profile.

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

Sidebar

Related Questions

I have this configuration in my pom <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.2</version> <configuration> <excludes> <exclude>**/logging/*</exclude>
i'm using flyway maven plugin to migrate a database: <build> [...] <plugin> <groupId>com.googlecode.flyway</groupId> <artifactId>flyway-maven-plugin</artifactId>
I am making use of django-registration and django-profile to handle registration and profiles. I
I want to know if I can use datas inside configuration profile generate by
I'm trying to use the glassfish-maven-plugin ( https://maven-glassfish-plugin.dev.java.net/ ) with GlassFish v3 (I'm on
I want to use hudson to build a maven-java project. Some of my integration
I am learning how to use Profile that comes with Membership and Role in
I try to update my profile image and use this code: $connection->post('account/update_profile_image', array('image' =>
We use the ASP.NET profile subsystem to associate key-value pairs of information with users.
If we use an aspx page with a Caching Profile, the server caches images

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.