Questions tagged [appassembler]

The Application Assembler Plugin is a Maven plugin for generating scripts for starting java applications.

All dependencies and the artifact of the project itself are placed in a generated Maven repository in a defined assemble directory. All artifacts (dependencies + the artifact from the project) are added to the classpath in the generated bin scripts.

44 questions
9
votes
5 answers

How do I include configuration files with Maven Appassembler?

I'm using the Maven Appassembler plugin to package my application. I'd like to package some configuration files with the application. I've found the configurationDirectory and includeConfigurationDirectoryInClasspath parameters, but I haven't found…
Sietse
  • 7,884
  • 12
  • 51
  • 65
7
votes
6 answers

Maven AppAssembler not finding class

Attempting to modify an existing Java/Tomcat app for deployment on Heroku following their tutorial and running into some issues with AppAssembler not finding the entry class. Running target/bin/webapp (or deploying to Heroku) results in Error: Could…
frostmatthew
  • 3,260
  • 4
  • 40
  • 50
6
votes
3 answers

appassembler maven plugin doesn't set "execute" permissions on generated script

The AppAssembler Maven plugin does a great job of generating distribution for me. One last problem is that the generated Shell script does not have execution permissions so I need to set them manually. I am on Linux RedHat Does anybody know of a…
Sasha O
  • 3,710
  • 2
  • 35
  • 45
6
votes
1 answer

Script generated via appassembler-maven-plugin is not able to find main class in Spring Boot application

I have a problem with the start script that I generate with appassembler-maven-plugin. I have a basic spring-boot application with only one class: @SpringBootApplication public class ScriptDemoApplication { public static void main(String[] args)…
sziolkow
  • 173
  • 1
  • 12
5
votes
1 answer

maven appassembler plugin does not include the current artifact, if called iterative

[Update] The original question (below) is solved. I need to call mvn package appassembler:assemble instead of mvn package mvn appassembler:assemble Question: Why is there a difference? [Original] I am trying to use the maven appassembler plugin…
openCage
  • 2,735
  • 1
  • 18
  • 24
4
votes
1 answer

Set the java cmd in maven appsembler program script

I need to set my JAVA_HOME/ JAVACMD for the maven appassembler so that it is set in the script and override the system JAVA_HOME property when running the script. I see how I can do this for the jsw settings (set wrapper.java.command) but that…
Josh
  • 818
  • 2
  • 16
  • 27
4
votes
7 answers

appassembler and long classpath

I am using maven appassembler to create my assembly. My classpath is too long and I get "The input line is too long." The suggestion here is to use booter windows platform, but I'm constrained to use Java Service Wrapper. Any way I can use java6…
Paul McKenzie
  • 19,646
  • 25
  • 76
  • 120
3
votes
2 answers

How do I set environment-specific system properties with AppAssembler?

I have an application that requires me to set a system property during startup, and the property must be different in each environment (i.e. one value in Dev, a different value in Prod). This is similar to another unanswered question, but that one…
datguy
  • 623
  • 8
  • 24
3
votes
1 answer

Maven Appassembler plugin - stdout and/or stderr redirection

I am migrating one java project into Maven and we are using Appassembler maven plugin (version 1.3) for generating shell start script. My problem is how to redirect stdout and/or output of java program? This Appassembler's pom.xml configuration …
luboskrnac
  • 23,973
  • 10
  • 81
  • 92
3
votes
0 answers

Maven app-assembler, assembly and classpath: config directory conflict

I am using app-assembler Maven plug-in to create an installation of my Java application. I want some of the data (properties and some user-produced data) to be available in the filesystem rather than in any Jar file. app-assembler allows me to do…
user3458
2
votes
1 answer

Specifying system properties or command line arguments when starting a daemon created using appassembler maven plugin

we would like to use appassembler-maven-plugin to generate daemon scripts for our apps, we want to avoid having multiple configuratoins and generated scripts for the different environments, e.g. test, prod, etc., and would like to be able to set a…
Joe
  • 21
  • 3
2
votes
0 answers

How can I instruct the maven appassembler plugin to place a dll for JNI?

I am deploying a Java application that depends on a library with native libraries that are attached via Java Native Interface. I would like to know how I can configure the appassembler plugin to take this into account so that the libraries are…
Jörn Guy Süß
  • 1,408
  • 11
  • 18
2
votes
0 answers

Maven Exposing properties files appassembler

To load environment specific values, in my src/main/resources folder, I have some properties files in different subfolders i.e. com/app/ws/webservices-dev.properties com/app/ws/webservices-test.properties…
amique
  • 2,176
  • 7
  • 34
  • 53
1
vote
1 answer

How to make maven appassembler use javaw instead of java in generated scripts

Is it possible to make maven appassembler plugin to generate startup scripts that use 'javaw' instead of 'java'?
Vlad
  • 9,180
  • 5
  • 48
  • 67
1
vote
0 answers

Making appassembler-maven-plugin add sources for dependent artifacts (or find another way to do it)?

I am looking into making it easier to debug problems in our Maven deployments, and the appassembler-maven-plugin plugin is very useful for creating a multi-jar deployment where the various jars can be placed in a Maven repository file structure…
Thorbjørn Ravn Andersen
  • 73,784
  • 33
  • 194
  • 347
1
2 3