Skip to content

Commit 6ddd95f

Browse files
authored
#431: Attempt to fix new Maven deployment. (#457)
* #431: Attempt to fix new Maven deployment. * #431: Removed upload of reproducible artifacts. Considered automatic with new deployment plugin.
1 parent b70992c commit 6ddd95f

File tree

18 files changed

+134
-29
lines changed

18 files changed

+134
-29
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,22 +67,12 @@ jobs:
6767
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
6868

6969
- name: Verify reproducible build
70-
# Build fails on Windows with error "Failed to execute goal org.apache.maven.plugins:maven-artifact-plugin:3.5.0:compare (default-cli) on project openfasttrace-reporter-plaintext: Could not copy D:\a\openfasttrace\openfasttrace\reporter\plaintext\target\openfasttrace-reporter-plaintext-3.8.0.buildcompareto D:\a\openfasttrace\openfasttrace\target\openfasttrace-root-0.0.0.buildcompare"
70+
# Build fails on Windows with error: "Failed to execute goal org.apache.maven.plugins:maven-artifact-plugin:3.5.0:compare (default-cli) on project openfasttrace-reporter-plaintext: Could not copy D:\a\openfasttrace\openfasttrace\reporter\plaintext\target\openfasttrace-reporter-plaintext-3.8.0.buildcompareto D:\a\openfasttrace\openfasttrace\target\openfasttrace-root-0.0.0.buildcompare"
7171
if: ${{ matrix.os != 'windows-latest' }}
7272
run: |
7373
mvn --batch-mode -T 1C clean verify artifact:compare -DskipTests \
7474
-Djava.version=${{ matrix.java }}
7575
76-
- name: Archive aggregated reproducible build report
77-
uses: actions/upload-artifact@v4
78-
if: ${{ matrix.os != 'windows-latest' }}
79-
with:
80-
name: reproducible-build-report-${{ matrix.os }}-java-${{ matrix.java }}
81-
path: |
82-
target/openfasttrace-root-0.0.0.buildcompare
83-
target/openfasttrace-root-0.0.0.buildinfo
84-
if-no-files-found: error
85-
8676
- name: Archive oft binary
8777
uses: actions/upload-artifact@v4
8878
if: ${{ env.DEFAULT_OS == matrix.os && env.DEFAULT_JAVA == matrix.java }}

api/pom.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,12 @@
1313
<properties>
1414
<project.build.outputTimestamp>${reproducible.build.timestamp}</project.build.outputTimestamp>
1515
</properties>
16-
</project>
16+
<build>
17+
<plugins>
18+
<plugin>
19+
<groupId>org.sonatype.central</groupId>
20+
<artifactId>central-publishing-maven-plugin</artifactId>
21+
</plugin>
22+
</plugins>
23+
</build>
24+
</project>

core/pom.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,12 @@
2424
<scope>test</scope>
2525
</dependency>
2626
</dependencies>
27-
</project>
27+
<build>
28+
<plugins>
29+
<plugin>
30+
<groupId>org.sonatype.central</groupId>
31+
<artifactId>central-publishing-maven-plugin</artifactId>
32+
</plugin>
33+
</plugins>
34+
</build>
35+
</project>

exporter/common/pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,12 @@
2424
<scope>test</scope>
2525
</dependency>
2626
</dependencies>
27+
<build>
28+
<plugins>
29+
<plugin>
30+
<groupId>org.sonatype.central</groupId>
31+
<artifactId>central-publishing-maven-plugin</artifactId>
32+
</plugin>
33+
</plugins>
34+
</build>
2735
</project>

exporter/specobject/pom.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,12 @@
2828
<scope>test</scope>
2929
</dependency>
3030
</dependencies>
31-
</project>
31+
<build>
32+
<plugins>
33+
<plugin>
34+
<groupId>org.sonatype.central</groupId>
35+
<artifactId>central-publishing-maven-plugin</artifactId>
36+
</plugin>
37+
</plugins>
38+
</build>
39+
</project>

importer/lightweightmarkup/pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,12 @@
2929
<scope>test</scope>
3030
</dependency>
3131
</dependencies>
32+
<build>
33+
<plugins>
34+
<plugin>
35+
<groupId>org.sonatype.central</groupId>
36+
<artifactId>central-publishing-maven-plugin</artifactId>
37+
</plugin>
38+
</plugins>
39+
</build>
3240
</project>

importer/markdown/pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,12 @@
2828
<scope>test</scope>
2929
</dependency>
3030
</dependencies>
31+
<build>
32+
<plugins>
33+
<plugin>
34+
<groupId>org.sonatype.central</groupId>
35+
<artifactId>central-publishing-maven-plugin</artifactId>
36+
</plugin>
37+
</plugins>
38+
</build>
3139
</project>

importer/restructuredtext/pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,12 @@
2828
<scope>test</scope>
2929
</dependency>
3030
</dependencies>
31+
<build>
32+
<plugins>
33+
<plugin>
34+
<groupId>org.sonatype.central</groupId>
35+
<artifactId>central-publishing-maven-plugin</artifactId>
36+
</plugin>
37+
</plugins>
38+
</build>
3139
</project>

importer/specobject/pom.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,12 @@
2828
<scope>test</scope>
2929
</dependency>
3030
</dependencies>
31-
</project>
31+
<build>
32+
<plugins>
33+
<plugin>
34+
<groupId>org.sonatype.central</groupId>
35+
<artifactId>central-publishing-maven-plugin</artifactId>
36+
</plugin>
37+
</plugins>
38+
</build>
39+
</project>

importer/tag/pom.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,12 @@
2424
<scope>test</scope>
2525
</dependency>
2626
</dependencies>
27-
</project>
27+
<build>
28+
<plugins>
29+
<plugin>
30+
<groupId>org.sonatype.central</groupId>
31+
<artifactId>central-publishing-maven-plugin</artifactId>
32+
</plugin>
33+
</plugins>
34+
</build>
35+
</project>

0 commit comments

Comments
 (0)