Giter Site home page Giter Site logo

Comments (6)

jdubois avatar jdubois commented on May 10, 2024

You're right... That was one of my main ideas at the beginning of the project, and I totally forgot it!!! So thanks for the bug report :-)

I don't think the yeoman-maven-plugin will help a lot, but it's worth checking out.

My idea at the moment (but I haven't tried it for real!) would be to run a "grunt build" by running something like the Maven Exec plugin: http://mojo.codehaus.org/exec-maven-plugin/usage.html

from generator-jhipster.

Merguez22 avatar Merguez22 commented on May 10, 2024

This project https://github.com/trecloux/yeoman-maven-samples show an example base on "yeoman-maven-plugin". The "yeoman-maven-plugin" simply execute "npm install", "bower install" and "grunt (test/)build".

The files structure is quiet different, but simply to mimic. Extract all CSS, SASS, JS, images, ... from webapp to a root subfolder to avoid to overwrite them or duplicate them. (i'm french, sorry or the English, i know you too ;-))

from generator-jhipster.

jdubois avatar jdubois commented on May 10, 2024

Yes, that's exactly what I want to do, run the bower/grunt commands from Maven, with the JHipster file structure.

I'm not sure it's a good idea to depend on yeoman-maven-plugin, as it's so simple we can just configure the maven exec plugin to do the same thing. But it's worth trying both options before deciding.

from generator-jhipster.

philippd avatar philippd commented on May 10, 2024

I did exactly that using maven exec plugin and two different scripts for unix/win. https://github.com/philippd/angular-spring-webmvc/blob/master/pom.xml

from generator-jhipster.

jdubois avatar jdubois commented on May 10, 2024

If @philippd solution already works, and doesn't need a plugin, I'll go for it! The only downside is the build scripts that need to be at the root of the project, can't those commands be run straight from the exec plugin?

from generator-jhipster.

jdubois avatar jdubois commented on May 10, 2024

I'll use the code from @philippd

It's going to be easy now that #32 is closed, but I'll need:

  • more testing
  • a good documentation to explain how you're supposed to use all this :-)

from generator-jhipster.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.