maven-assembly-plugin

unable to fix liqibase maven plugin update sql during the process of building war file for mifos source code?

女生的网名这么多〃 提交于 2019-12-08 04:55:04
问题 error during building war file.we r building war file for mifos source code through maven tool. mifos is java open source code. we use mvn clean package -Dmaven.test.skip=ture cmd and give path name til head folder of source code as shown below C:\mifos_src_code\mifos-head-2.1.6-0-gb6f7b86\mifos-head-e9d4674>mvn clean package -Dmaven.test. skip=true; [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.mifos:mifos- db

maven assembly plugin dependencySet with transitive dependencies

柔情痞子 提交于 2019-12-07 13:27:13
问题 I don't understand how to add part of dependencies to <dependencySet> in assembly for example I have dependency on group:artifact1 and group:artifact2 that both depend on group:artifact0. I create assembly descriptor that should copy group:artifact2 with all dependencies. If dependency on group:artifact1 in pom.xml appears before dependency on group:artifact2, I have only group:artifact2 in target dir, but if I change order of dependencies, than I have both artifacts in target dir. In result

How to make Maven assembly plugin dependencySets descriptor to include dependencies as defined in POM file?

て烟熏妆下的殇ゞ 提交于 2019-12-07 10:23:26
问题 For example, a POM dependency declaration (this is just for demo purpose and not my actual code): <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>1.1.2</version> <exclusions> <exclusion> <groupId>*</groupId> <artifactId>*</artifactId> </exclusion> </exclusions> </dependency> <dependency>..</dependency> <dependency>..</dependency> My assembly dependencySets descriptor: <dependencySets> <dependencySet> <outputDirectory>lib</outputDirectory>

Why maven compilation doesn't work with “pom” packaging type

主宰稳场 提交于 2019-12-07 07:41:48
问题 I don't know why my maven build doesn't generate target/classes in current pom setting, the packaging type must be "pom" in my case, please advise what is wrong... Thanks! <?xml version="1.0" encoding="UTF-8" standalone="no"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.abc.sm.doctor<

How to include package.jar with maven-assembly-plugin

爷,独闯天下 提交于 2019-12-07 06:04:35
问题 I used maven and maven-jar-plugin and maven-assembly-plugin to build a zip of my project including the projects jar and its dependencies. This is the plugin configuration: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.5</version> <configuration> <archive> <manifest> <mainClass>MyMainClass</mainClass> <addClasspath>true</addClasspath> <classpathPrefix>lib/</classpathPrefix> </manifest> </archive> </configuration> </plugin> <plugin>

maven create zip with jar and some more files

二次信任 提交于 2019-12-07 05:28:19
问题 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

How to set final jar name with maven-assembly-plugin version 3

≯℡__Kan透↙ 提交于 2019-12-07 03:53:59
问题 In older versions of the plugin you could use <finalName> , but that does not exist any more. At the moment I am getting projectName-version-jar-with-dependencies.jar and it would be nice to change this. 回答1: The finalName parameter is set in the project build section and not in the plugin configuration. so essentially: <build> <finalName>xyz</finalName> <plugins> <plugin> <artifactId>maven-assembly-plugin</artifactId> .... </plugin> </plugins> </build> The assembly plugin gets the final name

Including an unpacked War in the Assembly

柔情痞子 提交于 2019-12-07 03:26:57
问题 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

Error creating assembly archive bin: You must set at least one file

天大地大妈咪最大 提交于 2019-12-07 00:39:05
问题 I have a maven multi-module project with a module called mod1 that I'm trying to add into a folder /project jars with mvn assembly:assembly from the app folder, where the app pom.xml is. error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.3:single (assembly) on project wrapper: Failed to create assembly : Error creating assembly archive bin: You must set at least one file. -> [Help 1] Project folder structure: app | pom.xml | src | main | ... wrapper | pom

No executable code found at line [duplicate]

为君一笑 提交于 2019-12-06 19:46:18
问题 This question already has answers here : Cannot set Java breakpoint in Intellij IDEA (17 answers) Closed 6 years ago . 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. 回答1: You need to ensure that sources in editor are in sync with the classes on the server. Classes must be compiled from exactly