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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T01:55:55+00:00 2026-06-09T01:55:55+00:00

As per the documentation , the Maven release:perform goal checks out the project and

  • 0

As per the documentation, the Maven release:perform goal checks out the project and then forks a new Maven instance to build it. For some reason the forked instance appears to ignore the user’s settings.xml, which causes an error in my case because that file has the definition of a property that is used to compose the repository’s URL in the parent pom.

  • User’s settings.xml
    Definition of a property in a “nexus” profile which is always active.

    <profiles>
      <profile>
        <id>nexus</id>
        <properties>
          <dist.url>http://host.com/nexus/content/repositories</dist.url>
        </properties>
      </profile>
    </profiles>
    
    <activeProfiles>
      <activeProfile>nexus</activeProfile>
    </activeProfiles>
    
  • Parent’s pom.xml
    Usage of the defined property to compose the repository’s URL.

    <distributionManagement>
      <repository>
        <id>nexus</id>
        <url>${dist.url}/releases</url>
      </repository>
    </distributionManagement>
    
  • Command executed:

    mvn release:perform
    
  • Output (after it indicates having successfully checked out, built, tested and packaged the project):

    [INFO] Uploading: ${dist.url}/releases/com/acme/access/my-project/1.0/my-project-1.0.jar
    [INFO] [INFO] ------------------------------------------------------------------------
    [INFO] [INFO] BUILD FAILURE
    [INFO] [INFO] ------------------------------------------------------------------------
    [INFO] [INFO] Total time: 3.659s
    [INFO] [INFO] Finished at: Wed Aug 01 14:40:23 EDT 2012
    [INFO] [INFO] Final Memory: 21M/307M
    [INFO] [INFO] ------------------------------------------------------------------------
    [INFO] [WARNING] The requested profile "nexus" could not be activated because it does not exist.
    [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project my-project: Failed to deploy artifacts: Could not transfer artifact com.acme.access:my-project:jar:1.0 from/to nexus (${dist.url}/releases): Error transferring file: no protocol: ${dist.url}/releases/com/acme/access/my-project/1.0/my-project-1.0.jar -> [Help 1]
    

Notice how the forked Maven instance is trying to upload to ${dist.url}, which indicates that the property defined in settings.xml was not read. Also, the warning message informs that profile “nexus” was not found. I’m assuming that the main Maven instance passed the profile information down to the forked instance so it knew to look for it, but since it ignored (or did not find) the user’s settings.xml, it could not find that profile.

The only way I have found to circumvent this is to manually specify the location of the settings.xml file through the use of Maven’s command line -s argument “wrapped” by the plugin’s arguments argument, as in

mvn release:perform -Darguments="-s C:\Users\theuser\.m2\settings.xml"

Is the plugin behaving in an expected/correct way? Is there a way to keep the property definition inside the user’s settings.xml without having to specify the location of the file as I have done above?

More information:

  • The problem seems to be specifically with the plugin not finding the user’s settings.xml, as copying the profile information into the global settings.xml does cause it to work.

  • The user’s settings.xml is properly named/created because running help:active-profiles indicates that the profile is active. Manually building and deploying with mvn clean deploy also works correctly (ie, the repository URL is correctly calculated and the artifact is uploaded).

  • 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-09T01:55:57+00:00Added an answer on June 9, 2026 at 1:55 am

    It’s not necessarily a bug in the maven-release-plugin. It seems that you ran into this Maven bug: MNG-5224
    The bug should be fixed in Maven 3.0.4.

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

Sidebar

Related Questions

I just downloaded Grails 2.0.1. Created a new project and then tried adding the
I have setup a new spree 1.0 application as per the documentation and i
Per the documentation , String.Format will throw a FormatException if either (A) the format
I'm using jGesture jquery library for gesture events. As per the documentation, delta and
As per the redtube API Documentation, Method getVideoEmbedCode retrieves embed code (BASE64 encoded) for
Per documentation, Doctrine_Record after saving should set id of newly created record as object
As per the documentation in the following link, we can get the user id
I can't seem to destroy instances of CKEdit per the documentation. Consider the following:
How does one pre-populate a Formish form? The obvious method as per the documentation
I'm trying to use APPCMD to set debug=false in web.config , per the documentation

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.