Can't build stash-example-async-post-receive-config hook plugin

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Not a bug
    • None
    • Component/s: Repository - Hooks
    • None

      I'm very new to the Atlassian SDK and even maven.

      I'm try to build the following sample which I cloned from

      https://bitbucket.org/atlassian/stash-example-async-post-receive-config.git

      https://developer.atlassian.com/stash/docs/latest/how-tos/repo-hook-examples/async-post-receive-config.html

      and get this error:

      $ atlas-mvn
      Executing: /opt/atlassian-plugin-sdk/apache-maven/bin/mvn
      [INFO] Scanning for projects...
      [INFO] ------------------------------------------------------------------------
      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Error building POM (may not be this project's POM).
      
      
      Project ID: com.atlassian.stash:stash-parent
      POM Location: /home/pickgr/.m2/repository/com/atlassian/stash/stash-parent/2.2.0/stash-parent-2.2.0.pom
      
      Reason: Not a v4.0.0 POM. for project com.atlassian.stash:stash-parent at /home/pickgr/.m2/repository/com/atlassian/stash/stash-parent/2.2.0/stash-parent-2.2.0.pom
      
      
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      org.apache.maven.reactor.MavenExecutionException: Not a v4.0.0 POM. for project com.atlassian.stash:stash-parent at /home/pickgr/.m2/repository/com/atlassian/stash/stash-parent/2.2.0/stash-parent-2.2.0.pom
      

      The file /home/pickgr/.m2/repository/com/atlassian/stash/stash-parent/2.2.0/stash-parent-2.2.0.pom looks like this which doesn't look right:

      <html>
      <head><title>301 Moved Permanently</title></head>
      <body bgcolor="white">
      <center><h1>301 Moved Permanently</h1></center>
      <hr><center>nginx/0.6.39</center>
      </body>
      </html>
      

      I'm using

      $ atlas-version
      
      ATLAS Version:    4.1.6
      ATLAS Home:       /opt/atlassian-plugin-sdk
      ATLAS Scripts:    /opt/atlassian-plugin-sdk/bin
      ATLAS Maven Home: /opt/atlassian-plugin-sdk/apache-maven
      --------
      Executing: /opt/atlassian-plugin-sdk/apache-maven/bin/mvn --version
      Apache Maven 2.1.0 (r755702; 2009-03-18 12:10:27-0700)
      Java version: 1.6.0_03
      Java home: /home/pickgr/mf/mf_external/jdk1.6.0_03/jre
      Default locale: en_US, platform encoding: UTF-8
      OS name: "linux" version: "2.6.18-308.16.1.el5" arch: "i386" Family: "unix"
      

            Assignee:
            Unassigned
            Reporter:
            Garret Pick
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: