maven-assembly-plugin

Copy a Folder and Create a Jar in Maven

瘦欲@ 提交于 2021-02-20 04:13:47
问题 I have a task to copy a folder and create a jar. used maven-assembly plugin to generate a jar but the problem is its creates a Folder with artificat-id + Version i dont want to create i need as is what i copied and create a jar. <assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1

Why do I get “No assembly descriptors found.” error while building this project?

故事扮演 提交于 2021-02-20 01:19:40
问题 I have a little project written in Kotlin. When I run clean compile assembly:single install , I get following error message: Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single (default-cli) on project alma-econsim: Error reading assemblies: No assembly descriptors found. -> [Help 1] My jar-with-dependencies.xml is located in src/main/assembly and referenced in pom.xml like this: <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.2-beta-5<

Why do I get “No assembly descriptors found.” error while building this project?

拜拜、爱过 提交于 2021-02-20 01:06:32
问题 I have a little project written in Kotlin. When I run clean compile assembly:single install , I get following error message: Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single (default-cli) on project alma-econsim: Error reading assemblies: No assembly descriptors found. -> [Help 1] My jar-with-dependencies.xml is located in src/main/assembly and referenced in pom.xml like this: <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.2-beta-5<

maven assembly- sub folder

☆樱花仙子☆ 提交于 2021-02-19 05:32:58
问题 I want to use maven assembly plugin assembly '<plugin> <artifactId>maven-assembly-plugin</artifactId> <executions> <execution> <id>dist</id> <phase>package</phase> <goals> <goal>single</goal> </goals> <configuration> <descriptors> <descriptor>src/main/dist.xml</descriptor> </descriptors> </configuration> </execution> </executions> </plugin>' my descriptor file is : <assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001

maven zip uber-jar and shell script

冷暖自知 提交于 2021-02-08 06:21:15
问题 I would like maven to combine an uber-jar created by the shade-plugin and a shell script from the all_files directory. The project structure looks like this: all_files/ mvn_script.sh projB-shaded.jar maven_project/ guide/ parent-pom.xml projA/ pom.xml projB/ pom.xml The jar is produced by projectB's pom file and then placed into the outtermost folder to be ready to be zipped with the shell script. The reason is so that the shell script can call the jar file to execute the project. I want

Builds for different platforms the Maven way

。_饼干妹妹 提交于 2021-01-27 05:30:38
问题 I have a project with a submodule a:jar which needs a different set of dependencies, depending for which platform it is compiled. The code is the same for all platforms. E.g. on Android the httpcomponents library is already bundled with the OS, whereas I have to include it for builds for J2SE environments. I also have another submodule, which assembles several submodules and their dependencies into an archive. How can I reliably configure the assembly submodule, to take all the submodules

Is it possible to rename a maven jar-with-dependencies?

牧云@^-^@ 提交于 2020-05-09 17:33:27
问题 I'm currently using the jar-with-dependencies assembly to create such a jar. However, the name of my jar is a bit long. Since this jar is being used by RPG programs on an AS400, I'd like to shorten it to make life a bit easier for those developers. But, other than by hand, I've not found a way to rename the jar from the usual project-name-version-classifier-jar-with-dependencies.jar . I'd like something like project-name-version-classifier-full.jar Is there anyway to do this without basically

include package in maven while preparing jar

帅比萌擦擦* 提交于 2020-01-25 21:12:03
问题 I have below project structure. I wanted to prepare a jar with dependencies including different packages which has .java files. Project Structure: src/com/rev/automation/utilities src/com/rev/automation/testdata src/com/rev/automation/pages Main Class: org.openqa.selenium.remote How to include "src/com/rev/automation" packages into the jar in maven? i'm preparing the jar using below code, But it is not including packages and files present in "src/com/rev/automation". Kindly suggest <plugin>

include package in maven while preparing jar

一曲冷凌霜 提交于 2020-01-25 21:10:11
问题 I have below project structure. I wanted to prepare a jar with dependencies including different packages which has .java files. Project Structure: src/com/rev/automation/utilities src/com/rev/automation/testdata src/com/rev/automation/pages Main Class: org.openqa.selenium.remote How to include "src/com/rev/automation" packages into the jar in maven? i'm preparing the jar using below code, But it is not including packages and files present in "src/com/rev/automation". Kindly suggest <plugin>

include package in maven while preparing jar

让人想犯罪 __ 提交于 2020-01-25 21:08:01
问题 I have below project structure. I wanted to prepare a jar with dependencies including different packages which has .java files. Project Structure: src/com/rev/automation/utilities src/com/rev/automation/testdata src/com/rev/automation/pages Main Class: org.openqa.selenium.remote How to include "src/com/rev/automation" packages into the jar in maven? i'm preparing the jar using below code, But it is not including packages and files present in "src/com/rev/automation". Kindly suggest <plugin>