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:

Issue with Atlassian Plugin SDK

A known issue with the Atlassian Plugin SDK is causing problems with maven parameters. You may need to run the above command directly from your maven directory. Please see AMPS-197 for more information.

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)

  1. Download JAF.
  2. Unzip the downloaded file.
  3. Go to the folder which contains the activation.jar file that you have just unzipped.
  4. Install JAF using the following command:

    Issue with Atlassian Plugin SDK

    A known issue with the Atlassian Plugin SDK is causing problems with maven parameters. You may need to run the above command directly from your maven directory. Please see AMPS-197 for more information.

Powered by Confluence and Scroll Viewport