Skip to content

Commit 48e9076

Browse files
committed
Added abstract poms
1 parent 7700fff commit 48e9076

File tree

5 files changed

+526
-0
lines changed

5 files changed

+526
-0
lines changed

pom.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
6+
<modelVersion>4.0.0</modelVersion>
7+
8+
<groupId>com.xdev-software</groupId>
9+
<artifactId>vaadin-addon-template-root</artifactId>
10+
<packaging>pom</packaging>
11+
<version>1.0.0-SNAPSHOT</version>
12+
13+
<organization>
14+
<name>XDEV Software</name>
15+
<url>https://xdev.software/en</url>
16+
</organization>
17+
18+
<modules>
19+
<module>vaadin-addon-template</module>
20+
<module>vaadin-addon-template-demo</module>
21+
</modules>
22+
23+
<licenses>
24+
<license>
25+
<name>Apache License, Version 2.0</name>
26+
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
27+
<distribution>repo</distribution>
28+
</license>
29+
</licenses>
30+
</project>

vaadin-addon-template-demo/pom.xml

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
8+
<groupId>com.xdev-software</groupId>
9+
<artifactId>vaadin-addon-template-demo</artifactId>
10+
<version>1.0.0-SNAPSHOT</version>
11+
<packaging>war</packaging>
12+
13+
<inceptionYear>2020</inceptionYear>
14+
15+
<organization>
16+
<name>XDEV Software</name>
17+
<url>https://xdev.software/en</url>
18+
</organization>
19+
20+
<licenses>
21+
<license>
22+
<name>Apache License, Version 2.0</name>
23+
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
24+
</license>
25+
</licenses>
26+
27+
<properties>
28+
<license.licenseName>apache_v2</license.licenseName>
29+
30+
<javaVersion>11</javaVersion>
31+
<maven.compiler.release>${javaVersion}</maven.compiler.release>
32+
33+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
34+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
35+
36+
<!-- Dependency-Versions -->
37+
<vaadin.version>23.1.4</vaadin.version>
38+
</properties>
39+
40+
41+
<dependencyManagement>
42+
<dependencies>
43+
<dependency>
44+
<groupId>com.vaadin</groupId>
45+
<artifactId>vaadin-bom</artifactId>
46+
<type>pom</type>
47+
<scope>import</scope>
48+
<version>${vaadin.version}</version>
49+
</dependency>
50+
</dependencies>
51+
</dependencyManagement>
52+
53+
<dependencies>
54+
<dependency>
55+
<groupId>com.vaadin</groupId>
56+
<artifactId>vaadin-core</artifactId>
57+
</dependency>
58+
<dependency>
59+
<groupId>com.xdev-software</groupId>
60+
<artifactId>vaadin-addon-template</artifactId>
61+
<version>${project.version}</version>
62+
</dependency>
63+
<dependency>
64+
<groupId>org.slf4j</groupId>
65+
<artifactId>slf4j-simple</artifactId>
66+
</dependency>
67+
</dependencies>
68+
69+
<build>
70+
<finalName>${project.artifactId}</finalName>
71+
72+
<plugins>
73+
<!-- Jetty plugin for easy testing without a server -->
74+
<plugin>
75+
<groupId>org.eclipse.jetty</groupId>
76+
<artifactId>jetty-maven-plugin</artifactId>
77+
<version>10.0.11</version>
78+
<configuration>
79+
<scan>1</scan>
80+
</configuration>
81+
</plugin>
82+
<plugin>
83+
<groupId>com.vaadin</groupId>
84+
<artifactId>vaadin-maven-plugin</artifactId>
85+
<version>${vaadin.version}</version>
86+
<executions>
87+
<execution>
88+
<goals>
89+
<goal>prepare-frontend</goal>
90+
</goals>
91+
</execution>
92+
</executions>
93+
</plugin>
94+
<plugin>
95+
<groupId>org.apache.maven.plugins</groupId>
96+
<artifactId>maven-compiler-plugin</artifactId>
97+
<version>3.10.1</version>
98+
<configuration>
99+
<release>${maven.compiler.release}</release>
100+
</configuration>
101+
</plugin>
102+
<plugin>
103+
<groupId>org.apache.maven.plugins</groupId>
104+
<artifactId>maven-war-plugin</artifactId>
105+
<version>3.3.2</version>
106+
<configuration>
107+
<failOnMissingWebXml>false</failOnMissingWebXml>
108+
</configuration>
109+
</plugin>
110+
</plugins>
111+
</build>
112+
113+
<profiles>
114+
<profile>
115+
<id>production</id>
116+
<properties>
117+
<vaadin.productionMode>true</vaadin.productionMode>
118+
</properties>
119+
<dependencies>
120+
<dependency>
121+
<groupId>com.vaadin</groupId>
122+
<artifactId>flow-server-production-mode</artifactId>
123+
</dependency>
124+
</dependencies>
125+
126+
<build>
127+
<plugins>
128+
<plugin>
129+
<groupId>com.vaadin</groupId>
130+
<artifactId>vaadin-maven-plugin</artifactId>
131+
<version>${vaadin.version}</version>
132+
<executions>
133+
<execution>
134+
<goals>
135+
<goal>prepare-frontend</goal>
136+
<goal>build-frontend</goal>
137+
</goals>
138+
</execution>
139+
</executions>
140+
</plugin>
141+
</plugins>
142+
</build>
143+
</profile>
144+
</profiles>
145+
146+
</project>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Manifest-Version: 1.0
2+
Vaadin-Package-Version: 1
3+
Vaadin-Addon: ${project.build.finalName}.${project.packaging}
4+
Implementation-Vendor: ${organization.name}
5+
Implementation-Title: ${project.name}
6+
Implementation-Version: ${project.version}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<assembly
3+
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
6+
<id>game-card</id>
7+
8+
<formats>
9+
<format>zip</format>
10+
</formats>
11+
12+
<!-- Do not use because we must put META-INF/MANIFEST.MF there. -->
13+
<includeBaseDirectory>false</includeBaseDirectory>
14+
15+
<fileSets>
16+
<fileSet>
17+
<directory>..</directory>
18+
<includes>
19+
<include>LICENSE</include>
20+
<include>README.md</include>
21+
</includes>
22+
</fileSet>
23+
<fileSet>
24+
<directory>target</directory>
25+
<outputDirectory></outputDirectory>
26+
<includes>
27+
<include>*.jar</include>
28+
<include>*.pdf</include>
29+
</includes>
30+
</fileSet>
31+
</fileSets>
32+
33+
<files>
34+
<!-- This is vaadin.com/directory related manifest needed in the
35+
zip package -->
36+
<file>
37+
<source>assembly/MANIFEST.MF</source>
38+
<outputDirectory>META-INF</outputDirectory>
39+
<filtered>true</filtered>
40+
</file>
41+
</files>
42+
</assembly>

0 commit comments

Comments
 (0)