Skip to content

Bower #29

Open
Open
@kuwv

Description

@kuwv

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions