How to deploy micro services on Heroku with multi module Maven project - heroku

I have a multimodule maven project which contains 4 micro services(github link E2Open-POC), To deploy this project I have created a new app , imported this project and deployed to Herok. But the problem is its not deploying all 4 projects.
Please suggest me how to deploy this multi module maven project on Heroku.

Related

Azure Devops pipleline for Maven/Rest Assured project

I am new to azure devops. I have created a Rest Assured project using TestNG and Maven Dependencies. I am able to build it successfully on my local as a Maven Project. Can I create a CI\CD pipeline on Azure DevOps instead of creating on Jenkins. My project specifically requires to create Azure pipelines. I have also successfully created and build the Azure pipeline for a simple Maven project but when I try to create for Rest Assured with Maven something fails. is there any specific settings required for Rest Assured or it should be same as any Maven project-
Build error
I was able to create azure pipeline for Maven Rest Assured project. We need to select the host as Windows host( if we are working on Windows) and then download and setup the respective agent on our local machine. We can then create the build definition for Maven build using classic editor and select the respective pom.xml

Deploy a spring boot JAR to Azure Web Services with Gradle

I prefer to use gradle with Spring Boot. I have found resources about deploying to Azure with the Maven Plugin for Azure App Service Web Apps. How would one take an approach with gradle as a build system?
Well you need to separate deployment and build.
You can use Azure build pipeline task to build with gradle.
Part of that build you can create artifacts which contains your app
Then create release which will deploy jars to azure app service

Spring Boot multi module WAR Generation

I have made a maven Spring boot (REST) Project that has 3 (maven) sub modules (i. api ii. implementation and iii. service modules).
The main method (#SpringBootApplication) is in the root of the project. The REST web service works fine from IDE but maven does not allow me to package this project as war and deploy to external tomcat.
To solve this I added a new module and added dependencies of other modules within this and packaged this as war (by adding maven-war-plugin). But when deployed on server; the webservice does not get hit.
Structure-
Service Project
main()(This is within root project)
api module
service module
implementation module
Newly added module (that has above 3 modules injected as dependency and the plugin that let me package this as a war)
Expecting a war that has all these submodules that can be deployed on external Tomcat 9 server.
How to achieve this?
Please Note - I have added spring-boot-maven-plugin
to repackage in the root project, but it is not working.
Adding parent to this newly added module fixed the issue and I was able to make a working jar!

How can i deploy a zip whit maven assembly plugin

I develop a web application that has two layers: a frontend layer and a backend. I deployed the backend war in artifactory using distributionManagement. Now I want to deploy the frontend. I use maven assembly plugin. I made a zip. I would like to know how to deploy the frontend zip in artifactory?
Thank you for your help.

How to convert Maven War project to an EAR project in Openshift?

I have created an JEE application in Openshift using the JBOSS AS 7.1 cartridge a Maven project have been generated with the War deployment format.
I need to use EJBs into the application but the War format cannot hold EJB so I changed the from War to Ear, the problem is that when I deploy the Ear the application does not Work(404 Error when I access the home page).
Is there any simple solution in order to make this work?
Or Should I create two seperate projects(one EJB project and another JSF project) and a parent POM?
Actually it is possible to package EJBs inside a WAR archive : JEE6 Tutorial, so I decided to stick with that.
Alternatively it is also possible to convert a project from WAR to EAR by using Maven's project composition (useful link).

Resources