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

Bower #29

Open
kuwv opened this issue May 17, 2017 · 2 comments
Open

Bower #29

kuwv opened this issue May 17, 2017 · 2 comments

Comments

@kuwv
Copy link

kuwv commented May 17, 2017

Hello,

Bower can be built with maven. Please add this to your "api-gateway/monitor-dashboard" poms:

  <!-- deploy bower -->
  <plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>exec-maven-plugin</artifactId>
    <version>1.5.0</version>
    <configuration>
       <source>1.8</source>
       <target>1.8</target>
    </configuration>
    <executions>
      <execution>
        <id>exec-bower-install</id>
        <phase>generate-sources</phase>
        <configuration>
          <executable>bower</executable>
          <arguments>
            <argument>install</argument>
          </arguments>
          <workingDirectory>${basedir}/src/main/resources/webroot</workingDirectory>
        </configuration>
        <goals>
          <goal>exec</goal>
        </goals>
      </execution>

    </executions>
  </plugin>

  <!-- cleanup bower components -->
  <plugin>
    <artifactId>maven-clean-plugin</artifactId>
    <version>3.0.0</version>
    <configuration>
      <filesets>
        <fileset>
          <directory>${basedir}/src/main/resources/webroot/bower_components</directory>
        </fileset>
      </filesets>
    </configuration>
  </plugin>

This project has helped me a lot.
Thanks,
-J

@sczyh30
Copy link
Owner

sczyh30 commented May 30, 2017

Thanks for your advice! I'll add it in next version~

@alizarion
Copy link

hi i have created a pull request concerning this issue ;)

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

No branches or pull requests

3 participants