Deployment Angular: Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
Zeile 73: Zeile 73:
[https://www.devglan.com/spring-boot/spring-boot-angular-deployment https://www.devglan.com/spring-boot/spring-boot-angular-deployment]
[https://www.devglan.com/spring-boot/spring-boot-angular-deployment https://www.devglan.com/spring-boot/spring-boot-angular-deployment]


[https://github.com/eirslett/frontend-maven-plugin https://github.com/eirslett/frontend-maven-plugin]
== base-href ==


[https://stackoverflow.com/questions/45915379/how-to-setup-angular-4-inside-a-maven-based-java-war-project https://stackoverflow.com/questions/45915379/how-to-setup-angular-4-inside-a-maven-based-java-war-project]
=== Links ===


[https://dzone.com/articles/building-a-web-app-using-spring-boot-angular-6-and https://dzone.com/articles/building-a-web-app-using-spring-boot-angular-6-and]
[https://medium.com/@anandshende1994/setting-base-href-dynamically-in-angular-6-b7fe824848cf https://medium.com/@anandshende1994/setting-base-href-dynamically-in-angular-6-b7fe824848cf]




Zurück zu [[Angular#Deployment|Angular]]
Zurück zu [[Angular#Deployment|Angular]]

Version vom 4. Mai 2019, 16:34 Uhr

Noch in Bearbeitung


Mulitmodule Maven Project

Parent POM

In der Konsole folgenden Befehl aufrufen:

mvn archetype:generate \
-Dfilter=pom-root \
-DarchetypeVersion=RELEASE \
-DgroupId=at.or.kirner \
-DartifactId=angular-rest-test

-DarchetypeVersion=RELEASE verwendet automatisch die letzte Version

-DgroupId=<groupId> und -DartifactId=<artifactId> müssen entsprechend angepasst werden.


Als Ergebnis wurde folgende POM-Datei generiert:

<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</modelVersion>
  <groupId>at.or.kirner</groupId>
  <artifactId>angular-rest-test</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>pom</packaging>
  <name>angular-rest-test</name>
</project>

Sub-Module

cd angular-rest-test
mvn archetype:generate \
-DarchetypeGroupId=org.apache.maven.archetypes \
-DarchetypeArtifactId=maven-archetype-quickstart \
-DarchetypeVersion=RELEASE \
-DgroupId=at.or.kirner \
-DartifactId=service
mvn archetype:generate -DgroupId=at.or.kirner  -DartifactId=service
mvn archetype:generate -DgroupId=at.or.kirner  -DartifactId=webapp

Links

https://www.baeldung.com/maven-multi-module

https://stackoverflow.com/questions/6328778/how-to-create-an-empty-multi-module-maven-project

webpack

Aktuell nicht verwendet

webpack

Als Sub-Module

Links

https://www.devglan.com/spring-boot/spring-boot-angular-deployment

base-href

Links

https://medium.com/@anandshende1994/setting-base-href-dynamically-in-angular-6-b7fe824848cf


Zurück zu Angular