Skip to content

Commit 94413e3

Browse files
committed
Maven profile for specifying local repo via property instead of settings.xml
1 parent dd380d6 commit 94413e3

File tree

3 files changed

+31
-32
lines changed

3 files changed

+31
-32
lines changed

org.graalvm.python.embedding/pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@
7272
<configuration>
7373
<executable>${project.basedir}/../scripts/sigtest-check-embedding.sh</executable>
7474
<arguments>
75+
<argument>-s</argument>
7576
<argument>${session.request.userSettingsFile.path}</argument>
77+
<argument>-Dlocal.repo.url=${local.repo.url}</argument>
7678
</arguments>
7779
</configuration>
7880
</execution>

pom.xml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -69,32 +69,32 @@
6969
</modules>
7070
</profile>
7171
<profile>
72-
<id>release</id>
73-
<build>
74-
<plugins>
75-
<plugin>
76-
<groupId>org.apache.maven.plugins</groupId>
77-
<artifactId>maven-gpg-plugin</artifactId>
78-
<version>3.2.8</version>
79-
<configuration>
80-
<!-- For headless in-process signing using provided private key uncomment: -->
81-
<!-- <signer>bc</signer> -->
82-
<!-- The key contents must be provided via an environment variable MAVEN_GPG_KEY, which should contain
83-
private key in binary or ASCII-armored form (specifically in the GPG TSK export format).
84-
See https://maven.apache.org/plugins/maven-gpg-plugin/sign-mojo.html -->
85-
</configuration>
86-
<executions>
87-
<execution>
88-
<id>sign-artifacts</id>
89-
<phase>verify</phase>
90-
<goals>
91-
<goal>sign</goal>
92-
</goals>
93-
</execution>
94-
</executions>
95-
</plugin>
96-
</plugins>
97-
</build>
72+
<id>local-repo-profile</id>
73+
<activation>
74+
<property>
75+
<name>local.repo.url</name>
76+
</property>
77+
</activation>
78+
<pluginRepositories>
79+
<pluginRepository>
80+
<id>local-repo</id>
81+
<name>local-repo</name>
82+
<url>${local.repo.url}</url>
83+
</pluginRepository>
84+
</pluginRepositories>
85+
<repositories>
86+
<repository>
87+
<id>local-repo</id>
88+
<name>local-repo</name>
89+
<url>${local.repo.url}</url>
90+
<releases>
91+
<enabled>true</enabled>
92+
</releases>
93+
<snapshots>
94+
<enabled>true</enabled>
95+
</snapshots>
96+
</repository>
97+
</repositories>
9898
</profile>
9999
</profiles>
100100

scripts/sigtest-check-embedding.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#!/bin/bash
2+
# Note: any arguments are forwarded to Maven
23

3-
if [ $# -eq 0 ]; then
4-
echo "$0 requires one argument: path to settings.xml to use for Maven invocations"
5-
exit 1
6-
fi
74
set -xe
85

96
source="${BASH_SOURCE[0]}"
@@ -19,10 +16,10 @@ done
1916
project_root="$( cd -P "$( dirname "$source" )/.." && pwd )"
2017

2118
cd "${project_root}"
22-
classpath="$(./mvnw -s "$1" -q -pl org.graalvm.python.embedding exec:exec -Dexec.executable="echo" -Dexec.args='%classpath')"
19+
classpath="$(./mvnw "$@" -q -pl org.graalvm.python.embedding exec:exec -Dexec.executable="echo" -Dexec.args='%classpath')"
2320
exec_args="-BootCP -Static -Mode bin -FileName ./org.graalvm.python.embedding/snapshot.sigtest -ClassPath ${classpath} -b -PackageWithoutSubpackages org.graalvm.python.embedding"
2421
rc=0
25-
./mvnw -s "$1" exec:java@sigtest-tool -Dexec.args="${exec_args}" || rc=$?
22+
./mvnw "$@" exec:java@sigtest-tool -Dexec.args="${exec_args}" || rc=$?
2623
echo "Exit code from sigtest tool: ${rc}"
2724
if [ $rc -ne 95 ]; then
2825
exit 1

0 commit comments

Comments
 (0)