war

Build single Spring Boot WAR project for deployment

痴心易碎 提交于 2020-01-07 03:26:07
问题 I have three projects: project-A project-B project-C In project-A I have defined the data model. Project-B is a Spring Boot project where I define operations for consuming rest API calls with RestTemplate . Project-C is also a Spring Boot project where I am exposing some REST services. The second project (B) requires the dependency for the first project (A). The third project (C) requires the dependencies for the first and second project (A, B). I have defined these dependencies in the

Multiple WARs sharing the same logback.xml

一世执手 提交于 2020-01-07 02:22:11
问题 Is the following logback setup safe and good practice. I have Multiple WARs (deployed WebSphere 8.5.5) and want them to share a single logback.xml -Dlogback.configurationFile=/opt/logback.xml -Dlogback.ContextSelector=JNDI The logback.xml uses a SiftingAppender with JNDIBasedContextDiscriminator so each WAR gets its own log file. <appender name="SIFT" class="ch.qos.logback.classic.sift.SiftingAppender"> <discriminator class="ch.qos.logback.classic.sift.JNDIBasedContextDiscriminator">

Maven: Generate different wars from different profiles

耗尽温柔 提交于 2020-01-06 13:43:30
问题 I have a web application project. This project has different maven profiles (for countries and environments) with filtered properties. I have to execute many times to obtain the different wars but I would like to get all the wars in a single maven execution. Is this possible? 回答1: Maybe you can write scipt with all those maven commands 回答2: It's not quite clear from your question, but if you simply want to "run" several profiles in one maven execution, it's as easy as mvn -Pprofile1,profile2,

Maven: Generate different wars from different profiles

淺唱寂寞╮ 提交于 2020-01-06 13:43:15
问题 I have a web application project. This project has different maven profiles (for countries and environments) with filtered properties. I have to execute many times to obtain the different wars but I would like to get all the wars in a single maven execution. Is this possible? 回答1: Maybe you can write scipt with all those maven commands 回答2: It's not quite clear from your question, but if you simply want to "run" several profiles in one maven execution, it's as easy as mvn -Pprofile1,profile2,

Maven: Generate different wars from different profiles

余生长醉 提交于 2020-01-06 13:41:27
问题 I have a web application project. This project has different maven profiles (for countries and environments) with filtered properties. I have to execute many times to obtain the different wars but I would like to get all the wars in a single maven execution. Is this possible? 回答1: Maybe you can write scipt with all those maven commands 回答2: It's not quite clear from your question, but if you simply want to "run" several profiles in one maven execution, it's as easy as mvn -Pprofile1,profile2,

War file deployment in JBoss 4.2 server, with Maven repositories

送分小仙女□ 提交于 2020-01-05 07:14:19
问题 I am a first time maven user. The project I have needs to be deployed into JBoss 4.2 server as a war file. I realized we can eliminate Ant if we are using Maven . Previously I used to configure my build path and my jars location in build.properties file. Now using Maven I am confused how to build a war file with referenced libraries are with Maven. My directory structure is as follows: My previous build.properties file was : deploydir=C:/jboss-4.2.3.GA/server/default/deploy userlib=C:/Jar

I have a multi-module Maven 2 POM that has two WARs, how can I configure it to deploy both wars prior to running tests?

試著忘記壹切 提交于 2020-01-04 15:30:40
问题 Roughly, I have (say) project A, pom packaging, that have two module M1 and M2 (say) each of which have war packaging. M2 has integration tests, but the M2 war makes service calls to the war of M1. This should really: Load same data into the DB. Deploy M1's WAR. Deploy M2's WAR. Run M2's IT tests. Undeploy M1 and M2. 回答1: I would use something like the db maintain maven plugin for the database deployment and the maven wagon plugin to deploy the war files into the container. You will have to

Separate same jars in different WAR of a EAR

给你一囗甜甜゛ 提交于 2020-01-04 06:44:11
问题 currently we are facing one problem. We are building a ear which contains multiple war files. In 2 of the WARs contains same jars. Both these wars need these jars during deployment.So Is there any way in ANT I can built it so that these jars will be in one single place and it will not create any problem during the ear deployment. 回答1: well, you can do it the portable way: Place the library jars at the root of .ear file. Example: library jar -> lib1.jar, lib2.jar [EAR STRUCTURE] your.ear |-

Separate same jars in different WAR of a EAR

☆樱花仙子☆ 提交于 2020-01-04 06:44:09
问题 currently we are facing one problem. We are building a ear which contains multiple war files. In 2 of the WARs contains same jars. Both these wars need these jars during deployment.So Is there any way in ANT I can built it so that these jars will be in one single place and it will not create any problem during the ear deployment. 回答1: well, you can do it the portable way: Place the library jars at the root of .ear file. Example: library jar -> lib1.jar, lib2.jar [EAR STRUCTURE] your.ear |-

Picking up Tomcat's Context.xml parameters via SpEL

99封情书 提交于 2020-01-04 06:28:12
问题 Deploying war to Apache Tomcat 8 the following way. Placing myApp.xml under $CATALINA_HOME/conf/[enginename]/[hostname]/ with the following contents: <Context> <Parameter name="myApp_configs" value="file:/the/path/to/configs/folder" type="java.lang.String" override="false"/> </Context> B.t.w. I do not place any kind of Context.xml into war . Then copying myApp.war to $CATALINA_HOME/webapps This is my web.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems,