redhat-developer / redhat-developer/vscode-java
Maven Dependency is not Found
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- TypeScript
- Estrellas
- 2.3k
- Forks
- 546
- Merge medio
- 20 h 1 min
- PR fusionados (30 d)
- 11
Descripción
I currently have the problem that the extension fails to build my project because
message: Failure to find org.owasp:dependency-check-maven:jar:3.2.1 in https://<company-repository> was cached in the local repository, resolution will not be reattempted until the update interval of maven has elapsed or updates are forced;code: 0
The artifact can be found in the repository. The project also builds successfully from the command line with mvn compile. I also saw it download the mentioned dependency and it did end up in my local cache in ~/.m2/repository but the extension still shows this error when triggering a full rebuild. Restarting VSCode did not help. It seems there is some remnant of the failed resolution in an extension specific place.
What I really don't like about this is that I occasionally get into these kinds of problems and I have no real way to deal with them. All I can do is cleaning the workspace directory as mentioned in the troubleshooting guide but that is not really a way to work. In that sense they are usually not reproducible as well. If I can provide you with more information I'd be more than happy to but unfortunately even setting the log to verbose does not add anything to what I pasted above; it's just formatted differently.
Environment
- Operating System: OS X 10.13.4
- JDK version: 1.8.0_171
- Visual Studio Code version: 1.23.1
- Java extension version: 0.25.0
Steps To Reproduce
- open project (I opened https://github.com/zalando/logbook)
Current Result
- build fails with messages as shown above
Expected Result
- build succeeds
Additional Informations
- build succeeds from CLI
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Empieza reproduciendo el fallo en el proyecto logbook enlazado con las versiones indicadas de VS Code, Java extension, JDK y OS X, comparando la reconstrucción completa activada por la extensión con mvn compile. Rastrea dónde realiza la extensión la resolución de dependencias de Maven y verifica si borrar o actualizar su estado almacenado en caché hace que la compilación tenga éxito; se considera terminado cuando la dependencia se resuelve y la reconstrucción completa pasa sin limpiar el workspace.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- java
- Área
- build-system, devtools
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100