Deployment Angular: Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
Zeile 3: Zeile 3:


== Mulitmodule Maven Project ==
== Mulitmodule Maven Project ==
=== Parent POM ===


<pre>
<pre>
mvn archetype:generate -DgroupId=at.or.kirner -DartifactId=angular-rest-test
mvn archetype:generate -DgroupId=at.or.kirner -DartifactId=angular-rest-test
</pre>
</pre>
Als Filter <code>org.codehaus.mojo.archetypes:pom-root</code> verwewnden:


<pre>
<pre>
<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">
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): 1355: org.codehaus.mojo.archetypes:pom-root
<modelVersion>4.0.0</modelVersion>
Choose archetype:
1: remote -> org.codehaus.mojo.archetypes:pom-root (Root project archetype for creating multi module projects)
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : 1
Choose org.codehaus.mojo.archetypes:pom-root version:
</pre>


<groupId>at.or.kirner</groupId>
Dadurch generierte POM-Datei:
<artifactId>angular-rest-test</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>


<name>angular-rest-test</name>
<pre>
 
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<properties>
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<junit-version>4.12<junit-version>
  <modelVersion>4.0.0</modelVersion>
<java.version>1.11</java.version>
  <groupId>at.or.kirner</groupId>
<maven.compiler.source>${java.version}</maven.compiler.source>
  <artifactId>angular-rest-test</artifactId>
<maven.compiler.target>${java.version}</maven.compiler.target>
  <version>1.0-SNAPSHOT</version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  <packaging>pom</packaging>
</properties>
  <name>angular-rest-test</name>
 
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit-version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
</project>
</pre>
</pre>

Version vom 28. April 2019, 13:16 Uhr

Noch in Bearbeitung


Mulitmodule Maven Project

Parent POM

mvn archetype:generate -DgroupId=at.or.kirner -DartifactId=angular-rest-test

Als Filter org.codehaus.mojo.archetypes:pom-root verwewnden:

Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): 1355: org.codehaus.mojo.archetypes:pom-root
Choose archetype:
1: remote -> org.codehaus.mojo.archetypes:pom-root (Root project archetype for creating multi module projects)
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : 1
Choose org.codehaus.mojo.archetypes:pom-root version: 

Dadurch generierte POM-Datei:

<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>


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

webpack

Aktuell nicht verwendet

webpack

Als Sub-Module

Links

https://github.com/eirslett/frontend-maven-plugin

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

https://dzone.com/articles/building-a-web-app-using-spring-boot-angular-6-and


Zurück zu Angular