Errors downloading dependencies

Hi All,

Am just getting started in Jira plugin development. I have gotten the tool chain installed on my new laptop, according to the Atlassian SDK tutorial. I have set this up exactly the same as my old machine.

All seems to be working ok until I run the command ‘atlas-create-jira-plugin’. During the downloading of dependencies. I get the following error log as shown below.

Also, I get a failure to download the same dependencies (basically, the same error log) if I clone my working project (from my old laptop) and try and build that from scratch.

Any ideas?

Thanks.

BW

C:\BKG\Projects
λ atlas-create-jira-plugin
Executing: "C:\Java\atlassian-plugin-sdk-8.0.16\apache-maven-3.5.4\bin\mvn.cmd" com.atlassian.maven.plugins:jira-maven-plugin:8.0.2:create -gs C:\Java\atlassian-plugin-sdk-8.0.16\apache-maven-3.5.4/conf/settings.xml
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- jira-maven-plugin:8.0.2:create (default-cli) @ standalone-pom ---
Downloading from atlassian-public: https://maven.atlassian.com/repository/public/org/apache/commons/commons-lang3/3.8.1/commons-lang3-3.8.1.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.8.1/commons-lang3-3.8.1.pom
Downloading from atlassian-public: https://maven.atlassian.com/repository/public/com/google/guava/guava/26.0-jre/guava-26.0-jre.pom
Downloading from central: https://repo.maven.apache.org/maven2/com/google/guava/guava/26.0-jre/guava-26.0-jre.pom
Downloading from atlassian-public: https://maven.atlassian.com/repository/public/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.pom
Downloading from atlassian-public: https://maven.atlassian.com/repository/public/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/slf4j/slf4j-simple/1.7.25/slf4j-simple-1.7.25.pom
Downloading from atlassian-public: https://maven.atlassian.com/repository/public/org/codehaus/plexus/plexus-container-default/1.0-alpha-8/plexus-container-default-1.0-alpha-8.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-container-default/1.0-alpha-8/plexus-container-default-1.0-alpha-8.pom
Downloading from atlassian-public: https://maven.atlassian.com/repository/public/org/apache/maven/maven-repository-metadata/2.0/maven-repository-metadata-2.0.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-repository-metadata/2.0/maven-repository-metadata-2.0.pom
Downloading from atlassian-public: https://maven.atlassian.com/repository/public/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom
Downloading from central: https://repo.maven.apache.org/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom
Downloading from atlassian-public: https://maven.atlassian.com/repository/public/org/apache/velocity/velocity/1.6.3/velocity-1.6.3.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/velocity/velocity/1.6.3/velocity-1.6.3.pom
Downloading from atlassian-public: https://maven.atlassian.com/repository/public/org/codehaus/plexus/plexus-classworlds/1.2-alpha-7/plexus-classworlds-1.2-alpha-7.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-classworlds/1.2-alpha-7/plexus-classworlds-1.2-alpha-7.pom
Downloading from atlassian-public: https://maven.atlassian.com/repository/public/org/apache/wink/wink-client/1.4/wink-client-1.4.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/wink/wink-client/1.4/wink-client-1.4.pom
Downloading from atlassian-public: https://maven.atlassian.com/repository/public/com/google/code/gson/gson/2.7/gson-2.7.pom
Downloading from central: https://repo.maven.apache.org/maven2/com/google/code/gson/gson/2.7/gson-2.7.pom
Downloading from atlassian-public: https://maven.atlassian.com/repository/public/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.pom
Downloading from central: https://repo.maven.apache.org/maven2/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.pom
Downloading from atlassian-public: https://maven.atlassian.com/repository/public/org/jboss/arquillian/arquillian-bom/1.0.2.Final/arquillian-bom-1.0.2.Final.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/jboss/arquillian/arquillian-bom/1.0.2.Final/arquillian-bom-1.0.2.Final.pom
Downloading from atlassian-public: https://maven.atlassian.com/repository/public/org/apache/maven/maven-project/2.0.8/maven-project-2.0.8.pom
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-project/2.0.8/maven-project-2.0.8.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.990 s
[INFO] Finished at: 2020-07-21T15:59:18-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.atlassian.maven.plugins:jira-maven-plugin:8.0.2:create (default-cli) on project standalone-pom: Execution default-cli of goal com.atlassian.maven.plugins:jira-maven-plugin:8.0.2:create failed: Plugin com.atlassian.maven.plugins:jira-maven-plugin:8.0.2 or one of its dependencies could not be resolved: Failed to collect dependencies at com.atlassian.maven.plugins:jira-maven-plugin:jar:8.0.2 -> com.atlassian.maven.archetypes:jira-plugin-archetype:jar:8.0.2 -> org.twdata.maven:mojo-executor:jar:2.3.0 -> org.apache.maven:maven-core:jar:3.5.4 -> org.apache.maven:maven-model:jar:3.5.4 -> org.apache.commons:commons-lang3:jar:3.8.1: Failed to read artifact descriptor for org.apache.commons:commons-lang3:jar:3.8.1: Could not transfer artifact org.apache.commons:commons-lang3:pom:3.8.1 from/to atlassian-public (https://maven.atlassian.com/repository/public): Received fatal alert: protocol_version -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

This seems to be a Java issue:

Solution 1: configure Java 7

It is need to enable TLS 1.2 protocol with Java property in the command line

mvn -Dhttps.protocols=TLSv1.2 install

install is just an example of a goal

The same error for ant can be solved by this way

java -Dhttps.protocols=TLSv1.2 -cp %ANT_HOME%/lib/ant-launcher.jar org.apache.tools.ant.launch.Launcher

Solution 2: use Java 7 with Oracle Advanced Support

Also problem can be solved by updating the Java 7 version. But the last available version (7u80) doesn’t fix the problem. It is need to use an update provided with Oracle Advanced Support (formerly known as Java for Business).

Solution 3: use Java 8 instead

Configure $JAVA_HOME to point to Java 8.

This didn’t solve it exactly, but it got me on the right track with Java setup.

I did have an issue where the system I have came preinstalled with a Java runtime that was set as JAVA_HOME in a user system variable. This may have been causing issues with the JAVA_HOME I had set in the (all-user) system variable.

It still didn’t work though - giving me the same error.

As a bit of a last ditch effort, I installed OpenJDK and mapped my JAVA_HOME there. Worked first time.

So I think it was either an issue with the JDK 8u261 latest version I had installed, or how I had it configured - although I couldn’t see how, if that were the case.

Thanks!

1 Like

Good to hear, thanks for posting your solution for others too!