P
P
parkito2016-03-31 16:30:31
Java
parkito, 2016-03-31 16:30:31

What is the problem of building a project in maven?

Hello, please help me to solve the problem.
With the help of maven I collect projects in IDEA without any problems. Decided to make handles in the console. I get an error

[email protected]: mvn clean install
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building homeWork1 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.197 s
[INFO] Finished at: 2016-03-31T16:25:59+03:00
[INFO] Final Memory: 9M/159M
[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 (https://repo.maven.apache.org/maven2): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty -> [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

Googled, the answers are mostly related to using proxies. I don't use it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
parkito, 2016-03-31
@parkito

Thanks aboyev for the tip. I do I
get

Clearing symlinks in /etc/ssl/certs...
done.
Updating certificates in /etc/ssl/certs...
WARNING: Skipping duplicate certificate Go_Daddy_Class_2_CA.pem
WARNING: Skipping duplicate certificate Go_Daddy_Class_2_CA.pem
173 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...

org.debian.security.InvalidKeystorePasswordException: Cannot open Java keystore. Is the password correct?
  at org.debian.security.KeyStoreHandler.load(KeyStoreHandler.java:68)
  at org.debian.security.KeyStoreHandler.<init>(KeyStoreHandler.java:52)
  at org.debian.security.UpdateCertificates.<init>(UpdateCertificates.java:65)
  at org.debian.security.UpdateCertificates.main(UpdateCertificates.java:51)
Caused by: java.io.IOException: Invalid keystore format
  at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:650)
  at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:55)
  at java.security.KeyStore.load(KeyStore.java:1226)
  at org.debian.security.KeyStoreHandler.load(KeyStoreHandler.java:66)
  ... 3 more
E: /etc/ca-certificates/update.d/jks-keystore exited with code 1.
done.

google it right
sudo dpkg --purge --force-depends ca-certificates-java
sudo apt-get install ca-certificates-java

Thanks to all. Problem solved.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question