14:14:11 [ERROR] 'dependencies.dependency.version' for…
- User
14:14:11 [ERROR] 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-sleuth:jar is missing. @ line 101, column 15 14:14:11 [ERROR] 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-zipkin:jar is missing. @ line 105, column 15
- Assistant
- User
I suddenly having ths error after update the spring cloud dependencies version to 2025.0.0. Could it cause the issue?
<artifactId>spring-cloud-dependencies</artifactId> - Assistant
- User
I am using spingboot 3.50
- Assistant
- User
write me a maven install command ignoring ssl
- Assistant
To run a Maven build ignoring SSL certificate errors (for example, if you're behind a proxy with a self-signed/invalid certificate or connecting to a repo with SSL issues), Maven itself does not have a direct parameter like
--ignore-ssl.
Common approaches to ignore SSL in Maven:
1. Use
-Dmaven.wagon.http.ssl.insecure=trueand-Dmaven.wagon.http.ssl.allowall=trueThese system properties instruct Maven's underlying wagon transport to disable SSL certificate checks and hostname verification.
Run:
mvn clean install -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=trueExplanation:
-Dmaven.wagon.http.ssl.insecure=true— skips certificate validation
- User
if I dun know what is the latest version, Can I just put LATEST?
- Assistant
Using
<version>LATEST</version>in Maven is not recommended and generally does not work reliably anymore.Why?
- Maven used to support the special versions
LATESTandRELEASE, which would point to the latest available or latest released version in a repository. - Modern Maven (since version 3+) disabled support for
LATESTandRELEASEversion keywords for dependency versions to avoid build non-reproducibility. - Most public repositories (including Maven Central) do not support metadata for these keywords, so Maven cannot resolve them properly.
- Using may cause builds to fail or behave inconsistently.
- Maven used to support the special versions
- User
I manually add the version Then I get this error: release version 1.8 not supported
- Assistant
- User
Is it related to this properties?
- Assistant
Yes, the
<java.version>1.8</java.version>property can be related to the problem, but , this property does nothing unless it is somewhere in your Maven build configuration (usually in the compiler plugin). - User
I am runing JDK17, guide me to fix it
- Assistant
Great, since you are running JDK 17, the
--release 1.8option and the attribute in the Maven compiler plugin is the recommended way to specify Java version compatibility. - User
15:03:44 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.14.0:compile (default-compile) on project hsm-service: Fatal error compiling: error: release version 1.8 not supported -> [Help 1]
Here is more infomation for the error
- Assistant