Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build war #637

Open
zacaj opened this issue Apr 21, 2015 · 10 comments
Open

Can't build war #637

zacaj opened this issue Apr 21, 2015 · 10 comments

Comments

@zacaj
Copy link

zacaj commented Apr 21, 2015

while running mvn package -P web-war -pl web/war -am -DskipTests -Dsource.skip=true

I get the error

Loading "less.js" tasks...ERROR

Error: Cannot find module 'grunt-lib-contrib'
Loading "jscs.js" tasks...ERROR
Error: Cannot find module 'wrappy'
Loading "plato.js" tasks...ERROR
Error: Cannot find module 'plato'
Warning: Task "less:production" not found. Use --force to continue.

and the maven build fails

@mrburrito
Copy link
Contributor

Do you have node, npm and grunt-cli installed?

@zacaj
Copy link
Author

zacaj commented Apr 27, 2015

Yes.

@mrburrito
Copy link
Contributor

Are you building off the develop branch or master? I'm not able to reproduce this.

@zacaj
Copy link
Author

zacaj commented Apr 27, 2015

master, I'd assume. I just did

git clone https://github.com/lumifyio/lumify.git

like the readme says

@mrburrito
Copy link
Contributor

What does your build environment look like? (OS, memory, Java version, etc.)

@zacaj
Copy link
Author

zacaj commented Apr 27, 2015

the host is OSX 10.0, 16GB ram, Java 1.8. running docker in a centos vm, 2GB ram, java 1.7. Have tried running the command in both, with same error

@mrburrito
Copy link
Contributor

check and see if you have a grunt-lib-contrib directory in ${LUMIFY}/web/war/src/main/webapp/node_modules/grunt-contrib-less/node_modules

@zacaj
Copy link
Author

zacaj commented Apr 27, 2015

${LUMIFY} isn't set in my environment. Assuming it should be pointing to /opt/lumify-source, /web/war/src/main/webapp/node_modules/grunt-contrib-less does not contain a node_modules folder

@mrburrito
Copy link
Contributor

Just meant for ${LUMIFY} to be the directory you cloned. It doesn't need to be set. Ok. that missing directory is the problem, though I'm not sure what's causing it. It looks like grunt isn't downloading all of its dependencies. Can you go into the /web/war/src/main/webapp directory and re-run the following:

rm -rf node_modules
npm install -g inherits bower grunt
npm install -g grunt-cli

Then re-run the maven command (mvn package -P web-war -pl web/war -am -DskipTests -Dsource.skip=true) to trigger bower and download the dependencies.

Also, what version of node and npm do you have installed? I'm running node 0.12.2 and npm 2.7.6.

@zacaj
Copy link
Author

zacaj commented Apr 27, 2015

that seems to have fixed that issue. I'm now getting an error about bootstrap:

FileError: '../libs/bootstrap/less/bootstrap.less' wasn't found in less/lumify.less on line 27, column 1:

there doesn't seem to be a boostrap.less file anywhere on the docker machine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants