Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
marwiik committed Jan 7, 2025
1 parent e2ee5a7 commit ecbbcd1
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions docs/maven.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ the plugin to your POM like this
<plugin>
<artifactId>jdeb</artifactId>
<groupId>org.vafer</groupId>
<version>1.11</version>
<version>1.12</version>
<executions>
<execution>
<phase>package</phase>
Expand Down Expand Up @@ -47,7 +47,7 @@ Or if you want to build a custom deb file
<extension>
<groupId>org.vafer</groupId>
<artifactId>jdeb</artifactId>
<version>1.11</version>
<version>1.12</version>
</extension>
</extensions>
<pluginManagement>
Expand Down Expand Up @@ -97,13 +97,16 @@ also be injected. If a changes file is used, the `Distribution` usually comes
from that file. The default changes file is called `CHANGES.txt`. See below
for the syntax of the content of the changes file.

Property replacement will also occur in any of the standard debian control
files: conffiles, preinst, postinst, prerm, postrm. This allows dynamic
configuration of the form:
Property replacement will also occur in the final filename, and any of the
standard debian control files: conffiles, preinst, postinst, prerm, postrm.
This allows dynamic configuration of the form:

/etc/[[artifactId]]/[[artifactId]].properties
/etc/[[artifactId]]/log4j.xml

Possible substitutions are `[[baseDir]]`, `[[buildDir]]`, `[[artifactId]]`,
`[[version]]`, `[[extension]]` and `[[groupId]]`.

If you now do a `mvn clean install`, the `deb` goal will be called and
artifacts consisting of the deb and potentially the changes file will
automatically be attached to the project.
Expand All @@ -115,7 +118,7 @@ section with any of the following options:

Element | Description | Required
---------------- | ------------------------------------------------------------------------------------------ | -----------------------------------------------------------------
deb | The debian package to be generated | No; defaults to `${buildDirectory}/${artifactId}_${version}_all.deb`
deb | The debian package to be generated | No; defaults to `[[buildDir]]/[[artifactId]]_[[version]]_all.[[extension]]`
type | Artifact type | No; defaults to `deb`
classifier | Artifact classifier | No; defaults to ''
controlDir | The directory containing the control files | No; defaults to `src/deb/control`
Expand Down Expand Up @@ -188,7 +191,7 @@ include a directory, a tarball, and a file in your deb package and then sign it
<plugin>
<artifactId>jdeb</artifactId>
<groupId>org.vafer</groupId>
<version>1.11</version>
<version>1.12</version>
<executions>
<execution>
<phase>package</phase>
Expand Down

0 comments on commit ecbbcd1

Please sign in to comment.