Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #386 #803

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading