I am trying to build zeppelin locally with windows and babun/cygwin. This site got me headed in the right direction, but I run into the following error when the build gets to Web Application:
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.23:bower (bower install) on project zeppelin-web: Failed to run task: 'bower --allow-root install' failed. (error code 8) -> [Help 1]
I can go into the zeppelin-web directory and run bower install successfully, but I'm not sure where to go from here? If I try to do mvn install -DskipTests, it tries to run the bower command again.
If I try to "move on" and attempt to build under ../zeppelin-server it will say that it can't find the zeppelin-web dependency.
I think I would like to run bower install manually, as suggested by the site above, but I'm not sure where to go from there? Is it possible to pick up mvn where it left off? Any help or guidance would be greatly appreciated.
I ran into the same problem. First try to go to the zeppeling-web component and run there mvn package -DskipTests. It should give you more details about what is failing:
cd zeppelin-web
mvn package -DskipTests
In my case it was a problem with git proxies, since I am working in a corporate environment. At the console, issuing the command:
git config --global url."https://".insteadOf git://
did the trick.
You have to run the build command with sudo
This worked for me: run the following as a non-root user, (replace <goals> with your -P and -D flags, or remove for standalone install):
sudo env "PATH=$PATH" mvn clean install <goals> -DskipTests
sudo env "PATH=$PATH" mvn clean install <goals> -DskipTests -rf :zeppelin-web
Related
I am new on protractor platform and I tried to install and run the protractor locally on window, but I had no luck yet. Can anybody please tell me the exact step? I am able to install and run it globally.
For you
Create an empty folder as project base dir
Open a terminal and cd into the new folder
Execute npm init to generate package.json
Execute npm install -S protractor to install protractor locally and add it into project's dependencies. (you can check protractor will appear in package.json)
Prepare test script
Commit test script with package.json together
For others who want to run you code locally,
Clone your code to local
Open terminal and cd project base dir
Execute npm install to install dependencies to local
Execute protractor cli to execute test
I am building Jenkins Maven project. In the Jenkinsfile if I use mvn clean pom.xml and mvn install pom.xml in separate lines, the build is successful. However , mvn clean install pom.xml fails.
What is the reason for this?
We have gradle and npm installed on Linux box inside jenkins container where I am able to build through gulp build command but when I run
"gradle build"
Execution failed for task ':themes:portlet-layout:-portal-layouttpl:npmInstall'.
A problem occurred starting process 'command '/var/jenkins/workspace/Portal_RTC/liferay-workspace/build/node/node..
,I have got gradle npm installed and PATH set.I can say this running by npm --v , node --version.
I want to know what configuration I am missing to make it work.Also everytime I checked out the code I need to install modules again specially gulp else it start download from webhttp://mirrors.lax.liferay.com/nodejs.org/dist/v8.10.0/node-v8.10.0-linux-x64.tar.gz
when I define gradle-gulp plugin in build.gradle it says node is already installed. The imp things is the whole setup work on Developer machine on windows. Though they have copied node_modules folder from nodeJs home to their individual projects.
thanks
I have a new ubuntu 16.04 Virtual machine that I'm attempting to install thingsboard on using this documentation Contribution Guide and am not having any success:
This is what did did on the machine:
sudo apt-get install default-jre default-jdk
Export JAVA_HOME='/usr/lib/jvm/default-java'
git clone https://github.com/thingsboard/thingsboard.git
git checkout release-1.3
cd ${TB_WORK_DIR}/application
mvn clean install -DskipTests
Modified cd ${TB_WORK_DIR}/application/target/bin/install/install_dev_db.sh to my user and executed script.
I would like to use HSQLDB at the moment.
cd ${TB_WORK_DIR}/application
mvn clean install -DskipTests
Results:
NPM server starts but when I log onto localhost:3000 and attempt to login with tenant#thingsboard.org / tenant, I get the error
[Error API proxy error: Error connect ECONNREFUSED 127.0.0.1:8080]
I've triple checked that I do not have a typo.
Am I missing a step?
I'm not using a proxy and received the same error as above:
npm config set proxy null
npm config set https-proxy null npm config
npm config set registry http://registry.npmjs.org/
cat ~/.npmrc:
proxy=null
https-proxy=null
registry=http://registry.npmjs.org/ls
As you noted, this is the same as thingsboard/thingsboard issue 336...
with the only tip being:
I think you need the backend running in order to be able to log in.
Either you are behind a proxy
npm config set proxy http://myproxyblabla:myport
npm config set https-proxy http://myproxyblabla:myport
Or you are not, meaning your localhost thingsboard system should not use a proxy at all:
npm config set proxy null
npm config set https-proxy null
In both cases:
npm config set registry http://registry.npmjs.org/
Then try again to re-start your server and to log on.
Try this
1- make sure you have java 8 (JDK not JRE) ,
2- Run "mvn clean install -DskipTests" from root directory (not application directory)
3- hit 127.0.0.1:8080 not :3000 (this one if you build from UI folder)
I am using TeamCity as my CI server(mac).I am trying to build a web project. When I use grunt serve or grunt buildproduction after changing directory to the cloned folder,it's working perfectly fine.But when I do this via TeamCity server it is giving an error You need to have Ruby and Compass installed and in your system PATH for this task to work and gets aborted due to warnings. Ruby and Compass is already installed in the server.Please help me on this.
rm -rf $(pwd)/node_modules/*
rm -rf $(pwd)/bower_components/*
npm cache clear
npm install
npm install bower
npm install grunt-ftp-push --save-dev
bower install
grunt buildproduction
This is the Command Line buildstep which I used in Teamcity..
I would say you probably use a different user or the shell environment is different (interactive vs non-interactive) when you run these commands manually and when it runs through TC it can't find those packages in the environment/PATH