Error on spring boot starter web project - java

I'm tying to start a spring starter project.
I create the project from spring tool suite. after that I run "mvn clean install" but I got this.
¿How can I solve this problem?
C:\code\HUBLCY\ws\HubNvo>mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building HubNvo 0.1
[INFO] ------------------------------------------------------------------------
Downloading: https://repo2.maven.org/maven2/org/jboss/shrinkwrap/shrinkwrap-bom/1.2.3/shrinkwrap-bom-1.2.3.pom
Downloading: https://repo.spring.io/milestone/org/jboss/shrinkwrap/shrinkwrap-bom/1.2.3/shrinkwrap-bom-1.2.3.pom
Downloading: https://repo.spring.io/snapshot/org/jboss/shrinkwrap/shrinkwrap-bom/1.2.3/shrinkwrap-bom-1.2.3.pom
Downloading: https://dl.bintray.com/rabbitmq/maven-milestones/org/jboss/shrinkwrap/shrinkwrap-bom/1.2.3/shrinkwrap-bom-1.2.3.pom
Downloading: https://repo.maven.apache.org/maven2/org/jboss/shrinkwrap/shrinkwrap-bom/1.2.3/shrinkwrap-bom-1.2.3.pom
Downloading: https://repo2.maven.org/maven2/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-bom/2.2.0/shrinkwrap-resolver-bom-2.2.0.pom
Downloading: https://repo.spring.io/milestone/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-bom/2.2.0/shrinkwrap-resolver-bom-2.2.0.pom
Downloading: https://repo.spring.io/snapshot/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-bom/2.2.0/shrinkwrap-resolver-bom-2.2.0.pom
Downloading: https://dl.bintray.com/rabbitmq/maven-milestones/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-bom/2.2.0/shrinkwrap-resolver-bom-2.2.0.pom
Downloading: https://repo.maven.apache.org/maven2/org/jboss/shrinkwrap/resolver/shrinkwrap-resolver-bom/2.2.0/shrinkwrap-resolver-bom-2.2.0.pom
Downloading: https://repo2.maven.org/maven2/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-bom/2.0.0-alpha-8/shrinkwrap-descriptors-bom-2.0.0-alpha-8.pom
Downloading: https://repo.spring.io/milestone/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-bom/2.0.0-alpha-8/shrinkwrap-descriptors-bom-2.0.0-alpha-8.pom
Downloading: https://repo.spring.io/snapshot/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-bom/2.0.0-alpha-8/shrinkwrap-descriptors-bom-2.0.0-alpha-8.pom
Downloading: https://dl.bintray.com/rabbitmq/maven-milestones/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-bom/2.0.0-alpha-8/shrinkwrap-descriptors-bom-2.0.0-alpha-8.pom
Downloading: https://repo.maven.apache.org/maven2/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-bom/2.0.0-alpha-8/shrinkwrap-descriptors-bom-2.0.0-alpha-8.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.518 s
[INFO] Finished at: 2018-03-16T15:53:16-06:00
[INFO] Final Memory: 17M/127M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project hub: Could not resolve dependencies for project com.gh.app:hub:jar:0.1: Failed to collect dependencies at org.springframework.boot:spring-boot-starter-web:jar:2.0.0.RELEASE -> org.hibernate.validator:hibernate-validator:jar:6.0.7.Final: Failed to read artifact descriptor for org.hibernate.validator:hibernate-validator:jar:6.0.7.Final: Could not transfer artifact org.jboss.shrinkwrap:shrinkwrap-bom:pom:1.2.3 from/to repo2 (https://repo2.maven.org/maven2): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [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
"cmd" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.

It looks like you are unable to get the dependencies you need.
Something to do with org.jboss.shrinkwrap.
Failed to execute goal on project hub: Could not resolve dependencies
for project com.gh.app:hub:jar:0.1: Failed to collect dependencies at
org.springframework.boot:spring-boot-starter-web:jar:2.0.0.RELEASE ->
org.hibernate.validator:hibernate-validator:jar:6.0.7.Final: Failed to
read artifact descriptor for
org.hibernate.validator:hibernate-validator:jar:6.0.7.Final: Could not
transfer artifact org.jboss.shrinkwrap:shrinkwrap-bom:pom:1.2.3
from/to repo2 (https://repo2.maven.org/maven2):
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to
find valid certification path to requested target -> [Help 1] [ERROR]
I would verify that the maven instance you are using to build with is not overriding the repo location you should be using for Springboot.
Also, try cleaning out your ~/.m2/repository folder then running clean install again.

Related

Nexus can not download dependencies of spring-boot

I am using a nexus, which i did not configure. I log in with remote desktop on the system that runs windows server 2012. When i want to build my spring-boot application and i run the goal mvn clean package it downloands several dependencies and then fails with a connection refused error. I do not understand this. Why was is possible to download the first few, but not the spring-boot-starter-aop jar? What connection is refused? The one that is used to download the otheres? Here is my error report:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Application
[INFO] ------------------------------------------------------------------------
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/org/aspectj/aspectjweaver/1.9.6/aspectjweaver-1.9.6.pom
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/com/zaxxer/HikariCP/3.4.5/HikariCP-3.4.5.pom
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/org/springframework/spring-jdbc/5.3.6/spring-jdbc-5.3.6.pom
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/jakarta/transaction/jakarta.transaction-api/1.3.3/jakarta.transaction-api-1.3.3.pom
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/jakarta/persistence/jakarta.persistence-api/2.2.3/jakarta.persistence-api-2.2.3.pom
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/org/hibernate/hibernate-core/5.4.30.Final/hibernate-core-5.4.30.Final.pom
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/org/springframework/data/spring-data-jpa/2.4.8/spring-data-jpa-2.4.8.pom
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/org/springframework/spring-aspects/5.3.6/spring-aspects-5.3.6.pom
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/org/liquibase/liquibase-core/3.10.3/liquibase-core-3.10.3.pom
Downloading: http://192.168.1.142:8081/nexus/content/groups/public/org/postgresql/postgresql/42.2.19/postgresql-42.2.19.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.778 s
[INFO] Finished at: 2021-11-22T09:16:05+01:00
[INFO] Final Memory: 19M/67M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project ecg-worklist: Could not resolve dependencies for project de.mdeset.worklist:ecg-worklist:war:1.0.0: Failed to collect dependencies at org.springframework.boot:
ot-starter-data-jpa:jar:2.4.5 -> org.springframework.boot:spring-boot-starter-aop:jar:2.4.5 -> org.aspectj:aspectjweaver:jar:1.9.6: Failed to read artifact descriptor for org.aspectj:aspectjweaver:jar:
uld not transfer artifact org.aspectj:aspectjweaver:pom:1.9.6 from/to Nexus (http://192.168.1.142:8081/nexus/content/groups/public/): Connect to 192.168.1.142:8081 [/192.168.1.142] failed: Connection r
onnect -> [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
It is not downloading any of them.
If you look at the order, it is actually failing for the first one Downloading: http://192.168.1.142:8081/nexus/content/groups/public/org/aspectj/aspectjweaver/1.9.6/aspectjweaver-1.9.6.pom.
It is telling you it is downloading, but then during the first attempt it fails to connect.
My suggestion is to try the URL on your browser without maven first to see if you can access it: http://192.168.1.142:8081/nexus/content/groups/public/ in the browser
If download was successfull of any of those dependencies, you would see (downloading/downloaded)
Downloading from cv-release: https://arm./springframework/session/spring-session-bom/2021.0.3/spring-session-bom-2021.0.3.pom
Downloaded from cv-release: https://arm./org/springframework/session/spring-session-bom/2021.0.3/spring-session-bom-2021.0.3.pom (2.7 kB at 15 kB/s)

maven unable to run test

I have been trying to use mvn clean test, but I keep getting the following.
bash-3.2$ mvn clean test
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< >----------------------
[INFO] Building son 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/3.1.0/maven-clean-plugin-3.1.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:15 min
[INFO] Finished at: 2020-06-24T16:57:32-07:00
[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 (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/3.1.0/maven-clean-plugin-3.1.0.pom: Connect to repo.maven.apache.org:443 [repo.maven.apache.org/199.232.64.215] failed: Operation timed out (Connection timed out) -> [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
I've research and read that I need to use mvn clean:istall first, but everything keeps on failing. I have the following information on Apache Maven version 3.6.3 and java
version jdk1.8.0_231.jdk

Unable to download groovy.jar

Any help appreciated.
I'm new to Maven. I got the below command from tutorials point
mvn archetype:generate -DgroupId=com.tutorialpoint.app -DartifactId=camel-first-app -DarchetypeGroupId=org.apache.camel.archetypes -DarchetypeArtifactId=camel-archetype-spring -DinteractiveMode=false
it is failing with below error:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:3.0.1:generate (default-cli) # standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:3.0.1:generate (default-cli) # standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:3.0.1:generate (default-cli) # standalone-pom ---
Downloading:
http://repo.maven.apache.org/maven2/org/codehaus/groovy/groovy/1.8.3/groovy-1.8.3.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.981s
[INFO] Finished at: Tue Nov 14 23:11:42 IST 2017
[INFO] Final Memory: 10M/184M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) on project standalone-pom: Execution default-cli of goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate failed: Plugin org.apache.maven.plugins:maven-archetype-plugin:3.0.1 or one of its dependencies could not be resolved: Could not transfer artifact org.codehaus.groovy:groovy:jar:1.8.3 from/to central (http://repo.maven.apache.org/maven2): GET request of: org/codehaus/groovy/groovy/1.8.3/groovy-1.8.3.jar from central failed: Connection reset -> [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
Can someone please help.
The relevant error is pointing to a connection problem:
Could not transfer artifact org.codehaus.groovy:groovy:jar:1.8.3
from/to central (http://repo.maven.apache.org/maven2): GET request
of: org/codehaus/groovy/groovy/1.8.3/groovy-1.8.3.jar from central
failed: Connection reset
The command which you posted actually runs fine on my machine. If you execute this maven command and you do not have the Groovy libraries yet, you will see that it actually downloads the following files:
https://repo.maven.apache.org/maven2/org/codehaus/groovy/groovy/1.8.3/groovy-1.8.3.pom
https://repo.maven.apache.org/maven2/org/codehaus/groovy/groovy/1.8.3/groovy-1.8.3.jar
It might be that you have only access to the internet via a proxy. In this case you will need to setup a proxy in the Maven configuration.
This blog here contains a fairly good description on how to setup a proxy for Maven, so that Maven can access the repository libraries.
Another option to tackle your problem would be to manually download this file using your browser:
https://repo.maven.apache.org/maven2/org/codehaus/groovy/groovy/1.8.3/groovy-1.8.3.jar
And then install it in your repository manually using:
mvn install:install-file -Dfile=<path-to-file> -DgroupId=org.codehaus.groovy \
-DartifactId=groovy -Dversion=1.8.3 -Dpackaging=jar
But normally you should not have to do this manual download + installation. Maven should be doing this for you.

how to change dcm4chee ui

I am a new java developer, I'm trying to run dcm4chee project and after handling a lot of trouble, finally I successfully ran it.
now i want to change dcm4chee UI, but any change in the source will not end up output changes.
commands that I use to run are:
d:
cd D:\source\cleanversion\dcm4jboss-all\dcm4jboss-build
del /F target\dcm4chee-2.19.0-SNAPSHOT-mysql.zip
ant mysql-dist
rd /s /q c:\apps\dcm4chee-2.19.0-SNAPSHOT-mysql
unzip.exe -o -qq D:\source\cleanversion\dcm4jboss-all\dcm4jboss-build\target\dcm4chee-2.19.0-SNAPSHOT-mysql.zip -d c:\apps\
c:
cd C:\apps\dcm4chee-2.19.0-SNAPSHOT-mysql\bin
install_jboss.bat c:\apps\jboss-4.2.3.GA
cd C:\apps\dcm4chee-2.19.0-SNAPSHOT-mysql\sql
mysql -uroot -proot
drop database pacsdb;
create database pacsdb;
drop database arrdb;
create database pacsdb;
grant all on pacsdb.* to 'pacs'#'localhost' identified by 'pacs';
grant all on arrdb.* to 'arr'#'localhost' identified by 'arr';
\q
mysql -upacs -ppacs pacsdb < create.mysql
c:
cd C:\apps\dcm4chee-2.19.0-SNAPSHOT-mysql\bin
install_arr.bat C:\apps\dcm4chee-arr-3.0.11-mysql
c:
cd C:\apps\dcm4chee-web-3.0.2-mysql\bin
install.bat C:\apps\dcm4chee-2.19.0-SNAPSHOT-mysql
call C:\apps\dcm4chee-2.19.0-SNAPSHOT-mysql\bin\run.bat
my source code contains these folders:
-dcm4che14
-dcm4chee-arr
-dcm4chee-audit
-dcm4chee-docstore
-dcm4chee-xds-infoset
-dcm4chee-arc3-entities
-dcm4chee-icons
-dcm4chee-web-common
-dcm4chee-dashboard
-dcm4chee-usr
-dcm4chee-cleanup
-dcm4chee-web
-dcm4jboss-all
for example when I change "login.jsp","base-style.css" and some gif (logo.fig) from dcm4chee-web-common folder,
then I build the project with "ant mysql-dist" command, and create "dcm4chee-2.19.0-SNAPSHOT-mysql.zip" and follow the install instruction mentioned in http://www.marcilan.com/2012/11/installing-dcm4chee-2-7-2-with-mysql-and-weasis-web-viewer-under-windows-7/ but changes are not applied.
so I decided to download "dcm4chee-web-3.0.2-scr.zip" insted of "dcm4chee-web-3.0.2-mysql.zip" and try to manually build the dcm4chee-web source.
I use this command for that purpose:
cd D:\source\cleanversion\dcm4chee-web\dcm4chee-web-dist
mvn -Ddb=mysql assembly:assembly
and I got this error:
D:\source\cleanversion\dcm4chee-web\dcm4chee-web-dist>mvn -Ddb=mydsql assembly:a
ssembly
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for
dcm4che.dcm4chee:dcm4chee-web-dist:pom:3.0.2
[WARNING] The expression ${version} is deprecated. Please use ${project.version}
instead.
[WARNING] The expression ${version} is deprecated. Please use ${project.version}
instead.
[WARNING] The expression ${version} is deprecated. Please use ${project.version}
instead.
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten t
he stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support buildin
g such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Assemble Distribution for WEB3 3.0.2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-assembly-plugin:2.2-beta-5:assembly (default-cli) > package # d
cm4chee-web-dist >>>
[INFO]
[INFO] <<< maven-assembly-plugin:2.2-beta-5:assembly (default-cli) < package # d
cm4chee-web-dist <<<
[INFO]
[INFO] --- maven-assembly-plugin:2.2-beta-5:assembly (default-cli) # dcm4chee-we
b-dist ---
[INFO] Reading assembly descriptor: src/main/assembly/bin.xml
Downloading: http://snapshots.repository.codehaus.org/dcm4che/dcm4chee/dcm4chee-
web-ear/3.0.2/dcm4chee-web-ear-3.0.2.pom
Downloading: http://download.java.net/maven/2/dcm4che/dcm4chee/dcm4chee-web-ear/
3.0.2/dcm4chee-web-ear-3.0.2.pom
Downloading: http://download.java.net/maven/glassfish/dcm4che/dcm4chee/dcm4chee-
web-ear/3.0.2/dcm4chee-web-ear-3.0.2.pom
Downloading: http://snapshots.repository.codehaus.org/dcm4che/dcm4chee/dcm4chee-
web-urlprovider/3.0.2/dcm4chee-web-urlprovider-3.0.2.pom
Downloading: http://download.java.net/maven/2/dcm4che/dcm4chee/dcm4chee-web-urlp
rovider/3.0.2/dcm4chee-web-urlprovider-3.0.2.pom
Downloading: http://download.java.net/maven/glassfish/dcm4che/dcm4chee/dcm4chee-
web-urlprovider/3.0.2/dcm4chee-web-urlprovider-3.0.2.pom
Downloading: http://snapshots.repository.codehaus.org/dcm4che/dcm4chee/dcm4chee-
web-licenseprovider/3.0.2/dcm4chee-web-licenseprovider-3.0.2.pom
Downloading: http://download.java.net/maven/2/dcm4che/dcm4chee/dcm4chee-web-lice
nseprovider/3.0.2/dcm4chee-web-licenseprovider-3.0.2.pom
Downloading: http://download.java.net/maven/glassfish/dcm4che/dcm4chee/dcm4chee-
web-licenseprovider/3.0.2/dcm4chee-web-licenseprovider-3.0.2.pom
Downloading: http://snapshots.repository.codehaus.org/dcm4che/dcm4chee/dcm4chee-
dashboard-sar-auditlog/3.0.2/dcm4chee-dashboard-sar-auditlog-3.0.2.pom
Downloading: http://download.java.net/maven/2/dcm4che/dcm4chee/dcm4chee-dashboar
d-sar-auditlog/3.0.2/dcm4chee-dashboard-sar-auditlog-3.0.2.pom
Downloading: http://download.java.net/maven/glassfish/dcm4che/dcm4chee/dcm4chee-
dashboard-sar-auditlog/3.0.2/dcm4chee-dashboard-sar-auditlog-3.0.2.pom
Downloading: http://snapshots.repository.codehaus.org/dcm4che/dcm4chee/dcm4chee-
web-sar-auditlog/3.0.2/dcm4chee-web-sar-auditlog-3.0.2.pom
Downloading: http://download.java.net/maven/2/dcm4che/dcm4chee/dcm4chee-web-sar-
auditlog/3.0.2/dcm4chee-web-sar-auditlog-3.0.2.pom
Downloading: http://download.java.net/maven/glassfish/dcm4che/dcm4chee/dcm4chee-
web-sar-auditlog/3.0.2/dcm4chee-web-sar-auditlog-3.0.2.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.588 s
[INFO] Finished at: 2015-08-07T18:57:53+04:30
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.
2-beta-5:assembly (default-cli) on project dcm4chee-web-dist: Failed to create a
ssembly: Failed to resolve dependencies for project: dcm4che.dcm4chee:dcm4chee-w
eb-dist:pom:3.0.2: Unable to get dependency information for dcm4che.dcm4chee:dcm
4chee-web-ear:ear:mydsql:3.0.2: Failed to retrieve POM for dcm4che.dcm4chee:dcm4
chee-web-ear:ear:mydsql:3.0.2: Failure to transfer dcm4che.dcm4chee:dcm4chee-web
-ear:pom:3.0.2 from http://snapshots.repository.codehaus.org was cached in the l
ocal repository, resolution will not be reattempted until the update interval of
codehaus-snapshots has elapsed or updates are forced. Original error: Could not
transfer artifact dcm4che.dcm4chee:dcm4chee-web-ear:pom:3.0.2 from/to codehaus-
snapshots (http://snapshots.repository.codehaus.org): Failed to transfer file: h
ttp://snapshots.repository.codehaus.org/dcm4che/dcm4chee/dcm4chee-web-ear/3.0.2/
dcm4chee-web-ear-3.0.2.pom. Return code is: 410 , ReasonPhrase:Gone.
[ERROR] dcm4che.dcm4chee:dcm4chee-web-ear:ear:3.0.2
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] codehaus-snapshots (http://snapshots.repository.codehaus.org, releases=t
rue, snapshots=true),
[ERROR] wicketstuff (http://wicketstuff.org/maven/repository, releases=true, sna
pshots=true),
[ERROR] dcm4che (http://www.dcm4che.org/maven2, releases=true, snapshots=true),
[ERROR] maven2-repository.dev.java.net (http://download.java.net/maven/2, releas
es=true, snapshots=true),
[ERROR] glassfish-repository.dev.java.net (http://download.java.net/maven/glassf
ish, releases=true, snapshots=true),
[ERROR] jboss (http://repository.jboss.org/nexus/content/groups/public, releases
=true, snapshots=true),
[ERROR] Maven Central (http://repo1.maven.org/maven2, releases=true, snapshots=f
alse),
[ERROR] ejb3unit (http://ejb3unit.sourceforge.net/maven2, releases=true, snapsho
ts=false),
[ERROR] central (http://repo.maven.apache.org/maven2, releases=true, snapshots=f
alse)
[ERROR] Path to dependency:
[ERROR] 1) dcm4che.dcm4chee:dcm4chee-web-dist:pom:3.0.2
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
D:\source\cleanversion\dcm4chee-web\dcm4chee-web-dist>
is this the right way to change UI?

Maven can't download its plugin (as clean), can this situation depend by a proxy configuration issue?

I am not so into Maven and I have the following problem:
I have download a project (that use Spring) from the SVN repository of my company and there are some building errors that seems depends by the fact that some dependencies are missing (for example all the Spring dependencies).
So I tried to select the project and do a Run as ---> Maven Clean as first step before building the project (also if it should perform the clean before the build if I do Maven build but this is not important at this stage) and I obtain this error message:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building GestioneUtenzeCloud 1.0.0-BUILD-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] Downloading: http://srvabc02.soft.it:8888/artifactory/plugins-release/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
[INFO] Downloading: http://srvabc02.soft.it:8888/artifactory/plugins-snapshot/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.561 s
[INFO] Finished at: 2015-08-19T12:35:43+02:00
[INFO] Final Memory: 7M/123M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (http://srvabc02.soft.it:8888/artifactory/plugins-release): srvabc02.soft.it: Unknown host srvabc02.soft.it -> [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
So it seems that it can't download the Maven plugin (in this case the clean plugin).
My computer is connected to Internet passing through the company proxy so I think that is can not download the Maven plugin because the proxy is not configured on my Eclipse...is it possible? What can I do to solve this issue?
Solved by myself. I have added the Maven proxy settings into the settings.xml file that is into the .m2 directory.
As explained here on the official documentation: https://maven.apache.org/guides/mini/guide-proxies.html

Categories