Skip to content

Commit 1c0e190

Browse files
author
claudiamurialdo
committed
Add ci-cd and deploy-to-azure profiles
1 parent ec9716a commit 1c0e190

File tree

1 file changed

+102
-0
lines changed

1 file changed

+102
-0
lines changed

pom.xml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,4 +170,106 @@
170170
</plugin>
171171
</plugins>
172172
</build>
173+
<profiles>
174+
<profile>
175+
<id>ci-cd</id>
176+
<build>
177+
<plugins>
178+
<plugin>
179+
<groupId>org.apache.maven.plugins</groupId>
180+
<artifactId>maven-source-plugin</artifactId>
181+
<version>3.2.1</version>
182+
<executions>
183+
<execution>
184+
<id>attach-sources</id>
185+
<goals>
186+
<goal>jar-no-fork</goal>
187+
</goals>
188+
</execution>
189+
</executions>
190+
</plugin>
191+
<plugin>
192+
<groupId>org.apache.maven.plugins</groupId>
193+
<artifactId>maven-javadoc-plugin</artifactId>
194+
<version>3.2.0</version>
195+
<configuration>
196+
<excludePackageNames>com.genexus.gxserver.client.services.*</excludePackageNames>
197+
</configuration>
198+
<executions>
199+
<execution>
200+
<id>attach-javadocs</id>
201+
<goals>
202+
<goal>jar</goal>
203+
</goals>
204+
<configuration>
205+
<failOnError>false</failOnError>
206+
<quiet>true</quiet>
207+
</configuration>
208+
</execution>
209+
</executions>
210+
</plugin>
211+
<plugin>
212+
<groupId>org.apache.maven.plugins</groupId>
213+
<artifactId>maven-gpg-plugin</artifactId>
214+
<version>1.6</version>
215+
<executions>
216+
<execution>
217+
<id>sign-artifacts</id>
218+
<phase>verify</phase>
219+
<goals>
220+
<goal>sign</goal>
221+
</goals>
222+
<configuration>
223+
<!-- Prevent gpg from using pinentry programs. Fixes: gpg: signing failed: Inappropriate ioctl for device -->
224+
<gpgArguments>
225+
<arg>--pinentry-mode</arg>
226+
<arg>loopback</arg>
227+
</gpgArguments>
228+
</configuration>
229+
</execution>
230+
</executions>
231+
</plugin>
232+
</plugins>
233+
</build>
234+
</profile>
235+
<profile>
236+
<id>deploy-to-azure</id>
237+
<properties>
238+
</properties>
239+
<distributionManagement>
240+
<repository>
241+
<id>azure-devops</id>
242+
<name>Azure Artifacts</name>
243+
<url>https://pkgs.dev.azure.com/genexuslabs/3361ab3b-96bc-4a69-a37a-f2b255ff2f35/_packaging/releases/maven/v1</url>
244+
</repository>
245+
<snapshotRepository>
246+
<id>azure-devops</id>
247+
<name>Azure Artifacts</name>
248+
<url>https://pkgs.dev.azure.com/genexuslabs/3361ab3b-96bc-4a69-a37a-f2b255ff2f35/_packaging/snapshots/maven/v1</url>
249+
</snapshotRepository>
250+
</distributionManagement>
251+
</profile>
252+
<profile>
253+
<id>deploy-to-maven-central</id>
254+
<properties>
255+
</properties>
256+
<distributionManagement>
257+
</distributionManagement>
258+
<build>
259+
<plugins>
260+
<plugin>
261+
<groupId>org.sonatype.central</groupId>
262+
<artifactId>central-publishing-maven-plugin</artifactId>
263+
<version>0.8.0</version>
264+
<extensions>true</extensions>
265+
<configuration>
266+
<publishingServerId>central</publishingServerId>
267+
<autoPublish>true</autoPublish>
268+
<waitUntil>published</waitUntil>
269+
</configuration>
270+
</plugin>
271+
</plugins>
272+
</build>
273+
</profile>
274+
</profiles>
173275
</project>

0 commit comments

Comments
 (0)