appassembler

Maven AppAssembler not finding class

馋奶兔 提交于 2019-12-22 04:42:54
问题 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 not find or load main class org.stopbadware.dsp.Main Executing java -cp target/classes:target/dependency/* org.stopbadware.dsp.Main runs properly however. Here's the relevant portion of pom.xml: <plugin> <groupId>org.codehaus.mojo</groupId>

How can I add classpath location by using mojo appassembler plugin while creating batch file

怎甘沉沦 提交于 2019-12-11 18:56:59
问题 I am using appassembler plugin from mojo for creating a runnable batch/shell script for my application. I have to add a particular directory to my classpath, so what changes should I do in my pom.xml configuration for mojo's plugin. Currently classpath is generated with all required library path in my batch file as below set CLASSPATH=%BASEDIR%\abc.jar;%REPO%\*.properties All I need to do is add a separate variable like MY_PATH and add it to the classpath as below set MY_PATH=%BASEDIR%

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

让人想犯罪 __ 提交于 2019-12-11 02:44:23
问题 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 jvm system property or add an extra command line argument when starting. I have been looking into this for a while ow and can't seem to find a solution. If anybody has any ideas or suggestions they would be greatly appreciated, thanks 回答1: You can

How to include workspace artifacts in the assembly using Appassembler maven plug-in?

拈花ヽ惹草 提交于 2019-12-08 13:50:38
问题 I'm using Eclipse m2e in my development environment, and I have a spring-boot maven project(can be viewed as a standard maven jar project with runnable main class in this context) which depends on another maven project in the same workspace(workspace artifact, let's call it moduleB, a sibling of the spring-boot project), when I run the maven goal clean package (the appassembler:assemble goal can be ommited because I configured the execution section of the plugin, see the configuration detail

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

可紊 提交于 2019-12-06 12:03:02
问题 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) { SpringApplication.run(ScriptDemoApplication.class, args); } } and my pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:/

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

余生长醉 提交于 2019-12-04 18:07:26
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) { SpringApplication.run(ScriptDemoApplication.class, args); } } and my pom.xml <?xml version="1.0" encoding="UTF-8"?> <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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0<