fxsosa / 1PBackend

TP del Primer Parcial para la materia Backend
0 stars 0 forks source link

El maven no esta compilando la aplicacion #1

Open fxsosa opened 1 year ago

fxsosa commented 1 year ago

Al hacer un mvn clean install de la aplicacion del profe, sale errores de dependencia, hay que pillarle la version de java posiblemente

fxsosa commented 1 year ago

`/usr/src/app # mvn clean install

[INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for py.com.progweb:prueba:war:0.0.1-SNAPSHOT [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: javax.enterprise:cdi-api:jar -> duplicate declaration of version 1.0-SP4 @ line 44, column 15 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] -----------------------< py.com.progweb:prueba >------------------------ [INFO] Building prueba 0.0.1-SNAPSHOT [INFO] --------------------------------[ war ]---------------------------------

[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 15.619 s [INFO] Finished at: 2023-02-21T20:23:43Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project prueba: Could not resolve dependencies for project py.com.progweb:prueba:war:0.0.1-SNAPSHOT: Failed to collect dependencies at org.jboss.as:jboss-as-ejb3:jar:7.1.0.CR1 -> org.jboss.as:jboss-as-connector:jar:7.1.0.CR1 -> org.jboss.as:jboss-as-server:jar:7.1.0.CR1 -> org.jboss.as:jboss-as-domain-http-interface:jar:7.1.0.CR1 -> org.jboss.com.sun.httpserver:httpserver:jar:1.0.0.Beta3: Failed to read artifact descriptor for org.jboss.com.sun.httpserver:httpserver:jar:1.0.0.Beta3: Could not transfer artifact org.jboss.com.sun.httpserver:httpserver:pom:1.0.0.Beta3 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [jboss-public-repository-group (http://repository.jboss.org/nexus/content/groups/public/, default, releases+snapshots)] -> [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`

fxsosa commented 1 year ago

aca tenes pibe https://stackoverflow.com/questions/67833372/getting-blocked-mirror-for-repositories-maven-error-even-after-adding-mirrors borrar el mirror blocked para /usr/share/maven/conf/settings.xml y ahi ya esta lleno de vulnerabilidades para MITM pero ya compilado

fxsosa commented 1 year ago

Nuevo error, tuve problemas con el plugin de sintaxis del vscode, me pedia java 17 o superior, cree un contenedor temporal con java 17 para usar los plugin de sintaxis y otro contenedor con java 8 para compilar, pero ahora tengo inconvenientes para compilar nuevamente