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
1
vote
1 answer

Appassembler `run.as.user.envvar` when running locally

I'm using appassembler plugin to generate my application structure successfully. Because my application is started from init.d script I amended the configuration so the application runs under serveruser rather than root:
Jan Zyka
  • 17,460
  • 16
  • 70
  • 118
1
vote
3 answers

appassembler-maven-plugin - how to include native library files when generating scripts for Windows and Unix

Hi am working on a Java application that is built into a distribution file (a zip file) using the appassembler-maven-plugin. End-users extract the contents of the zip. Using this plugin, we build a distribution structure that includes the required…
user3441604
  • 582
  • 7
  • 23
1
vote
1 answer

Print message to spring shell while the shell is starting up

I'm using spring shell and I want to add some "loading.." message so when the user open the shell the message will shown immediately (on the shell). My idea is to add "ECHO loading" command to the batch file but I can't figure out how can I add some…
maya
  • 53
  • 6
1
vote
0 answers

Using appassembler as a daemon script to run apache-camel route fails during reboot

I have an apache camel route that used appassembler to run the route as a linux(redhat)service. I created a symlink to the service wrapper as /etc/init.d/daemon-science. When I try to run the symlink as a service it is working fine but when I reboot…
pongs
  • 53
  • 1
  • 7
1
vote
1 answer

Maven appassembler plugin: change current directory before launching program

Say I have a simple Spring application with a Main.java like so: public class Main { public static void main(String[] args) { AbstractApplicationContext context = new …
Jon Archer
  • 618
  • 9
  • 14
1
vote
1 answer

adding classpath using appassembler-maven-plugin for generating batch file

I am using appassembler from mojo. What I need to do is I have to add a perticular path of the project (say %BASEDIR%\resources) to class path, currently it is adding only %REPO% to the classpath. What changes should I do in my pom.xml. I have…
gahlot.jaggs
  • 1,083
  • 3
  • 11
  • 21
1
vote
1 answer

Java Server Hanging on Startup in Centos 5

So, I am running a web server using embedded jetty and the maven app-assembler plugin. When I invoke the app-assembler app directly (running as root), the server starts up fine. Even with running under nohup, the web server starts up completely…
ArcSine
  • 648
  • 6
  • 14
0
votes
2 answers

Is there something similar to Maven Cargo but for AppAssembler?

I want to deploy a generated Maven AppAssembler assembler/ directory to somewhere in a file system, SSH, or whatnot. Can Cargo do that for me, or is there an equivalent deployment tool that will let me glob a bunch of files (in this case the…
Nick Klauer
  • 5,893
  • 5
  • 42
  • 68
0
votes
0 answers

Maven AppAssembler not copying the own jar

I'm using Maven with the plugin AppAssembler from CodeHaus to auto-generate my launching scripts both for Win and Unix (maybe there is a better solution??), everything works fine but the copy of the proper jar into the lib dir. Note the assemble…
0
votes
0 answers

Executing tasks: [:app:assembleDebug] in project

Executing tasks: [:app:assembleDebug] in project C:\Users\HP\AndroidStudioProjects\My123 Starting Gradle Daemon... Gradle Daemon started in 37 s 81 ms Task :app:preBuild UP-TO-DATE Task :app:preDebugBuild UP-TO-DATE Task :app:compileDebugAidl…
gyan baba
  • 1
  • 1
0
votes
0 answers

"-Dapp.pid=%%" passes in an incorrect pid to java jvm arguments in start script

In the start script for my application, the service is started with the following lines: JVM_OPTS=$DEFAULT_JVM_OPTS" "$JAVA_OPTS" "$${optsEnvironmentVar}" -Dapp.pid=$$ -Dapp.home=$APP_HOME -Dbasedir=$APP_HOME" exec nohup "$JAVACMD" -jar $JVM_OPTS…
SVill
  • 331
  • 5
  • 22
  • 55
0
votes
0 answers

Using Maven Appassembler plugin, how to generate scripts in BaseDir?

I have a Maven project that uses Appassembler plugin to assemble the deployment. I want the generated SH and BAT scripts to be in the base directory and not in a specific folder (default being /bin). I have tried setting binFolder to ${basedir} and…
RCirne
  • 1
0
votes
2 answers

Issue of input line is too long while executing bat file

I have created one automated test which is running a bat file. This abc.bat is generated using application assembler plug-in. Inside bat file, class path has been set and Java commands has been executing). On Linux, it's working fine, but on Windows…
0
votes
2 answers

combination of shade, proguard and appassembler maven plugins

I'm trying to build and obfuscate a multi module project using maven. I use the shade plugin to create a fat jar containing all of my own class files(every module) so that I could obfuscate the fat jar using proguard-maven-plugin and then create…
raven
  • 775
  • 6
  • 22
0
votes
1 answer

Is it possible to add environment variables via appassembler plugin

Is it possible somehow possible to add a environment variable to the generated scripts say LD_LIBRARY_PATH=$BASEDIR/native/libs/. I did not find anything in the docs. Maybe there will at least be a "hacky" way using another maven plugin?
KIC
  • 5,887
  • 7
  • 58
  • 98