Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Component/s: maven-metadata-plugin
-
Labels:None
-
Similar Issues:
Description
When no packaging is specified, an invalid artifact URL is assigned to the *_ARTIFACT_URL env variable.
E.g. use the following configuration:
- Name=ANY_JAR
- Repository Base URL=http://repo1.maven.org/maven2
- Artifact Group ID=org.apache.commons
- Artifact ID=commons-lang3
- Packaging=
When starting a build, it is provided with the following environment variables:
ANY_JAR_ARTIFACT_URL=http://repo1.maven.org/maven2/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.
ANY_JAR_VERSION=3.4
ANY_JAR_ARTIFACT_ID=commons-lang3
ANY_JAR_GROUP_ID=org.apache.commons
You'll notice:
- The artifact URL is missing the jar extension
- The variable ANY_JAR_PACKAGING is missing
I already implemented a fix and created Pull Request 8. Please test, merge and resolve this ticket. Many thanks!