Enabled RPM creation from openmetadata-dist, this allows us to use rpm directly when working with amazonlinux (#4956)

This commit is contained in:
mohitdeuex 2022-05-14 21:08:31 +05:30 committed by GitHub
parent c6915ca510
commit de16e7547b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,6 +73,86 @@
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/libs</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>rpm-maven-plugin</artifactId>
<version>2.2.0</version>
<executions>
<execution>
<phase>install</phase>
<id>generate-rpm</id>
<goals>
<goal>rpm</goal>
</goals>
</execution>
</executions>
<configuration>
<group>Development/Tools</group>
<needarch>noarch</needarch>
<targetOS>Linux</targetOS>
<mappings>
<mapping>
<directory>/opt/openmetadata/bin</directory>
<filemode>755</filemode>
<sources>
<source>
<location>${project.basedir}/../bin</location>
</source>
</sources>
</mapping>
<mapping>
<directory>/opt/openmetadata/conf</directory>
<filemode>755</filemode>
<sources>
<source>
<location>${project.basedir}/../conf</location>
</source>
</sources>
</mapping>
<mapping>
<directory>/opt/openmetadata/bootstrap</directory>
<filemode>755</filemode>
<sources>
<source>
<location>${project.basedir}/../bootstrap</location>
</source>
</sources>
</mapping>
<mapping>
<directory>/opt/openmetadata/</directory>
<filemode>755</filemode>
<sources>
<source>
<location>${project.basedir}/../README.md</location>
</source>
</sources>
</mapping>
<mapping>
<directory>/opt/openmetadata/libs</directory>
<filemode>755</filemode>
<sources>
<source>
<location>${project.basedir}/target/libs</location>
</source>
</sources>
</mapping>
</mappings>
</configuration>
</plugin>
</plugins>
</build>