I’m trying to setup a development environment for developing Atlassian Jira 3.13 plug-ins. The process is described on Atlassian’s website, here. Unfortunately, Jira 3.13 is a bit out of date and as such the documentation is also out of date. Upgrading is not currently an option.
I’m stuck on Step #3: I need to build and install the Atlassian IDEA-Maven Plugin. I’ve got Maven set up, but trying to built the Atlassian plug-in results in:
$ maven install:install-file ~/.maven/repository/jing/jars/jing-20030619.jar
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0
Plugin 'maven-deploy-plugin' in project 'Atlassian IDEA Plug-in' is not available
Attempting to download jing-20030619.jar.
WARNING: Failed to download jing-20030619.jar.
BUILD FAILED
File...... /home/mitch/.maven/cache/maven-plugin-plugin-1.5.1/plugin.jelly
Element... attainGoal
Line...... 55
Column.... 34
The build cannot continue because of the following unsatisfied dependency:
jing-20030619.jar
Total time: 1 seconds
Finished at: Wed Apr 06 16:43:34 MDT 2011
I was able to find the missing JAR with a quick Google search, and then by looking for some of the other dependencies that Maven had already installed, I determined that it kept the JARs locally in ~/.maven/repository/. Based on the structure of the subdirectories in that directory, I put the jing-20030619.jar in ~/.maven/repository/jing/jars/jing-20030619.jar, hoping that Maven would look for it there. However, Maven still can’t find the JAR. How do I tell it where to look?
I’m used to work with maven 2, but had to make a build with maven 1 and had the same problem as you, with the same jar even!
Here’s what I did:
1) Found the missing jar here: http://mirrors.ibiblio.org/pub/mirrors/maven2/thaiopensource/jing/20030619/ and downloaded it + the pom file.
2) Change the name of jing-20030619.pom to project.xml (to comply with Maven1.x) and changed the tag version to currentVersion. Save.
3) Create a new file next to the ing-20030619.jar and project.xml named maven.xml.
4) Open the maven.xml file and add this content (you can specify other goal name if you want):
5) Run maven:
6) Check your repository folder to see if it went OK.
Hope this helped!