File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes  Deployment failed: repository element was not specified in the POM inside distributionManagement el Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark " Deployment failed: repository element was not specified in the POM inside distributionManagement el" Watch " Deployment failed: repository element was not specified in the POM inside distributionManagement el" New topic
Author

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

jot caur
Greenhorn

Joined: Sep 06, 2013
Posts: 5
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

Joined: May 14, 2008
Posts: 5842
    
    7

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.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deployment failed: repository element was not specified in the POM inside distributionManagement el