Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

192
Views
recuperar la versión de POM y mostrarla en la interfaz

Tengo un archivo POM que se ve así:

 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.company.jira.plugin</groupId> <artifactId>security-service</artifactId> <version> ${POM_JIRAVERSION}-${BUILD_NUMBER}-SNAPSHOT</version>

Tengo una página HTML donde quiero mostrar mi número de versión de POM, mi número de versión es dinámico como puede ver y cambia con cada compilación que hago en Jenkins. ¿Cómo puedo recuperar la versión de POM.xml y mostrarla en mi HTML?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Puede considerar usar PluginVersionImpl de Atlassian API.

Echa un vistazo a este enlace: PluginVersionImpl

Inyecte PluginVersionImpl en su código:

 PluginVersionImpl pluginVersionImpl;

Use el método para obtener la versión del complemento:

 String version = pluginVersionImpl.getVersion();
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!