Skip to content

Commit f04af3c

Browse files
berndjoschi
authored andcommitted
Add more properties and plugins to graylog-plugin-parent (Graylog2#2897)
1 parent 1cd3566 commit f04af3c

File tree

1 file changed

+106
-0
lines changed

1 file changed

+106
-0
lines changed

graylog-plugin-parent/pom.xml

+106
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,18 @@
4040

4141
<name>Graylog Plugin Parent POM</name>
4242

43+
<properties>
44+
<graylog.plugin-dir>/usr/share/graylog-server/plugin</graylog.plugin-dir>
45+
46+
<!-- Dependencies -->
47+
<auto-service.version>1.0-rc2</auto-service.version>
48+
49+
<!-- Plugin versions -->
50+
<jdeb.version>1.5</jdeb.version>
51+
<rpm-maven.version>2.1.5</rpm-maven.version>
52+
<license-maven.version>2.11</license-maven.version>
53+
</properties>
54+
4355
<dependencyManagement>
4456
<dependencies>
4557
<dependency>
@@ -61,4 +73,98 @@
6173
<scope>provided</scope>
6274
</dependency>
6375
</dependencies>
76+
77+
<build>
78+
<pluginManagement>
79+
<plugins>
80+
<plugin>
81+
<groupId>com.mycila</groupId>
82+
<artifactId>license-maven-plugin</artifactId>
83+
<version>${license-maven.version}</version>
84+
</plugin>
85+
86+
<plugin>
87+
<artifactId>jdeb</artifactId>
88+
<groupId>org.vafer</groupId>
89+
<version>${jdeb.version}</version>
90+
</plugin>
91+
92+
<plugin>
93+
<groupId>org.codehaus.mojo</groupId>
94+
<artifactId>rpm-maven-plugin</artifactId>
95+
<version>${rpm-maven.version}</version>
96+
</plugin>
97+
</plugins>
98+
</pluginManagement>
99+
100+
<plugins>
101+
<plugin>
102+
<groupId>com.mycila</groupId>
103+
<artifactId>license-maven-plugin</artifactId>
104+
<configuration>
105+
<skip>true</skip>
106+
</configuration>
107+
<executions>
108+
<execution>
109+
<goals>
110+
<goal>check</goal>
111+
</goals>
112+
</execution>
113+
</executions>
114+
</plugin>
115+
116+
<plugin>
117+
<artifactId>jdeb</artifactId>
118+
<groupId>org.vafer</groupId>
119+
<configuration>
120+
<deb>${project.build.directory}/${project.artifactId}-${project.version}.deb</deb>
121+
<dataSet>
122+
<data>
123+
<src>${project.build.directory}/${project.build.finalName}.jar</src>
124+
<type>file</type>
125+
<mapper>
126+
<type>perm</type>
127+
<prefix>${graylog.plugin-dir}</prefix>
128+
<filemode>644</filemode>
129+
<user>root</user>
130+
<group>root</group>
131+
</mapper>
132+
</data>
133+
</dataSet>
134+
</configuration>
135+
</plugin>
136+
137+
<plugin>
138+
<groupId>org.codehaus.mojo</groupId>
139+
<artifactId>rpm-maven-plugin</artifactId>
140+
<configuration>
141+
<group>Application/Internet</group>
142+
<prefixes>
143+
<prefix>/usr</prefix>
144+
</prefixes>
145+
<defineStatements>
146+
<defineStatement>_unpackaged_files_terminate_build 0</defineStatement>
147+
<defineStatement>_binaries_in_noarch_packages_terminate_build 0</defineStatement>
148+
</defineStatements>
149+
<defaultFilemode>644</defaultFilemode>
150+
<defaultDirmode>755</defaultDirmode>
151+
<defaultUsername>root</defaultUsername>
152+
<defaultGroupname>root</defaultGroupname>
153+
<mappings>
154+
<mapping>
155+
<directory>${graylog.plugin-dir}</directory>
156+
<sources>
157+
<source>
158+
<location>${project.build.directory}/</location>
159+
<includes>
160+
<include>${project.build.finalName}.jar</include>
161+
</includes>
162+
</source>
163+
</sources>
164+
</mapping>
165+
</mappings>
166+
</configuration>
167+
</plugin>
168+
</plugins>
169+
</build>
64170
</project>

0 commit comments

Comments
 (0)