Using the instructions (https://developer.atlassian.com/display/DOCS/Using+the+Atlassian+Plugin+SDK+with+a+Source+Code+License) I tried to compile JIRA 4.4.3.
Every time I started the process using "atlas-mvn source:jar install -Dmaven.test.skip -DskipTests" I get the following error message:
[INFO] ---------------------------------------------------------------------- -- [ERROR] BUILD ERROR [INFO] ---------------------------------------------------------------------- -- [INFO] Unable to execute mojo Embedded error: Missing: ---------- 1) com.boilerbay.infinitydb:infinitydb:jar:v1.0.53_3192 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.boilerbay.infinitydb -DartifactId=i nfinitydb -Dversion=v1.0.53_3192 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=com.boilerbay.infinitydb -DartifactId=inf initydb -Dversion=v1.0.53_3192 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.atlassian.support:stp:atlassian-plugin:2.6 2) com.atlassian.fisheye:fisheye-jar:jar:2.5.4-20110408064401 3) com.atlassian.fisheye:atlassian-fisheye-dependencies:pom:2.5.4-201104 08064401 4) com.boilerbay.infinitydb:infinitydb:jar:v1.0.53_3192 ---------- 1 required artifact is missing. for artifact: com.atlassian.support:stp:atlassian-plugin:2.6 from the specified remote repositories: atlassian-plugin-sdk (file://D:\_atlassian-plugin-sdk-3.6.1/repository), central (http://repo1.maven.org/maven2), atlassian-public (https://m2proxy.atlassian.com/repository/public)</pre<>>I already found the following bug https://jira.atlassian.com/browse/JRA-25319.
I tried out the recommended workaround and updated the root pom.xml file in that way "<!-- <module>stp</module> -->", but then I get the following error message:
"[INFO] An Ant BuildException has occured: taskdef class org.apache.tools.ant.taskdefs.optional.PropertyFile cannot be found"Is there any solution to get the JIRA 4.4.3 source code compiled?
Community moderators have prevented the ability to post new answers.
This has been fixed in 4.4.4 (we include a new version of the support tools plugin that does not have this dependency). We have also fixed the build that checks for this class of problem, so hopefully it will not be an issue going forward.
As Wojciech said you can comment out the stp plugin in the bundled plugin pom.xml and you should be able to compile correctly.
Robert : where can we get a copy of the 4.4.4? It's currently not available for download from myaltassian.com.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Wolf,
I'm working on getting 4.4.4 out the door as I type this. Its currently being "soaked" on an internal instance. If all goes well we'll be looking to roll out mid next week.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm experiencing a similar Ant BuildException on 4.4.4 - can anyone help?
https://answers.atlassian.com/questions/32110/error-while-compiling-the-jira-4-4-4-source-code
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried compiling JIRA 4.4.3 from the source bundle myself in the clean environment and got exactly the same results. I suspect that it incorectly requires infinitydb jar due to transitive dependencies on a bundled plugin - JIRA FishEye plugin.
IIRC infinitydb licensing policy does not allow to publish this jar on a public maven repo and that's why you cannot fetch it (it's not available on Atlassian public maven repo).
That looks like a unintentionally introduced problem.
You could either remove dependency on stp jar (that's JIRA Support tools you can live without I bet) in jira-components/jira-plugins/jira-bundled-plugins/pom.xml or hack downloaded fisheye-dependencies.pom to remove dependency there on infinitiydb.
I'll ask the person responsible for JIRA distro to take a look at this problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your feedback!
remove dependency on stp jar (that's JIRA Support tools you can live without I bet) in jira-components/jira-plugins/jira-bundled-plugins/pom.xml
I can't find a folder named "jira-components" in the JIRA source code folder I extracted from the zip file...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, my fault - I referred to a little bit different layout of the source dir.
Try in jira-project/jira-components/jira-plugins/jira-bundled-plugins/pom.xml
Also you may need to comment out <module>stop</module> in pom.xml in the root directory.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I updated the pom.xml in the root directory (atlassian-jira-4.4.3-source\pom.xml) as follows:
<!-- <module>stp</module> -->
Now I get the following error while compiling:
[INFO] Executing tasks [touch] Creating D:\_atlassian_svn\atlassian-jira-4.4.3-source\jira-bamboo-p lugin\target\test-classes\localtest.properties [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] An Ant BuildException has occured: taskdef class org.apache.tools.ant.tas kdefs.optional.PropertyFile cannot be found
I thought it would be easier to compile JIRA's source code... :-(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
JSR-25319 wasn't clear as to which pom.xml file required the modification. I added the exclusion to stp/pom.xml (4.4.1 and 4.4.3) and the problem vanished in both cases. However, I ran into another roadblock. See https://answers.atlassian.com/questions/22335/jira-4-4-1-build-fails-with-out-of-space-in-codecache-for-adapters. I'm not sure this is related to the modification made (I kind'a doubt it) but I thought I'd float it out there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.