sczyh30 / vertx-blueprint-microservice

Vert.x Blueprint Project - Micro-Shop microservice application
Apache License 2.0
772 stars 301 forks source link

Bower #29

Open kuwv opened 7 years ago

kuwv commented 7 years ago

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 commented 7 years ago

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

alizarion commented 6 years ago

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