atlas-create-confluence-plugin creates build failure

Elisabeth Friedrich March 8, 2012

I'm new in developing plugins for Confluence, so I don't know how to solve this problem.

If I run this, I gt the following:

Executing: "C:\AZ_DATEN\ConfluencePluginSDK\atlassian-plugin-sdk-3.8\apache-mave
n\bin\mvn.bat" com.atlassian.maven.plugins:maven-confluence-plugin:3.8:create
[INFO] Scanning for projects...
Downloading: https://m2proxy.atlassian.com/repository/public/com/atlassian/maven
/plugins/maven-confluence-plugin/3.8/maven-confluence-plugin-3.8.jar
[WARNING] Unable to get resource 'com.atlassian.maven.plugins:maven-confluence-p
lugin:maven-plugin:3.8' from repository atlassian-public (https://m2proxy.atlass
ian.com/repository/public): Error transferring file: m2proxy.atlassian.com
Downloading: http://repo1.maven.org/maven2/com/atlassian/maven/plugins/maven-con
fluence-plugin/3.8/maven-confluence-plugin-3.8.jar
[WARNING] Unable to get resource 'com.atlassian.maven.plugins:maven-confluence-p
lugin:maven-plugin:3.8' from repository central (http://repo1.maven.org/maven2):
 Error transferring file: repo1.maven.org
[INFO] Cannot find mojo descriptor for: 'com.atlassian.maven.plugins:maven-confl
uence-plugin:3.8:create' - Treating as non-aggregator.
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [com.atlassian.maven.plugins:maven-confluence-plugin:3.8
:create]
[INFO] ------------------------------------------------------------------------
Downloading: https://m2proxy.atlassian.com/repository/public/com/atlassian/maven
/plugins/maven-confluence-plugin/3.8/maven-confluence-plugin-3.8.jar
[WARNING] Unable to get resource 'com.atlassian.maven.plugins:maven-confluence-p
lugin:maven-plugin:3.8' from repository atlassian-public (https://m2proxy.atlass
ian.com/repository/public): Error transferring file: m2proxy.atlassian.com
Downloading: http://repo1.maven.org/maven2/com/atlassian/maven/plugins/maven-con
fluence-plugin/3.8/maven-confluence-plugin-3.8.jar
[WARNING] Unable to get resource 'com.atlassian.maven.plugins:maven-confluence-p
lugin:maven-plugin:3.8' from repository central (http://repo1.maven.org/maven2):
 Error transferring file: repo1.maven.org
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] A required plugin was not found: Plugin could not be found - check that t
he goal name is correct: Unable to download the artifact from any repository

Try downloading the file manually from the project website.

Then, install it using the command:
    mvn install:install-file -DgroupId=com.atlassian.maven.plugins -DartifactId=
maven-confluence-plugin -Dversion=3.8 -Dpackaging=maven-plugin -Dfile=/path/to/f
ile

Alternatively, if you host your own repository you can deploy the file there:
    mvn deploy:deploy-file -DgroupId=com.atlassian.maven.plugins -DartifactId=ma
ven-confluence-plugin -Dversion=3.8 -Dpackaging=maven-plugin -Dfile=/path/to/fil
e -Durl=[url] -DrepositoryId=[id]


  com.atlassian.maven.plugins:maven-confluence-plugin:maven-plugin:3.8

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  atlassian-public (https://m2proxy.atlassian.com/repository/public)


  com.atlassian.maven.plugins:maven-confluence-plugin:maven-plugin:3.8

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  atlassian-public (https://m2proxy.atlassian.com/repository/public)


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Fri Mar 09 13:34:37 CET 2012
[INFO] Final Memory: 2M/15M
[INFO] ------------------------------------------------------------------------

I tried to solve it, as written there, but then it says "mvn is not found"

I'm using the Atlassian Plugin SDK

Greetings!

Bethlis

3 answers

1 accepted

0 votes
Answer accepted
Renjith Pillai
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 9, 2012

Are you behind and internet proxy? If yes adjust the maven proxy settings so that the dependencies can be downloaded.

Elisabeth Friedrich May 2, 2012

I did that, but the problem is, that my company denies the access to that server.

Is there a way of handling this?

Can this download be done manually?

Renjith Pillai
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 6, 2012

But if the access is denied to that how can you achieve that manually?

1 vote
David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
June 6, 2012
Work from home or use another Internet connection :-)
0 votes
Elisabeth Friedrich March 8, 2012

No Suggestions..?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events