sw360 / sw360chores

WARNING - Work in Progress - It is not Bug Free! Use with Caution. This repository contains Dockerfiles and accompanying scripts that allow deployment of sw360 via docker
Eclipse Public License 1.0
13 stars 18 forks source link

Readme not correct #69

Closed mcjaeger closed 3 years ago

mcjaeger commented 4 years ago

it seem like executing the single line as given in the current readme.md:

$ mvn install -P deploy -Ddeploy.dir=/ABSOLUTE/PATH/TO/sw360chores/_deploy -DskipTests

is not working, because maven vields the following message:

[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce) @ sw360 ---
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequireProperty failed with message:
You must set at least the property 'base.deploy.dir'!

rather the command could be (works for me):

mvn package -P deploy -Dbase.deploy.dir=/ABSOLUTE/PATH/TO/sw360chores/_deploy -Dliferay.deploy.dir=/ABSOLUTE/PATH/TO/sw360chores/_deploy/deploy -Dbackend.deploy.dir=/ABSOLUTE/PATH/TO/sw360chores/_deploy/tomcat-9.0.17/webapps -Drest.deploy.dir=/ABSOLUTE/PATH/TO/sw360chores/_deploy/tomcat-9.0.17/webapps -DskipTests
maxhbr commented 4 years ago

It should be sufficient to call

mvn package -P deploy -Dbase.deploy.dir=/ABSOLUTE/PATH/TO/sw360chores/_deploy -DskipTests
camillem commented 4 years ago

Hi, It seems it's not sufficient here, while @mcjaeger solution works (and then I run into another problem - maven-thrift-plugin:0.1.11:compile (thrift-sources) @ datahandler --- [ERROR] thrift failed output: [...] Type "RestApiToken" has not been defined. ) but I guess it might be another story Camille

camillem commented 4 years ago

After having started over with a more recent Ubuntu version (19.10, to get the proper version of Thrift), it seems to also work with the proposed short version.

mcjaeger commented 3 years ago

works also for me now.