-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[build-jre] adding jdk.jdwp.agent for debugging
-Added an aLternative jre pom file to build it with jdk.jdwp.agent included, allowing to do remote debugging on it. - Modified the Makefile to only use this file when a DEV variable is declared on calling make. (like make <anytarget> DEV=1)
- Loading branch information
Showing
2 changed files
with
192 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>org.daisy</groupId> | ||
<artifactId>daisy</artifactId> | ||
<version>5</version> | ||
<relativePath /> | ||
</parent> | ||
<groupId>org.daisy.pipeline</groupId> | ||
<artifactId>jre</artifactId> | ||
<version>0.0.0-SNAPSHOT</version> | ||
<packaging>pom</packaging> | ||
<build> | ||
<pluginManagement> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-jlink-plugin</artifactId> | ||
<version>3.1.0</version> | ||
<configuration> | ||
<noHeaderFiles>true</noHeaderFiles> | ||
<noManPages>true</noManPages> | ||
<compress>1</compress> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</pluginManagement> | ||
</build> | ||
<profiles> | ||
<profile> | ||
<id>build-jre-linux</id> | ||
<!-- | ||
this profile needs to be run with JDK 17 | ||
--> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-jlink-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>default-cli</id> <!-- run directly from Makefile --> | ||
<goals> | ||
<goal>jlink</goal> | ||
</goals> | ||
<configuration> | ||
<classifier>linux</classifier> | ||
<addModules> | ||
<addModule>java.base</addModule> | ||
<addModule>java.desktop</addModule> | ||
<addModule>java.instrument</addModule> | ||
<addModule>java.security.jgss</addModule> | ||
<addModule>java.scripting</addModule> <!-- for gui --> | ||
<addModule>java.sql</addModule> | ||
<addModule>java.xml</addModule> | ||
<addModule>jdk.management.agent</addModule> | ||
<addModule>jdk.unsupported</addModule> <!-- for gui --> | ||
<addModule>jdk.zipfs</addModule> | ||
<addModule>jdk.jdwp.agent</addModule> | ||
</addModules> | ||
<modulePaths> | ||
<modulePath>src/main/jre/OpenJDK17U-jdk_x64_linux_hotspot_17.0.7_7/jdk-17.0.7+7/jmods</modulePath> | ||
</modulePaths> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
<profile> | ||
<id>build-jre-mac</id> | ||
<!-- | ||
this profile needs to be run with JDK 17 | ||
--> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-jlink-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>default-cli</id> <!-- run directly from Makefile --> | ||
<configuration> | ||
<classifier>mac</classifier> | ||
<addModules> | ||
<addModule>java.base</addModule> | ||
<addModule>java.desktop</addModule> | ||
<addModule>java.instrument</addModule> | ||
<addModule>java.security.jgss</addModule> | ||
<addModule>java.scripting</addModule> <!-- for gui --> | ||
<addModule>java.sql</addModule> | ||
<addModule>java.xml</addModule> | ||
<addModule>jdk.management.agent</addModule> | ||
<addModule>jdk.unsupported</addModule> <!-- for gui --> | ||
<addModule>jdk.zipfs</addModule> | ||
<addModule>jdk.jdwp.agent</addModule> | ||
</addModules> | ||
<modulePaths> | ||
<modulePath>src/main/jre/OpenJDK17U-jdk_x64_mac_hotspot_17.0.7_7/jdk-17.0.7+7/Contents/Home/jmods</modulePath> | ||
</modulePaths> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
<profile> | ||
<id>build-jre-win32</id> | ||
<!-- | ||
this profile needs to be run with JDK 17 | ||
--> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-jlink-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>default-cli</id> <!-- run directly from Makefile --> | ||
<configuration> | ||
<classifier>win32</classifier> | ||
<addModules> | ||
<addModule>java.base</addModule> | ||
<addModule>java.desktop</addModule> | ||
<addModule>java.instrument</addModule> | ||
<addModule>java.sql</addModule> | ||
<addModule>java.xml</addModule> | ||
<addModule>jdk.management.agent</addModule> | ||
<addModule>jdk.zipfs</addModule> | ||
<addModule>jdk.jdwp.agent</addModule>s | ||
</addModules> | ||
<modulePaths> | ||
<modulePath>src/main/jre/OpenJDK17U-jdk_x86-32_windows_hotspot_17.0.7_7/jdk-17.0.7+7/jmods</modulePath> | ||
</modulePaths> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
<profile> | ||
<id>build-jre-win64</id> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-jlink-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>default-cli</id> <!-- run directly from Makefile --> | ||
<configuration> | ||
<classifier>win64</classifier> | ||
<addModules> | ||
<addModule>java.base</addModule> | ||
<addModule>java.desktop</addModule> | ||
<addModule>java.instrument</addModule> | ||
<addModule>java.sql</addModule> | ||
<addModule>java.xml</addModule> | ||
<addModule>jdk.management.agent</addModule> | ||
<addModule>jdk.zipfs</addModule> | ||
<addModule>jdk.jdwp.agent</addModule> | ||
</addModules> | ||
<modulePaths> | ||
<modulePath>src/main/jre/OpenJDK17U-jdk_x64_windows_hotspot_17.0.7_7/jdk-17.0.7+7/jmods</modulePath> | ||
</modulePaths> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
</profiles> | ||
</project> |