DebianPackaging

Z Denik

Přejít na: navigace, hledání

[editovat] What needs to be packaged?

[editovat] What has been done?

Re-package release-1.2.3 to be suitable for debina/ubuntu.

There is a branch debian at Jaroslav's personal clone of the repository at http://source.apidesign.org/hg/html~html4j/. Check it out as

$ hg clone http://source.apidesign.org/hg/html~html4j/
$ cd html~html4j
$ hg up -C debian

The branch fixed various versioning issues and remove test classes and dependencies from the project. Remaining major dependency is OpenJavaFX (part of debian, but not ubuntu currently) needed for the boot-fx project (currently disabled; but it would be nice to have it enabled).

There is debian maven helper that can be executed in the repository as:

$ /usr/bin/mh_make -dfalse -tfalse -v

[editovat] Problem when building from sources

I did:

$ hg clone http://source.apidesign.org/hg/html~html4j/
$ cd html~html4j
$ hg up -C debian

Then I found some dependencies are missing so I created $HOME/.m2/settings.xml:

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
    <profiles>
        <profile>
            <id>nbprofile</id>
            <repositories>
                <repository>
                    <id>nb-repo</id>
                    <name>NetBeans Repo</name>
                    <url>http://bits.netbeans.org/nexus/content/groups/netbeans/</url>
                </repository>
            </repositories>
        </profile>
    </profiles>
     
    <activeProfiles>
        <activeProfile>nbprofile</activeProfile>
    </activeProfiles>
</settings>

I also needed to set in pom.xml netbeans.version to RELEASE70. Now 'mvn package' gives following failure:

Results :

Tests run: 6, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-bundle-plugin:2.3.5:bundle (default-bundle) @ net.java.html ---
[WARNING] Bundle org.netbeans.html:net.java.html:bundle:1.2.3 : Instructions in Export-Package that are never used: META-INF\.services\..*|META-INF\.services
Classpath: Jar:.

[ERROR] Bundle org.netbeans.html:net.java.html:bundle:1.2.3 : Exporting packages that are not on the Bundle-Classpath[Jar:dot]: [META-INF.services.*]
[ERROR] Error(s) found in bundle configuration
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]

I build on Debian last release using Open JDK 8 and Maven 3.0.5.

Build release-1.2.3 branch, if you want to build release the Java way. the debian branch is an attempt to adjust the dependencies to Debian existing ones.