repository element was not specified in the POM inside distributionManagement element or in -DaltDep loymentRepository=id::layout::url parameter

Mertcan

I'm having a problem while deploying and here is the error message I get:

[INFO]
[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ core ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.296 s
[INFO] Finished at: 2014-11-26T17:05:00+02:00
[INFO] Final Memory: 13M/244M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:
deploy (default-deploy) on project core: Deployment failed: repository element w
as not specified in the POM inside distributionManagement element or in -DaltDep
loymentRepository=id::layout::url parameter -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception

I checked some resources on the internet and none of them worked for my case. I think it's related to my pom.xml, so here are its related parts:

<build>
        <plugins>
              <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>2.3.2</version>
                    <configuration>
                         <source>1.7</source>
                         <target>1.7</target>
                    </configuration>
              </plugin>
        </plugins>
  </build>

  <repositories>
        <repository>
              <id>repository.springframework.maven.release</id>
              <name>Spring Framework Maven Release Repository</name>
              <url>http://maven.springframework.org/release</url>
        </repository>
        <repository>
              <id>Appid</id>
              <name>AppName</name>
              <url>http://IPaddress/nexus/content/repositories/Myapps/</url>
        </repository>
  </repositories>

What do you think the problem might be? Thanks in advance.

jchampemont

You should include the repository where you want to deploy in the distribution management section of the pom.xml.

Example:

<project xmlns="http://maven.apache.org/POM/4.0.0"   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
                      http://maven.apache.org/xsd/maven-4.0.0.xsd">
...   
<distributionManagement>
    <repository>
      <uniqueVersion>false</uniqueVersion>
      <id>corp1</id>
      <name>Corporate Repository</name>
      <url>scp://repo/maven2</url>
      <layout>default</layout>
    </repository>
    ...
</distributionManagement>
...
</project>

See Distribution Management

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Scroll element to top of page by clicking anchor inside element or anywhere inside containing div id

From Dev

Give id to html element inside Razor without using class

From Dev

Dynamically add element to layout

From Dev

Extract all the valid URL string inside an element (JavaScript)

From Dev

Opacity CSS on inside element?

From Dev

What is the usage of Maven pom.xml - <tag> element inside of <scm> when you are using git

From Dev

Polymer Access Element Inside of Nested Template by Id

From Dev

addClass to element inside an array

From Dev

Which attribute is applied if both id and class are specified for an element and why?

From Dev

jQuery get the ID of <li> based on clicked element inside of it

From Dev

How to create an element with JavaScript, give it an ID, then create another element inside of it?

From Dev

addEventListener to an element, with the element itself as parameter

From Dev

Using DOM to get element id's inside onclick

From Dev

jQuery change css on a specified element

From Dev

How to pass parent element id as parameter to function on ng-change

From Dev

AngularJS Accessing DOM element by id inside ng-repeat

From Dev

accessing to element id attribute value inside jquery.each

From Dev

Find Element Next to Element With Specified Text

From Dev

How to remove an element/parameter from URL by .htaccess

From Dev

PHP populate form element with url ONLY IF url parameter is present

From Dev

Select element but deselect specified child of element

From Dev

What is use of enabled(snapshot, releases) tag in maven pom's repository element?

From Dev

vanilla js - get ID of element inside another element, which isn't part of the document

From Dev

How to update id and name of html element inside div element?

From Dev

Cannot get element id in javascript inside for loop

From Dev

wrapInner() of body until a specified element

From Dev

Disable distributionManagement in Maven POM

From Dev

Unable to click on specified li element

From Dev

Check if a parameter is specified or not into the URL

Related Related

  1. 1

    Scroll element to top of page by clicking anchor inside element or anywhere inside containing div id

  2. 2

    Give id to html element inside Razor without using class

  3. 3

    Dynamically add element to layout

  4. 4

    Extract all the valid URL string inside an element (JavaScript)

  5. 5

    Opacity CSS on inside element?

  6. 6

    What is the usage of Maven pom.xml - <tag> element inside of <scm> when you are using git

  7. 7

    Polymer Access Element Inside of Nested Template by Id

  8. 8

    addClass to element inside an array

  9. 9

    Which attribute is applied if both id and class are specified for an element and why?

  10. 10

    jQuery get the ID of <li> based on clicked element inside of it

  11. 11

    How to create an element with JavaScript, give it an ID, then create another element inside of it?

  12. 12

    addEventListener to an element, with the element itself as parameter

  13. 13

    Using DOM to get element id's inside onclick

  14. 14

    jQuery change css on a specified element

  15. 15

    How to pass parent element id as parameter to function on ng-change

  16. 16

    AngularJS Accessing DOM element by id inside ng-repeat

  17. 17

    accessing to element id attribute value inside jquery.each

  18. 18

    Find Element Next to Element With Specified Text

  19. 19

    How to remove an element/parameter from URL by .htaccess

  20. 20

    PHP populate form element with url ONLY IF url parameter is present

  21. 21

    Select element but deselect specified child of element

  22. 22

    What is use of enabled(snapshot, releases) tag in maven pom's repository element?

  23. 23

    vanilla js - get ID of element inside another element, which isn't part of the document

  24. 24

    How to update id and name of html element inside div element?

  25. 25

    Cannot get element id in javascript inside for loop

  26. 26

    wrapInner() of body until a specified element

  27. 27

    Disable distributionManagement in Maven POM

  28. 28

    Unable to click on specified li element

  29. 29

    Check if a parameter is specified or not into the URL

HotTag

Archive