Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Error while compiling the JIRA 4.4.3 source code

Michael Saupe November 29, 2011

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?

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
metapoint
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 30, 2011

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.

Wolfgang Stichling December 1, 2011

Robert : where can we get a copy of the 4.4.4? It's currently not available for download from myaltassian.com.

metapoint
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 5, 2011

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.

J Thomas
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.
January 29, 2012

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

1 vote
Wojciech Seliga
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.
November 29, 2011

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.

Michael Saupe November 30, 2011

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...

Wojciech Seliga
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.
November 30, 2011

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.

Michael Saupe December 1, 2011

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... :-(

0 votes
Wolfgang Stichling November 30, 2011

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.

TAGS
AUG Leaders

Atlassian Community Events