spring-boot-maven-plugin

SIngle jar startup failed after upgrade from Spring Boot 1.3.7 to 1.4.0

时光总嘲笑我的痴心妄想 提交于 2019-12-07 00:23:01
问题 After upgrading from Spring Boot 1.3.7 to 1.4.0 we can no longer start our application as a single jar build with the Spring Boot Maven plugin. Our application is a small REST interface using Jersey and Jetty. We use Maven and our pom file is pretty standard Spring Boot. We can still run the application using mvn spring-boot:run and from within Eclipse, but when run as a single jar Jersey ResourceFinder complains that it cannot find .jar!/BOOT-INF/classes . When I unpack the jar the folder

Deploy Spring Boot 1.3.2 IBM WAS 8.5

不羁的心 提交于 2019-12-06 05:21:52
I'm facing a problem deploying a simple spring boot web on IBM Websphere 8.5.5.8 using full profile WAS is by default using servlet 3.0 and java 1.7. The application does not do much, just display a page with a "Hi - [current-date]". When deploying the war file, we see the following in server log output: [2/3/16 13:30:44:857 AST] 00000078 AdminHelper A ADMN1008I: An attempt is made to start the simpledemo_war application. (User ID = defaultWIMFileBasedRealm/wps_admin) [2/3/16 13:30:44:871 AST] 00000078 CompositionUn A WSVR0190I: Starting composition unit WebSphere:cuname=simpledemo_war in BLA

Spring Boot Executable Jar File Without Dependencies

*爱你&永不变心* 提交于 2019-12-06 05:07:48
问题 What is the easiest way to build spring boot jar file without its dependencies? Basically I should be able to keep dependency jar files in a separate folder. Currently I'm using spring boot maven plugin, however, it creates a Fat jar file with all dependencies. 回答1: spring-boot-maven-plugin has option for repackaging that puts dependencies inside (making uber jar) You can disable repackaging or make repackaged .jar go with other classifier [2] http://docs.spring.io/spring-boot/docs/current

SIngle jar startup failed after upgrade from Spring Boot 1.3.7 to 1.4.0

末鹿安然 提交于 2019-12-05 04:08:51
After upgrading from Spring Boot 1.3.7 to 1.4.0 we can no longer start our application as a single jar build with the Spring Boot Maven plugin. Our application is a small REST interface using Jersey and Jetty. We use Maven and our pom file is pretty standard Spring Boot. We can still run the application using mvn spring-boot:run and from within Eclipse, but when run as a single jar Jersey ResourceFinder complains that it cannot find .jar!/BOOT-INF/classes . When I unpack the jar the folder BOOT-INF/classes is present and contains the expected classes and resources. Any help appreciated. 2016

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.

Spring Boot add files to classpath from command line execution

瘦欲@ 提交于 2019-12-04 11:33:09
I am using Netbeans 8.2 to develop Spring applications. This specific app with which I am having trouble is a Spring Boot 1.5.3 app. I have a spring xml file and an application.properties that I keep in /config under the root project directory. I am passing the spring xml file to my project via the @ImportResource annotation and a value property like @ImportResource(value="${config.xmlfile}") . When I click the 'Run Project' button in Netbeans my Spring app starts up and it correctly finds the application.properties file in my /config folder. However, any classpath references to other files in

Springboot not loading application.dev.properties file

北战南征 提交于 2019-12-04 02:08:18
In my project I want to use environment specific property file. For example if I am running it into development it should use application.dev.properties, for production it should use application.prod.properties and so on. I have below two files in my resources folder. application.properties (For production) application.dev.properties (For development) I have one properties like below in each file. For Prod server.database.host=192.168.1.1 For Dev server.database.host=192.168.12.125 And I have a class like below public class DataSource { @Value(${server.database.host}) String host; The above

spring-boot-devtools reload of multi-module maven project changes

大憨熊 提交于 2019-12-03 16:32:14
问题 Reload of multi-module maven project changes Setting Imagine a multi-module maven-project. The project structure is: pom.xml //parentpom | pom.xml //submodule_1 | pom.xml //submodule_2 . . . pom.xml //submodule_7 For example submodule_5 has submodule_6 and submodule_7 as dependencies. The submodule_5 can be build to construct a War-file which can be deployed. Spring-Boot-Devtools provide the feature of automatic-restart whenever there is a change to submodule_5 it's classpath. Whenever the

Import spring boot app into another project

不打扰是莪最后的温柔 提交于 2019-12-03 14:19:20
So I am attempting to add a spring boot executable jar as a dependency in another project (Testing framework). However once added to the pom and imported. Java imports don't work properly. If I look inside the jar all packages are prepended with: BOOT-INF/classes.some.package.classname.class There is also some spring boot related packages, MANIFEST etc etc. Not if I switch the spring boot app's build to just install and deploy a regular jar using the spring-boot-maven-plugin This changes and everything works fine. Unfortunately this is not a solution for us as we lean on the executable jar as

spring-boot-devtools reload of multi-module maven project changes

故事扮演 提交于 2019-12-03 06:32:36
Reload of multi-module maven project changes Setting Imagine a multi-module maven-project. The project structure is: pom.xml //parentpom | pom.xml //submodule_1 | pom.xml //submodule_2 . . . pom.xml //submodule_7 For example submodule_5 has submodule_6 and submodule_7 as dependencies. The submodule_5 can be build to construct a War-file which can be deployed. Spring-Boot-Devtools provide the feature of automatic-restart whenever there is a change to submodule_5 it's classpath. Whenever the application is run using: mvn spring-boot:run And changes are made to submodule_5 (depending on which IDE