Error while trying to setup source code of confluence
Asked by Vineela Mikkilineni:

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.


Answers:
author: Colin Goudie
body: 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?

comments: author: Vineela Mikkilineni
body: \[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


author: Vineela Mikkilineni
body: 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)


author: Vineela Mikkilineni
body: 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...


Tags: source