Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deployment failed: repository element was not specified in the POM inside distributionManagement el

 
jot caur
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using jboss server and try to deploy my application in Intellij Idea but unfortunately it is compling successfully but while deploying i am recieving the foolowing error.

[INFO] Total time: 2.637s
[INFO] Finished at: Sat Sep 07 15:45:30 IST 2013
[INFO] Final Memory: 3M/7M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project pinnacle: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are attempting to do a "deploy". A deploy in Maven terminology means "copy the target artifacts(s) to the remote repository." The error message means that you never identified the remote repository. A remote repository would be a Maven repository server such as Nexus or Artifactory. Or even Maven Central if you have sufficient access rights.

Note that this use of the term "deploy" is vastly different from what you are used to in a Java EE environment, where "deploy" means "tell the app server about my application so that it can start running it and make it available for people to access via a browser or some other means."

Thus asking Maven to "deploy" you application will not result in it "deploying" to the app server. To accomplish a deploy to an app server, you need a special plugin, such as the jboss plugin or cargo.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic