maven-assembly-plugin

Maven assembly plugin add dependencies

帅比萌擦擦* 提交于 2019-12-05 10:44:25
问题 I have a java application and using maven-assembly-plugin I want to add my dependencies to a /lib folder in my release. In a web project its simple because jars are already in the war file. I coudln't figure out to do it in standart java application since all external jars are in my local .m2 repository. 回答1: I often work with this assembly configuration <assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

maven create zip with jar and some more files

被刻印的时光 ゝ 提交于 2019-12-05 08:34:36
I do not understand maven. Better use ant, but... I've managed to create jar (with, or without dependencies), I've managed to copy bat runner script close to jar but now i want to create zip with this jar and this bat. So i use assembly plugin and get BUUUM!!!! CADAAAM! In my configuration it happens so, that it executes parallel to jar packaging. I wrote assembly file: <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

Including an unpacked War in the Assembly

为君一笑 提交于 2019-12-05 06:07:06
I have a project which builds a war (no problem). And, that war needs to be packaged with a few shell scripts. Because that war contains properties files that vary from site-to-site, we can't simply install the war as is, but munge the properties files in it. That's what the shell scripts do. I'd like to package my war in my assembly as a unpacked war. I see <unpacked> in the Assembly Descriptor, but I haven't been able to get that to work. Here's my first bin.xml where I just packed the war as is. This works fine: <assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly

Creating '--rsyncable' maven assembly

此生再无相见时 提交于 2019-12-05 02:39:20
问题 Currently, maven-assembly-plugin allows only pre-defined output archive formats, such as .zip , tar.gz . The docs do not mention straightforward configuration to create --rsyncable gzip . So far, I've gotten as far as maven-archiver should be configured, however the docs are rather scarce. Just wondering, anyone already explored this? Update : Maven-archiver uses org.codehaus.plexus.archiver.gzip , which uses java.util.zip.GZIPOutputStream , which is a standard impl of zip, expectedly without

No executable code found at line [duplicate]

自作多情 提交于 2019-12-05 00:41:53
This question already has an answer here: Cannot set Java breakpoint in Intellij IDEA 17 answers I am getting this message "No executable code found at line" when doing a remote debug from IntelliJ ver 12. This is a Java application. It is using maven for building the war. Not sure where to make the change in order to do the debugging properly. You need to ensure that sources in editor are in sync with the classes on the server. Classes must be compiled from exactly the same sources with the debug option enabled for the compiler. Note that your classpath may be configured incorrectly and

The maven assembly plugin moduleset sources instructions are not including any files and not matching the included modules

十年热恋 提交于 2019-12-04 23:13:46
I have a multi-module maven project, and I'm trying to get the moduleset sources portion of the assembly plugin to work. I have modules " module_parent ", " module_a ", and " module_assembly ". module_a and module_assembly are children of module_parent . module_assembly has a declared pom dependency on module_a . module_assmebly has the assembly plugin, with the assembly.xml looking like: <?xml version="1.0"?> <assembly> <id>bin</id> <formats> <format>zip</format> </formats> <includeBaseDirectory>false</includeBaseDirectory> <moduleSets> <moduleSet> <useAllReactorProjects>true<

How do I set directory permissions in maven output?

假装没事ソ 提交于 2019-12-04 18:13:16
I am using the maven-assembly-plugin to package my build. I am able to perform some copying of file sets and modify file permissions fine, but I am unable to modify directory permissions. From the documentation, I am trying to use on the directories I care about. However, regardless of what permissions I specify, directories are ALWAYS created based off of the current umask (0022). Does anyone know of a clean way to modify directory permissions in this way during a Maven build. The only thing that works is umask 0 , but I would rather not be forced to do this, since everyone working on this

Spring Boot webserver works fine in Eclipse, fails to start on Server : missing EmbeddedServletContainerFactory bean

六月ゝ 毕业季﹏ 提交于 2019-12-04 13:27:54
Following the model of the Spring Documentation I created a very simple Hello World like application. It spun right up on Eclipse and everything looked great. Sweet! I ran it and could browse to the URL. Fastest development ever. But this has to run on a server, and looking at the jar, it was only about 4K so I knew that it wasn't going to work without a bunch of classpath configuration. To avoid that, I figured I needed a jar-with-dependencies jar. So this is my pom.xml, basically identical to that of the Spring example except adding the jar-with-dependencies goal for the assembly plugin.

Manipulate project version property to remove SNAPSHOT?

╄→尐↘猪︶ㄣ 提交于 2019-12-04 09:02:48
问题 I've got a project at version 0.0.1-SNAPSHOT, and when we build it via TeamCity, we also get a build.vcs.number property, which is the Subversion revision that triggered the build. In our assemblies, we create a zip file called something like foo-distribution-0.0.1-SNAPSHOT.zip, but I was wondering whether there's a way I can insert the build.vcs.number property into the artifact name to give foo-distribution-0.0.1.12345-SNAPSHOT.zip? Is there a built-in property that is just the numeric part

Getting started with Maven assembly plugin with multi-module project

旧街凉风 提交于 2019-12-04 05:25:22
问题 We had a guy working with us who used the maven-assembly-plugin to package all dependencies. He has since left the company and I'm trying to figure out how he did this. I am just now learning about the maven-assembly-plugin. Our applications are split into a Maven POM project with associated module projects. In the following example, I've included the runtime module project. I tried to create a module project called runtime in my application, but the minute I make any changes it loses the