qbicsoftware-archive / portlet-template

This repository provides a template for a QBiC Liferay Vaadin Portlet based on Maven.
1 stars 1 forks source link

Explicitly define version for Vaadin server, client, etc. #23

Closed sven1103 closed 6 years ago

sven1103 commented 6 years ago

Currently in the pom.xml the versions for Vaadin server, client, etc are not stated explicitly. We should change that asap.

And without this it seems not to always be able to pull the dependencies with Maven.

chahuistle commented 6 years ago

Maven cannot fetch the needed dependencies because it seems the mission is not being provided. See the output log of executing $mvn clean:

$ mvn build
[INFO] Scanning for projects...
Downloading: https://repository.liferay.com/nexus/content/repositories/liferay-public-releases/com/liferay/portal/com/vaadin/vaadin-bom/7.7.8/vaadin-bom-7.7.8.pom
...
[ERROR] Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: Could not transfer artifact com.vaadin:vaadin-bom:pom:7.7.8 from/to liferay-releases (https://repository.liferay.com/nexus/content/repositories/liferay-public-releases/com/liferay/portal/): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty @ line 69, column 16
[ERROR] 'dependencies.dependency.version' for com.vaadin:vaadin-server:jar is missing. @ line 84, column 15
[ERROR] 'dependencies.dependency.version' for com.vaadin:vaadin-client-compiled:jar is missing. @ line 88, column 15
[ERROR] 'dependencies.dependency.version' for com.vaadin:vaadin-client:jar is missing. @ line 98, column 15
[ERROR] 'dependencies.dependency.version' for com.vaadin:vaadin-themes:jar is missing. @ line 104, column 15
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project life.qbic:portlet-base:1.1 (/tmp/template_qbicportlet/pom.xml) has 5 errors
[ERROR]     Non-resolvable import POM: Could not transfer artifact com.vaadin:vaadin-bom:pom:7.7.8 from/to liferay-releases (https://repository.liferay.com/nexus/content/repositories/liferay-public-releases/com/liferay/portal/): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty @ line 69, column 16 -> [Help 2]
[ERROR]     'dependencies.dependency.version' for com.vaadin:vaadin-server:jar is missing. @ line 84, column 15
[ERROR]     'dependencies.dependency.version' for com.vaadin:vaadin-client-compiled:jar is missing. @ line 88, column 15
[ERROR]     'dependencies.dependency.version' for com.vaadin:vaadin-client:jar is missing. @ line 98, column 15
[ERROR]     'dependencies.dependency.version' for com.vaadin:vaadin-themes:jar is missing. @ line 104, column 15
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
chahuistle commented 6 years ago

Fixed in commit 20f1dd119c06f8eb913ecf510cdcee1be8c3626c