File tree Expand file tree Collapse file tree 1 file changed +9
-25
lines changed Expand file tree Collapse file tree 1 file changed +9
-25
lines changed Original file line number Diff line number Diff line change 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 >
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 >
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 >
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 >
You can’t perform that action at this time.
0 commit comments