Differences between revisions 1 and 2
Revision 1 as of 2018-08-04 12:29:55
Size: 1365
Editor: ?MarkusKoschany
Comment: Create initial page
Revision 2 as of 2018-08-04 12:46:40
Size: 2085
Editor: ?MarkusKoschany
Comment: Update NoBuildSystem page
Deletions are marked like this. Additions are marked like this.
Line 35: Line 35:
=== jlibs / jh_installlibs ===

To install the resulting jar into the canonical directory for shared Java libraries (/usr/share/java), you can use either a debian/jlibs file or jh_installlibs in debian/rules.

The jlibs file installs one jar file per line into /usr/share/java, by default unversioned and versioned.

=== --with jh_maven_repo_helper ===

The jh_maven_repo_helper tool is included in Javahelper and intended to be used to install Maven artifacts into /usr/share/maven-repo. To make it work a *.poms file must be present in the debian directory. maven-repo-helper is a drop-in replacement. See the maven-repo-spec and the tutorials for maven-debian-helper to learn more about Maven packaging.

Translation(s): English

No build system

This is very similar to the Java 1x1 examples. Instead of using javac manually, the Javahelper tools, especially jh_build, become very useful.

intellij-annotations

Sources: intellij-annotations on Maven Central, Debian Package: intellij-annotations

Simple package without a proper build system. Javahelper and its jh_build tool are the ideal helpers to compile the source code and create a jar file.

javabuild / jh_build

The source code resides in a single directory. You can either use a debian/javabuild file or you can call jh_build in debian/rules directly.

Name of the jar file           directory with source code

The syntax is very simple. You can build multiple jar files by specifying one name and source directory per line. In this case there is only one org directory.

debian/rules:

%:
    dh $@ --with javahelper --with jh_maven_repo_helper

In order to make use of javahelper you have to build-depend on it in debian/control and pass --with javahelper to dh sequencer.

jlibs / jh_installlibs

To install the resulting jar into the canonical directory for shared Java libraries (/usr/share/java), you can use either a debian/jlibs file or jh_installlibs in debian/rules.

The jlibs file installs one jar file per line into /usr/share/java, by default unversioned and versioned.

--with jh_maven_repo_helper

The jh_maven_repo_helper tool is included in Javahelper and intended to be used to install Maven artifacts into /usr/share/maven-repo. To make it work a *.poms file must be present in the debian directory. maven-repo-helper is a drop-in replacement. See the maven-repo-spec and the tutorials for maven-debian-helper to learn more about Maven packaging.

osgi-core