Skip to content

Commit 6c7daf1

Browse files
authored
Merge pull request #21 from TinaTiel/master
Update GPG maven settings for GPG v 2.1+, and add Build instructions to README
2 parents f2532e0 + ef3adee commit 6c7daf1

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,20 @@ binding you want (depends on the vendor)
100100

101101
If you miss an endpoint feel free to make a pull request. Any help is appreciated.
102102

103+
### Building
104+
105+
If you've forked the repository and want to run the install goal to use your fork in your own project, please be aware
106+
the artifacts generated require being signed via GPG.
107+
108+
Once you've installed GPG and created a key-pair, you'll be prompted for your passphrase everytime you run the build.
109+
You can automate this by supplying `gpg.passphrase` property during the build, for example:
110+
111+
```
112+
mvn verify -Dgpg.passphrase=YOURPASSPHRASE
113+
```
114+
115+
In IntelliJ, you can supply the property via `File > Settings > Build, Execution, Deployment > Maven > Runner > Properties`.
116+
Once the `gpg.passphrase` property has been set there, you won't be prompted everytime you run the build.
117+
103118
---
104119
**Thanks to Palakis for the great plugin!**

pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@
8888
<version>1.5</version>
8989
<configuration>
9090
<skip>false</skip>
91+
<gpgArguments>
92+
<arg>--pinentry-mode</arg>
93+
<arg>loopback</arg>
94+
</gpgArguments>
9195
</configuration>
9296
<executions>
9397
<execution>

src/test/resources/simplelogger.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ org.eclipse.jetty.LEVEL=OFF
44

55
# Default levels for the project
66
org.slf4j.simpleLogger.defaultLogLevel=info
7-
org.slf4j.simpleLogger.log.net.twasi.obsremotejava=debuggi
7+
org.slf4j.simpleLogger.log.net.twasi.obsremotejava=debug

0 commit comments

Comments
 (0)