Maven Cannot Find Java Mail, Java Activation or JTA
When you run the shell scripts in the Atlassian Plugin SDK, Maven may complain that it cannot find Java Mail, Java Activation or JTA.
For example, for the Java Activation, Maven will give this error:
Embedded error: Missing: javax.activation:activation:jar:1.0.2
Background to this Problem
Sun will not allow Maven to redistribute its binaries. Instead, all users must install Sun binaries manually by downloading them from Sun's website and running the
atlas-mvn install command. You'll find instructions in the Maven documentation here and here.
Installing the Sun Binaries
You will find the Sun binaries in these locations:
The Maven install command looks like this:
Below, as an example of the detailed installation process, we give specific instructions on installing the JavaBeans Activation Framework (JAF).
Installing the JavaBeans Activation Framework (JAF)
- Download JAF.
- Unzip the downloaded file.
- Go to the folder which contains the
activation.jarfile that you have just unzipped.
Install JAF using the following command: