Olá pessoal, Fiz algumas alterações no os arquivos application-prod.properties e no pom.xml, quandou vou buildar ocorre o seguinte erro:
mvn clean package [INFO] Scanning for projects... [INFO] [INFO] -------------------------< br.com.alura:forum >------------------------- [INFO] Building forum 0.0.1-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- Downloading from central: https://repo.maven.apache.org/maven2/io/micrometer/micrometer-registry-prometheus/1.5.1/micrometer-registry-prometheus-1.5.1.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.591 s [INFO] Finished at: 2024-01-02T18:37:04-03:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project forum: Could not resolve dependencies for project br.com.alura:forum:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at io.micrometer:micrometer-registry-prometheus:jar:1.5.1: Failed to read artifact descriptor for io.micrometer:micrometer-registry-prometheus:jar:1.5.1: Could not transfer artifact io.micrometer:micrometer-registry-prometheus:pom:1.5.1 from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/io/micrometer/micrometer-registry-prometheus/1.5.1/micrometer-registry-prometheus-1.5.1.pom: A rede está fora de alcance (connect failed) -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
Arquivo application-prod.properties
server.port:8080
datasource
spring.datasource.driverClassName=org.h2.Driver spring.datasource.url=jdbc:h2:mem:alura-forum spring.datasource.username=sa spring.datasource.password=
jpa
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect spring.jpa.hibernate.ddl-auto=update spring.jpa.properties.hibernate.show_sql=true spring.jpa.properties.hibernate.format_sql=true
actuator
management.endpoint.health.show-details=always management.endpoints.web.exposure.include=health,info,metrics,prometheus
prometheus
management.metrics.enable.jvm=true management.metrics.export.prometheus.enabled=true management.metrics.distribution.sla.http.server.requests=50ms,100ms,200ms,300ms,500ms,ls management.metrics.tags.application=app-forum-api
h2
spring.h2.console.enabled=true spring.h2.console.path=/h2-console
jwt
forum.jwt.secret=rm'!@N=Ke!p8VTA2ZRKnMDQX5Uvm!m'D&]{@Vr?G;2?XhbC:Qa#9#eMLN}x3?JR3.2zrv)gYF^8:8>:XfB:Ww75N/emt9Yj[bQMNCWwW\J?N,nvH.<2.rw]e~vgak)X"v8HMH/7"2E
,^k@n<vE-wD3g9JWPy;CrY*.Kd2_D])=><D?YhBaSua5hW%{2]_FVXzb98FH^b[X3jzVER&:jw2<=c38=>L/zBq
}C6tTcCSVC^c]-L}&/
forum.jwt.expiration=86400000
info.app.name=@project.name@ info.app.description=@project.description@ info.app.version=@project.version@ info.app.encoding=@project.build.sourceEncoding@ info.app.java.version=@java.version@
arquivo pom.xml