Skip to content

Commit 17c9d70

Browse files
committed
Add maven pom build file
1 parent 9d53062 commit 17c9d70

File tree

1 file changed

+125
-0
lines changed

1 file changed

+125
-0
lines changed

pom.xml

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
4+
http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
<groupId>ch.cern.alice.o2</groupId>
7+
<artifactId>bkp-lhc-client</artifactId>
8+
<version>3.0.0</version>
9+
<packaging>jar</packaging>
10+
11+
<properties>
12+
<maven.compiler.source>16</maven.compiler.source>
13+
<maven.compiler.target>16</maven.compiler.target>
14+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15+
<os.version>linux-x86_64</os.version>
16+
<cern.dip.version>5.7.0</cern.dip.version>
17+
<protobuf.version>4.29.3</protobuf.version>
18+
<kafka.version>3.1.0</kafka.version>
19+
<slf4j-api.version>1.7.30</slf4j-api.version>
20+
<slf4j-simple.version>1.7.30</slf4j-simple.version>
21+
</properties>
22+
23+
<repositories>
24+
<repository>
25+
<id>cern-dip-repo</id>
26+
<url>https://nexus.web.cern.ch/nexus/content/repositories/public/</url>
27+
</repository>
28+
</repositories>
29+
30+
<dependencies>
31+
<dependency>
32+
<groupId>cern.dip</groupId>
33+
<artifactId>dip</artifactId>
34+
<version>${cern.dip.version}</version>
35+
<type>pom</type>
36+
</dependency>
37+
<dependency>
38+
<groupId>com.google.protobuf</groupId>
39+
<artifactId>protobuf-java</artifactId>
40+
<version>${protobuf.version}</version>
41+
</dependency>
42+
<dependency>
43+
<groupId>org.apache.kafka</groupId>
44+
<artifactId>kafka-clients</artifactId>
45+
<version>${kafka.version}</version>
46+
</dependency>
47+
<dependency>
48+
<groupId>org.slf4j</groupId>
49+
<artifactId>slf4j-api</artifactId>
50+
<version>${slf4j-api.version}</version>
51+
</dependency>
52+
<dependency>
53+
<groupId>org.slf4j</groupId>
54+
<artifactId>slf4j-simple</artifactId>
55+
<version>${slf4j-simple.version}</version>
56+
</dependency>
57+
</dependencies>
58+
59+
<build>
60+
<finalName>o2-bkp-lhc-client-v${project.version}</finalName>
61+
<plugins>
62+
<!-- Protobuf Maven\ Plugin for code generation -->
63+
<plugin>
64+
<groupId>org.xolstice.maven.plugins</groupId>
65+
<artifactId>protobuf-maven-plugin</artifactId>
66+
<version>0.6.1</version>
67+
<configuration>
68+
<protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.version}</protocArtifact>
69+
</configuration>
70+
<executions>
71+
<execution>
72+
<goals>
73+
<goal>compile</goal>
74+
<goal>test-compile</goal>
75+
</goals>
76+
</execution>
77+
</executions>
78+
</plugin>
79+
<!-- Compiler plugin -->
80+
<plugin>
81+
<artifactId>maven-compiler-plugin</artifactId>
82+
<version>3.8.1</version>
83+
<configuration>
84+
<source>${maven.compiler.source}</source>
85+
<target>${maven.compiler.target}</target>
86+
</configuration>
87+
</plugin>
88+
<!-- Maven JAR Plugin to generate JAR file -->
89+
<plugin>
90+
<groupId>org.apache.maven.plugins</groupId>
91+
<artifactId>maven-jar-plugin</artifactId>
92+
<version>3.4.2</version>
93+
<configuration>
94+
<archive>
95+
<manifest>
96+
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
97+
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
98+
</manifest>
99+
</archive>
100+
</configuration>
101+
</plugin>
102+
<plugin>
103+
<groupId>org.apache.maven.plugins</groupId>
104+
<artifactId>maven-shade-plugin</artifactId>
105+
<version>3.6.0</version>
106+
<executions>
107+
<execution>
108+
<phase>package</phase>
109+
<goals>
110+
<goal>shade</goal>
111+
</goals>
112+
<configuration>
113+
<createDependencyReducedPom>false</createDependencyReducedPom>
114+
<transformers>
115+
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
116+
<mainClass>alice.dip.AliDip2BK</mainClass>
117+
</transformer>
118+
</transformers>
119+
</configuration>
120+
</execution>
121+
</executions>
122+
</plugin>
123+
</plugins>
124+
</build>
125+
</project>

0 commit comments

Comments
 (0)