Error while trying to setup source code of confluence

Hi, we downloaded confluence source code 3.5.6 version and tried to set it up as an eclipse project (in a view for future plugin development). Tried to follow the document located at http://confluence.atlassian.com/display/CONF26/Setup+Confluence+Source+Code+For+Development

when I ran mvn clean install -Dmaven.test.skip I end uo with an error saying :

[ERROR] Failed to execute goal com.atlassian.maven.plugins:maven-amps-plugin:3.3
-m5:copy-bundled-dependencies (default-copy-bundled-dependencies) on project atl
assian-cookie-tools: Unable to execute mojo: UnsupportedOperationException -> [H
elp 1]

Am I following the right document to set up the source code? I am using tomcat as app server. So I didnt downloaded resin or orion.

Help on this is appreciated. Thanks in advance.

1 answer

1 accepted

0 votes
Accepted answer

Sounds like you are trying to build a fairly recent version of Confluence using much older documentation.

Maybe check out this page - https://developer.atlassian.com/display/CONFDEV/Building+Confluence+From+Source+Code

Have you got the Atlassian SDK installed? My first guess is that you are compiling with maven and don't have the neccessary repository dependencies configured in your environment.

Can you give us an idea of your experience with maven?

[INFO] [dependency-tracker:validate {execution: default}]
[ERROR] The following dependencies are not present in the report:
[ERROR] com.atlassian.cache:atlassian-cache-api:0.1:jar:-:compile||{sha1
}0b0847e838b10925297d6749d06a6f2df4a655b3|{sha1}ff42d44d56e8df624479878e03938c09
2403ff81
[ERROR] com.atlassian.cache:atlassian-cache-memory:0.1:jar:-:test||{sha1
}212bd6700dec112e04b8efd76956d228731652d8|{sha1}f456510c3e922b19ea5768b8aaef728f
7dc4b1af
[ERROR] com.atlassian.ldap:atlassian-ldap-test-server:5:jar:-:test||{sha
1}c13d9b95f263e841eb5c37423e0cf864224ccee6|{sha1}bba5f0b1c81e6b9345c608c681337ec
41cab6c2d
[ERROR] javax.transaction:jta:1.0.1B:jar:-:runtime||{sha1}3dd157a4f4fe11
5ac5d165d6c21463d0ce9e3c7b|{sha1}9fbaf81aba46a55a46fcb8b666568aa0feaf2f32
[ERROR] The following dependencies are present in the report but no longer calcu
lated:
[ERROR] com.atlassian.cache:atlassian-cache-api:0.1:jar:-:compile||{sha1
}fee0f06d787c596f21890d464264ba462a46b58b|{sha1}ff42d44d56e8df624479878e03938c09
2403ff81
[ERROR] com.atlassian.cache:atlassian-cache-memory:0.1:jar:-:test||{sha1
}741a1a6a45545875dba035d3724b95df219623f1|{sha1}f456510c3e922b19ea5768b8aaef728f
7dc4b1af
[ERROR] com.atlassian.ldap:atlassian-ldap-test-server:5:jar:-:test||{sha
1}7ab4c4164a3f527e7834649454135560b298b913|{sha1}bba5f0b1c81e6b9345c608c681337ec
41cab6c2d
[ERROR] javax.transaction:jta:1.0.1B:jar:-:runtime||{sha1}9efebe24546ee6
469ad7c34febb82d05402c082e|{sha1}9fbaf81aba46a55a46fcb8b666568aa0feaf2f32
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE

Hi Colin,

Sorry for my late update.(I would say am beginner in setting up maven to my working environment)

Thanks for new document link. Along with the document steps, I have made maven home(M2_HOME) pointing to maven folder thats in source code folder. I have Atlassian plugin sdk 3.6 on my machine installed (adding its bin to path variable).

Running build script at my source folder worked in Success. (after manually installing few plugins to my mvn).

I was happy to see build success. So jumped to create eclipse project using mvn eclipse:eclipse. it throws error. Tried both ways: 1. modifying build.sh/bat files replacing exec mvn install command with exec mvn eclipse:eclipse 2. And running mvn eclipse:eclipse

Error at building atlassian user: -> (sorry for pasting error as is here, hope this helps)

tried to refresh .m2 repository by deleting old and running build again.....

build worked in success. But trying to run mvn eclipse:eclipse by modifying build.bat and/or build.sh.

i am getting same error-the one pasted above while building atlassian user.

Help on this is appreciated...

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,100 views 17 14
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you