Skip to content

Commit bdd5702

Browse files
committed
pom profiles updated
1 parent fbda27f commit bdd5702

File tree

1 file changed

+9
-25
lines changed

1 file changed

+9
-25
lines changed

pom.xml

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
<maven.compiler.target>8</maven.compiler.target>
5757
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5858
<gpg.executable>gpg</gpg.executable>
59+
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
5960
</properties>
6061

6162
<dependencies>
@@ -113,29 +114,6 @@
113114
</executions>
114115
</plugin>
115116

116-
<!-- Plugin para firmar los artefactos con GPG -->
117-
<plugin>
118-
<groupId>org.apache.maven.plugins</groupId>
119-
<artifactId>maven-gpg-plugin</artifactId>
120-
<version>3.0.1</version>
121-
<executions>
122-
<execution>
123-
<id>sign-artifacts</id>
124-
<phase>verify</phase>
125-
<goals>
126-
<goal>sign</goal>
127-
</goals>
128-
</execution>
129-
</executions>
130-
<configuration>
131-
<gpgArguments>
132-
<arg>--pinentry-mode</arg>
133-
<arg>loopback</arg>
134-
</gpgArguments>
135-
<useAgent>false</useAgent> <!-- Deshabilita prompt de contraseña -->
136-
</configuration>
137-
</plugin>
138-
139117
<!-- Plugin para publicar en Central Publisher Portal -->
140118
<plugin>
141119
<groupId>org.sonatype.central</groupId>
@@ -160,6 +138,7 @@
160138
</activation>
161139
<build>
162140
<plugins>
141+
<!-- Plugin para firmar los artefactos con GPG -->
163142
<plugin>
164143
<groupId>org.apache.maven.plugins</groupId>
165144
<artifactId>maven-gpg-plugin</artifactId>
@@ -177,14 +156,19 @@
177156
<gpgArguments>
178157
<arg>--pinentry-mode</arg>
179158
<arg>loopback</arg>
159+
<arg>--batch</arg>
160+
<arg>--no-tty</arg>
161+
<arg>--passphrase-fd</arg>
162+
<arg>0</arg>
180163
</gpgArguments>
164+
<passphraseServerId>gpg.passphrase</passphraseServerId>
165+
<passphrase>${gpg.passphrase}</passphrase>
166+
<interactive>false</interactive>
181167
</configuration>
182168
</plugin>
183169
</plugins>
184170
</build>
185171
</profile>
186172
</profiles>
187173

188-
189-
190174
</project>

0 commit comments

Comments
 (0)