Skip to content

Commit a706c84

Browse files
committed
Move beagle dependency to auto-activating profile
beagle is not on Maven Central, so a hard dependency breaks CI. Use a profile that auto-activates when the beagle JAR exists in the local Maven repo, so exec:exec works locally but CI builds succeed without it.
1 parent 7280955 commit a706c84

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

pom.xml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,6 @@
6060
<version>${beast.version}</version>
6161
</dependency>
6262

63-
<!-- BEAGLE (optional in beast-base, must be explicit for module path) -->
64-
<dependency>
65-
<groupId>io.github.compevol</groupId>
66-
<artifactId>beagle</artifactId>
67-
<version>1.0</version>
68-
</dependency>
69-
7063
<!-- GUI (optional at runtime) -->
7164
<dependency>
7265
<groupId>io.github.compevol</groupId>
@@ -213,6 +206,20 @@
213206
</build>
214207

215208
<profiles>
209+
<!-- BEAGLE: auto-activates when beagle JAR is installed locally (needed for exec:exec) -->
210+
<profile>
211+
<id>beagle</id>
212+
<activation>
213+
<file><exists>${user.home}/.m2/repository/io/github/compevol/beagle/1.0/beagle-1.0.jar</exists></file>
214+
</activation>
215+
<dependencies>
216+
<dependency>
217+
<groupId>io.github.compevol</groupId>
218+
<artifactId>beagle</artifactId>
219+
<version>1.0</version>
220+
</dependency>
221+
</dependencies>
222+
</profile>
216223
<profile>
217224
<id>release</id>
218225
<build>

0 commit comments

Comments
 (0)