maven assembly how to add a zip flie from nexus repository to the build

Umapathy

I am trying to include a zip file from nexus repository to my project during packaging using the maven assembly plugin. This zip file has YAJSW and other custom scripts. The maven assembly can build a tar.gz package now, but how do I include a zip file from nexus repository. There is a pom for that zip file. Should I just include that as dependency? Is this the correct plugin or should I use another plugin.

Thanks.

khmarbaise

Add the dependency of the zip file like the following:

The following is an example for archive which has been created by maven-assembly-plugin:

<dependency>
  <groupId>the.group.id</groupId>
  <artifactId>the-artifactid</artifactId>
  <version>1.0</version>
  <type>tar.gz</type>
  <cassifier>bin-unix</classifier>
</dependency>

<dependency>
  <groupId>the.group.id</groupId>
  <artifactId>the-artifactid</artifactId>
  <version>1.0</version>
  <type>zip</type>
  <cassifier>bin</classifier>
</dependency>

The classifier in those cases is comming from the assembly-decscriptor-id in the project which creates the archive. Apart from that it is important to define the type.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I deploy a Gradle build to a maven repository (Nexus) with Jenkins?

From Dev

Docker Automated build downloading private jars from a Maven Sonatype Nexus repository

From Dev

Unable to update maven configuration from nexus repository

From Dev

Add mysql connector to a maven / nexus build in eclipse

From Dev

Add mysql connector to a maven / nexus build in eclipse

From Java

add maven repository to build.gradle

From Dev

Releasing from Nexus staging repository via Jenkins/Maven

From Dev

How can I force a gradle build to re-download a SNAPSHOT plugin from Maven repository on every build

From Java

How to add a maven repository by url using kotlinscript DSL (build.gradle.kts)

From Dev

How to upload ZIP file to Nexus using Maven and avoid creating pom artifact in Nexus?

From Dev

How to zip only specific directories using maven assembly plugin

From Dev

Nexus to proxy a repository from a different nexus instance

From Dev

Build a site zip with Maven

From Dev

How to add files from webapp directory to jar using Maven Assembly plugin?

From Dev

Local Nexus Maven repository for common java libraries

From Dev

Set version aliases in nexus maven repository

From Dev

karaf-assembly 4.0.5 - zip ard tar.gz files are not generated at the end of a successful maven build

From Dev

How to add dependencies to a project via maven from downloaded zip (extracted) files

From Dev

Gradle build failing to get dependency from custom maven repository

From Dev

Artifactory + Jenkins: Publishing to a maven repository from a freestyle build

From Dev

how to delete jetty jars from maven repository

From Dev

How do I configure Maven to log in to username/password protected repository hosted by Nexus?

From Dev

How to build docker image from github repository

From Dev

Error with maven build with assembly plugin

From Dev

Build maven assembly in java 8

From Dev

Add Android Support Library Repository to Nexus

From Dev

how to get a jar build in docker maven to my local repository

From Dev

Maven - setup project from Nexus

From Dev

Maven build dependencies before checking nexus

Related Related

  1. 1

    How can I deploy a Gradle build to a maven repository (Nexus) with Jenkins?

  2. 2

    Docker Automated build downloading private jars from a Maven Sonatype Nexus repository

  3. 3

    Unable to update maven configuration from nexus repository

  4. 4

    Add mysql connector to a maven / nexus build in eclipse

  5. 5

    Add mysql connector to a maven / nexus build in eclipse

  6. 6

    add maven repository to build.gradle

  7. 7

    Releasing from Nexus staging repository via Jenkins/Maven

  8. 8

    How can I force a gradle build to re-download a SNAPSHOT plugin from Maven repository on every build

  9. 9

    How to add a maven repository by url using kotlinscript DSL (build.gradle.kts)

  10. 10

    How to upload ZIP file to Nexus using Maven and avoid creating pom artifact in Nexus?

  11. 11

    How to zip only specific directories using maven assembly plugin

  12. 12

    Nexus to proxy a repository from a different nexus instance

  13. 13

    Build a site zip with Maven

  14. 14

    How to add files from webapp directory to jar using Maven Assembly plugin?

  15. 15

    Local Nexus Maven repository for common java libraries

  16. 16

    Set version aliases in nexus maven repository

  17. 17

    karaf-assembly 4.0.5 - zip ard tar.gz files are not generated at the end of a successful maven build

  18. 18

    How to add dependencies to a project via maven from downloaded zip (extracted) files

  19. 19

    Gradle build failing to get dependency from custom maven repository

  20. 20

    Artifactory + Jenkins: Publishing to a maven repository from a freestyle build

  21. 21

    how to delete jetty jars from maven repository

  22. 22

    How do I configure Maven to log in to username/password protected repository hosted by Nexus?

  23. 23

    How to build docker image from github repository

  24. 24

    Error with maven build with assembly plugin

  25. 25

    Build maven assembly in java 8

  26. 26

    Add Android Support Library Repository to Nexus

  27. 27

    how to get a jar build in docker maven to my local repository

  28. 28

    Maven - setup project from Nexus

  29. 29

    Maven build dependencies before checking nexus

HotTag

Archive