guilhermebhte 6 de mar. de 2020
O pm.xml
<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/xsd/maven-4.0.0.xsd" >
<modelVersion> 4.0.0</modelVersion>
<groupId> br.com.ghsistemas.usuarios</groupId>
<artifactId> usuarios</artifactId>
<version> 0.0.1</version>
<packaging> pom</packaging>
<modules>
<module> core</module>
<module> rest</module>
<module> utilitario</module>
</modules>
<parent>
<groupId> org.springframework.boot</groupId>
<artifactId> spring-boot-starter-parent</artifactId>
<version> 2.1.7.RELEASE</version>
<relativePath/>
</parent>
<properties>
<java.version> 1.8</java.version>
<java.encoding> UTF-8</java.encoding>
<maven.build.timestamp.format> dd/MM/yyyy HH:mm:ss</maven.build.timestamp.format>
<maven.compiler.source> ${ java . version } </maven.compiler.source>
<maven.compiler.target> ${ java . version } </maven.compiler.target>
<project.build.sourceEncoding> ${ java . encoding } </project.build.sourceEncoding>
<project.reporting.outputEncoding> ${ java . encoding } </project.reporting.outputEncoding>
<principal.ghsistemas.version> 0.0.1-SNAPSHOT</principal.ghsistemas.version>
<project.main.basedir> ${ project . basedir } </project.main.basedir>
<jjwt.version> 0.9.1</jjwt.version>
<passay.version> 1.4.0</passay.version>
<collections4.version> 4.2</collections4.version>
</properties>
<dependencies>
<dependency>
<groupId> org.projectlombok</groupId>
<artifactId> lombok</artifactId>
</dependency>
<dependency>
<groupId> joda-time</groupId>
<artifactId> joda-time</artifactId>
</dependency>
<dependency>
<groupId> junit</groupId>
<artifactId> junit</artifactId>
<scope> test</scope>
</dependency>
<dependency>
<groupId> org.mockito</groupId>
<artifactId> mockito-core</artifactId>
<scope> test</scope>
</dependency>
<dependency>
<groupId> org.springframework.boot</groupId>
<artifactId> spring-boot-starter-security</artifactId>
</dependency>
</dependencies>
</project>
guilhermebhte 6 de mar. de 2020
guilhermebhte 6 de mar. de 2020
Meu arquivo settings.xml, está normal.settings.xml (10,1,KB)
em anexo.
guilhermebhte 6 de mar. de 2020
[ INFO ] Scanning for projects ...
[ WARNING ]
[ WARNING ] Some problems were encountered while building the effective model for br . com . ghsistemas . principal : principal - core : jar : 0.0.1 - SNAPSHOT
[ WARNING ] 'dependencyManagement.dependencies.dependency.exclusions.exclusion.artifactId' for org . quartz - scheduler : quartz : jar with value '*' does not match a valid id pattern . @ org . springframework . boot : spring - boot - dependencies : 2.1.7 . RELEASE , C : \ Users \ Usuario \ . m2 \ repository \ org \ springframework \ boot \ spring - boot - dependencies \ 2.1.7 . RELEASE \ spring - boot - dependencies - 2.1.7 . RELEASE . pom , line 2598 , column 25
[ WARNING ]
[ WARNING ] Some problems were encountered while building the effective model for br . com . ghsistemas . principal : principal - rest : jar : 0.0.1 - SNAPSHOT
[ WARNING ] 'dependencyManagement.dependencies.dependency.exclusions.exclusion.artifactId' for org . quartz - scheduler : quartz : jar with value '*' does not match a valid id pattern . @ org . springframework . boot : spring - boot - dependencies : 2.1.7 . RELEASE , C : \ Users \ Usuario \ . m2 \ repository \ org \ springframework \ boot \ spring - boot - dependencies \ 2.1.7 . RELEASE \ spring - boot - dependencies - 2.1.7 . RELEASE . pom , line 2598 , column 25
[ WARNING ]
[ WARNING ] Some problems were encountered while building the effective model for br . com . ghsistemas . principal : principal - utilitario : jar : 0.0.1 - SNAPSHOT
[ WARNING ] 'dependencyManagement.dependencies.dependency.exclusions.exclusion.artifactId' for org . quartz - scheduler : quartz : jar with value '*' does not match a valid id pattern . @ org . springframework . boot : spring - boot - dependencies : 2.1.7 . RELEASE , C : \ Users \ Usuario \ . m2 \ repository \ org \ springframework \ boot \ spring - boot - dependencies \ 2.1.7 . RELEASE \ spring - boot - dependencies - 2.1.7 . RELEASE . pom , line 2598 , column 25
[ WARNING ]
[ WARNING ] Some problems were encountered while building the effective model for br . com . ghsistemas . principal : principal : pom : 0.0.1 - SNAPSHOT
[ WARNING ] 'dependencyManagement.dependencies.dependency.exclusions.exclusion.artifactId' for org . quartz - scheduler : quartz : jar with value '*' does not match a valid id pattern . @ org . springframework . boot : spring - boot - dependencies : 2.1.7 . RELEASE , C : \ Users \ Usuario \ . m2 \ repository \ org \ springframework \ boot \ spring - boot - dependencies \ 2.1.7 . RELEASE \ spring - boot - dependencies - 2.1.7 . RELEASE . pom , line 2598 , column 25
[ 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 ] Reactor Build Order :
[ INFO ]
[ INFO ] Sistema principal
[ INFO ] Principal rest
[ INFO ] Principal core
[ INFO ] Principal core
[ INFO ]
[ INFO ] ------------------------------------------------------------------------
[ INFO ] Building Sistema principal 0.0.1 - SNAPSHOT
[ INFO ] ------------------------------------------------------------------------
Downloading : http : // repo . maven . apache . org / maven2 / org / apache / maven / plugins / maven - clean - plugin / 3.1.0 / maven - clean - plugin - 3.1.0 . pom
[ INFO ] ------------------------------------------------------------------------
[ INFO ] Reactor Summary :
[ INFO ]
[ INFO ] Sistema principal ................................. FAILURE [ 1.418s ]
[ INFO ] Principal rest .................................... SKIPPED
[ INFO ] Principal core .................................... SKIPPED
[ INFO ] Principal core .................................... SKIPPED
[ INFO ] ------------------------------------------------------------------------
[ INFO ] BUILD FAILURE
[ INFO ] ------------------------------------------------------------------------
[ INFO ] Total time : 2.138 s
[ INFO ] Finished at : Fri Mar 06 18 : 23 : 30 BRT 2020
[ INFO ] Final Memory : 10 M / 245 M
[ INFO ] ------------------------------------------------------------------------
[ ERROR ] Plugin org . apache . maven . plugins : maven - clean - plugin : 3.1.0 or one of its dependencies could not be resolved : Failed to read artifact descriptor for org . apache . maven . plugins : maven - clean - plugin : jar : 3.1.0 : Could not transfer artifact org . apache . maven . plugins : maven - clean - plugin : pom : 3.1.0 from / to central ( http : // repo . maven . apache . org / maven2 ) : Failed to transfer file : http : // repo . maven . apache . org / maven2 / org / apache / maven / plugins / maven - clean - plugin / 3.1.0 / maven - clean - plugin - 3.1.0 . pom . Return code is : 501 , ReasonPhrase : HTTPS Required . -> [ 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 / PluginResolutionException
guilhermebhte 9 de mar. de 2020
Se o problema for este aonde alterar ?
Pois eu não incluir este http, assim ele busca de forma automática, pelo que entendo.
guilhermebhte 9 de mar. de 2020
Entendi, como vc falou, vc já trabalhou com Gradle .
guilhermebhte 12 de mar. de 2020
Alterei o settings.xml (1,2,KB)
Ele faz o downloading, mas de tudo, sendo que este projeto não está no endereço da web e sim local.
Failed to execute goal on project principal-core: Could not resolve dependencies for project br.com.ghsistemas.principal:principal-core:jar:0.0.1-SNAPSHOT: Could not find artifact br.com.ghsistemas.principal:principal-utilitario:jar:0.0.1-SNAPSHOT in repo-maven (https://repo.maven.apache.org/maven2 ) -> [Help 1]
O que pode ser ?