Here's a bit of a strange question : I have an Angular project that talks to a Restful Java application. I was looking for help to package it as a Maven webapp project which can then generate/build a WAR file. Is that something that can me done easily in Maven? So far I created a bare bones app using the 'maven-archetype-webapp' archtype but not entirely sure if the Angular will play nice. The goal was to take the Angular UI and deploy it on some legacy servers (like GlassFish, IBM Websphere AS 9.0 etc.) so that it works like a regular client application. Any help is greatly appreciated.
Packaging an Angular project as a webapp with Maven
1.2k views Asked by javshak At
1
There are 1 answers
Related Questions in ANGULAR
- Firebase link existing user to anonymous account?
- It doesnt always show all the books on my homepage
- Google adsense ads.txt status cannot be not found
- When I navigate to the URL'http://localhost:4200/', it redirects me back
- Ionic Angular Standalone ion-icon are not showing at all
- How to make Angular understand that view child is of a specific type, not a general ElementRef?
- vscode, debug angular, first time, doesn't debug, 2nd time stops at main.js then it's ok
- How to perform CRUD operations on a static JSON array in Angular? (without API)
- Ngrx props<>() method in createAction()
- How to animate rotation of an image inside input control?
- Detecting click inside and outside of the listening component in Angular
- Angular - type guard not narrowing types
- In node_modules file i am getting Angular genric error while using fontawesome in angular12
- Angular 16 sending null values to API
- GoogleCloud Error: Not Found The requested URL was not found on this server
Related Questions in MAVEN
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- JavaFX build generating a blank gui with primary view and secondary view buttons
- Maven (Java) does not build dependencies into a compiled file
- java.lang.ClassNotFoundException: javax.servlet.jsp.tagext.TagLibraryValidator in Spring-boot jsp application
- I am trying to use h2 in-memory db from my spring boot application, my spring boot version is 3.1.10, but its not connecting to h2 properly
- BeanCreationException when deploying Spring Boot app
- How to run Parallel tests by groups using Maven and TestNG?
- Get control flow information with JaCoCo
- Failed to instantiate [com.docusign.esign.client.ApiClient]
- Gradle - Groovy vs Gradle - Kotlin vs Maven for Java Spring Boot web application project on IntelliJ
- Intelij ultimate and spring boot giving me errors
- Using Eclipse Maven project, import new version of a class from a jar file created from another Maven project
- Messing up with conflict between spring jcl and commons-logging.jar
- Run java program
- How to add a Maven project to an Ubuntu image in Docker
Related Questions in WAR
- Jmix framework throws error building WAR file
- Maven including multiple versions of spring dependencies
- Dockerized Spring Boot app can't load file in war
- JPA/REST Application as a .war file?
- maven-war-plugin upgrade to java 21
- Tomcat 9 error on WAR deployment tries to read logging configuration from wrong location
- How to obfuscate WAR with maven plugin for Proguard?
- Getting "Failed to clear soft references from ObjectStreamClass$Caches for web application" error while starting app- tomcat8
- Maven War file issue at tomcat server | Ubuntu
- Angular Routes Issue in Wildfly Deployment: Routing Fails in .war Packaged Application Using "jar -cfv"
- Glassfish6 WAR Module Doesn't Boot as ejb,web,webservice despite having @WebService Annotation
- broadleafcommerce with tomcat10 standalone
- Troubleshooting Deployment Issues with Spring Boot WAR on Tomcat 11 and JDK 21 on Windows vServer
- How to prevent MVN from changing file dates as it packages a WAR file?
- Oracle Weblogic: Application never RUNNING, always STARTING in and no errors in logs
Related Questions in GLASSFISH-4
- Question with Glassfish 4 - SSL Certificate
- How to fix running Glassfish (in Windows)?
- Force Glassfish4 to use Guava from ear
- Specified location is not a valid domain. -docker
- Glassfish 4, Eclipse IDE 2019-03 - CustomRealm: AppservPasswordLoginModule cannot be resolved to a type
- The server exited prematurely with exit code 1 GlassFish 4
- How to fix java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
- Why does the glassfish server only load a bean after it has been restarted?
- Glassfish4 : Waffle SSO Servlet Filter gives Basic auth login popup
- java.lang.AbstractMethodError: org.jboss.resteasy.cdi.CdiPropertyInjector.inject(Ljava/lang/Object;)V
- jax-rs & mvc: return view as string issue
- deployment error occurred while uploading app file (ords.war) on glassfish3 server
- javax.ejb.EJBException: Transaction aborted while inserting record to Derby db table using Entity Manager
- Packaging an Angular project as a webapp with Maven
- Glassfish4: Exceptions because of Java9 module-info.class in WEB-INF/lib/jackson-*.jar inside war file?
Related Questions in REST
- Query parameter works fine with fastapi application when tested locally but not working when the FastAPI application is deployed on AWS lambda
- Add an http GET/POST entry point to a Django with channels websocket
- Difficulty creating a data pipeline with Fabric Datafactory using REST
- Flutter connection to a local api
- Accessing REST API Status Codes using Azure Data Factory Copy Activity (or similar)?
- Mass Resource deletion in REST
- why when I check endpoint /tasks, an error always appears "error : invalid token" even though I have entered the appropriate token that I got
- How to prevent users from creating custom client apps?
- How to create a REST API with .NET Framework?
- Efficiently Handling Large Number of API Calls with Delphi 10.4 and OmniThreadLibrary
- Put Request throwing 401 [no body] Unauthorized
- Converting img src data to octet-stream
- Implementing Email Verification and Notification System in a Full-Stack Application with React Frontend and Node Backend
- Micronaut - Add Controller from external library
- Moving Template or OVA to Datastore using vCenter API
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
I've done something similar with a Vue and Dropwizard based project, set up like so:
clientdirectory/moduleclientpom uses the maven exec plugin to run a frontend build (npmin my case, butgrunt/gulp/yarn/whatever would work too) during thecompilephase of the buildclientpom uses the maven resources plugin tocopy-resourcesfrom the frontend build output directory (dist) to a target output subdirectory (${project.build.outputDirectory}/assets) during theprepare-packagephase of the buildclientpom uses the maven jar plugin tojarthe output directory during thepackagephase of the buildclientjar, and uses AssetsBundle to serve the frontend app at/assetsThe details may differ slightly based on the best way to serve assets under Glassfish/Websphere/etc and the angular build process, but the above approach should be adaptable to those details.