GhidraMCP/pom.xml
Kirill Zhumarin 10142233e1 Build CI against Ghidra 12 via build.sh
- The workflow downloads a Ghidra 12 release (12.1.3 by default, any
  version via manual dispatch), runs ./build.sh (libraries, unit tests,
  package) and uploads the extension zip. It previously targeted Ghidra
  11.3.2 with an incomplete library set and copied the removed bridge.
- extension.properties gets the Ghidra version the package is built
  against instead of a hard-coded 12.1.2.
2026-11-24 01:34:08 +03:00

216 lines
7 KiB
XML

<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>
<groupId>com.lauriewired</groupId>
<artifactId>GhidraMCP</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>GhidraMCP</name>
<url>http://maven.apache.org</url>
<properties>
<!-- Ghidra version stamped into extension.properties; build.sh passes the installed one -->
<ghidra.version>12.1.2</ghidra.version>
</properties>
<dependencies>
<!-- Ghidra JARs as system-scoped dependencies -->
<dependency>
<groupId>ghidra</groupId>
<artifactId>Generic</artifactId>
<version>12.1.2</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/Generic.jar</systemPath>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.20.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/commons-lang3.jar</systemPath>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.25.4</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/log4j-api.jar</systemPath>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.25.4</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/log4j-core.jar</systemPath>
</dependency>
<dependency>
<groupId>ghidra</groupId>
<artifactId>Graph</artifactId>
<version>12.1.2</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/Graph.jar</systemPath>
</dependency>
<dependency>
<groupId>ghidra</groupId>
<artifactId>javahelp</artifactId>
<version>2.0.05</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/javahelp.jar</systemPath>
</dependency>
<dependency>
<groupId>ghidra</groupId>
<artifactId>SoftwareModeling</artifactId>
<version>12.1.2</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/SoftwareModeling.jar</systemPath>
</dependency>
<dependency>
<groupId>ghidra</groupId>
<artifactId>Project</artifactId>
<version>12.1.2</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/Project.jar</systemPath>
</dependency>
<dependency>
<groupId>ghidra</groupId>
<artifactId>DB</artifactId>
<version>12.1.2</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/DB.jar</systemPath>
</dependency>
<dependency>
<groupId>ghidra</groupId>
<artifactId>Docking</artifactId>
<version>12.1.2</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/Docking.jar</systemPath>
</dependency>
<dependency>
<groupId>ghidra</groupId>
<artifactId>FileSystem</artifactId>
<version>12.1.2</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/FileSystem.jar</systemPath>
</dependency>
<dependency>
<groupId>ghidra</groupId>
<artifactId>Decompiler</artifactId>
<version>12.1.2</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/Decompiler.jar</systemPath>
</dependency>
<dependency>
<groupId>ghidra</groupId>
<artifactId>Utility</artifactId>
<version>12.1.2</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/Utility.jar</systemPath>
</dependency>
<dependency>
<groupId>ghidra</groupId>
<artifactId>Base</artifactId>
<version>12.1.2</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/Base.jar</systemPath>
</dependency>
<dependency>
<groupId>ghidra</groupId>
<artifactId>Gui</artifactId>
<version>12.1.2</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/Gui.jar</systemPath>
</dependency>
<!-- Gson for JSON parsing (bundled with Ghidra) -->
<dependency>
<groupId>com.google.gson</groupId>
<artifactId>gson</artifactId>
<version>2.13.2</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/gson.jar</systemPath>
</dependency>
<!-- JUnit (test only) -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Use custom MANIFEST.MF -->
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.2</version>
<configuration>
<archive>
<manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
</archive>
<!-- Set a fixed name for the JAR without version -->
<finalName>GhidraMCP</finalName>
<!-- Exclude the App class -->
<excludes>
<exclude>**/App.class</exclude>
<exclude>extension.properties</exclude>
</excludes>
<!-- Make sure output directory is target for consistency -->
<outputDirectory>${project.build.directory}</outputDirectory>
</configuration>
</plugin>
<!-- The Assembly Plugin for creating the Ghidra extension ZIP -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<!-- Using the custom assembly descriptor -->
<descriptors>
<descriptor>src/assembly/ghidra-extension.xml</descriptor>
</descriptors>
<!-- The name of the final zip -->
<finalName>GhidraMCP-${project.version}</finalName>
<!-- Don't append the assembly ID -->
<appendAssemblyId>false</appendAssemblyId>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Copy dependencies to target/lib for the assembly -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.1.2</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
<includeScope>runtime</includeScope>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>