Skip to content

Commit c4f67d7

Browse files
committed
fix: wrong build qualifier is used
1 parent 2127722 commit c4f67d7

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

pom.xml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
3-
SPDX-FileCopyrightText: © Dart4E authors
3+
SPDX-FileCopyrightText: © The Dart4E authors
44
SPDX-FileContributor: Sebastian Thomschke
55
SPDX-License-Identifier: EPL-2.0
66
SPDX-ArtifactOfProjectHomePage: https://github.com/dart4e/dart4e-studio
@@ -13,7 +13,7 @@
1313
<parent>
1414
<groupId>com.vegardit.maven</groupId>
1515
<artifactId>vegardit-maven-parent</artifactId>
16-
<version>6.1.8</version>
16+
<version>6.1.9</version>
1717
</parent>
1818

1919
<groupId>org.dart4e.studio</groupId>
@@ -22,6 +22,7 @@
2222
<packaging>pom</packaging>
2323

2424
<name>dart4e-studio-parent</name>
25+
<url>https://github.com/dart4e/dart4e-studio</url>
2526
<inceptionYear>2022</inceptionYear>
2627
<organization>
2728
<name>The Dart4E Project</name>
@@ -67,6 +68,7 @@
6768
<properties>
6869
<java.version>21</java.version>
6970
<tycho.version>4.0.12</tycho.version>
71+
<jgit.dirtyWorkingTree>error</jgit.dirtyWorkingTree>
7072

7173
<!-- to prevent:
7274
[ERROR] Failed to execute goal com.hubspot.maven.plugins:dependency-scope-maven-plugin:0.10:check (check@validate) on project org.dart4e:
@@ -149,9 +151,20 @@
149151
<version>${tycho.version}</version>
150152
<configuration>
151153
<format>yyyyMMdd-HHmm</format>
154+
<timestampProvider>jgit</timestampProvider>
155+
<jgit.dirtyWorkingTree>${jgit.dirtyWorkingTree}</jgit.dirtyWorkingTree>
156+
<jgit.ignore>pom.xml</jgit.ignore>
157+
152158
<!-- replace SNAPSHOT version in the final product configuration -->
153159
<finalName>${project.artifactId}_${unqualifiedVersion}.${buildQualifier}</finalName>
154160
</configuration>
161+
<dependencies>
162+
<dependency>
163+
<groupId>org.eclipse.tycho</groupId>
164+
<artifactId>tycho-buildtimestamp-jgit</artifactId>
165+
<version>${tycho.version}</version>
166+
</dependency>
167+
</dependencies>
155168
</plugin>
156169
<plugin>
157170
<!-- https://tycho.eclipseprojects.io/doc/latest/tycho-p2-plugin/plugin-info.html -->
@@ -328,6 +341,18 @@
328341
</build>
329342

330343
<profiles>
344+
<profile>
345+
<!-- This profile prevents local maven builds from failing if uncommitted changes are present -->
346+
<id>local-dev</id>
347+
<activation>
348+
<property>
349+
<name>!env.CI</name>
350+
</property>
351+
</activation>
352+
<properties>
353+
<jgit.dirtyWorkingTree>warning</jgit.dirtyWorkingTree>
354+
</properties>
355+
</profile>
331356
<profile>
332357
<id>disable-tycho-packaging-plugin-if-executed-in-eclipse</id>
333358
<activation>

0 commit comments

Comments
 (0)