Skip to content

Instantly share code, notes, and snippets.

@ojacobson
Created September 24, 2012 17:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ojacobson/3777183 to your computer and use it in GitHub Desktop.
Save ojacobson/3777183 to your computer and use it in GitHub Desktop.
Bootstrap in Maven, draft 1
<plugin>
<groupId>org.lesscss</groupId>
<artifactId>lesscss-maven-plugin</artifactId>
<version>1.3.0</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<includes>
<include>bootstrap.less</include>
<include>responsive.less</include>
</includes>
<outputDirectory>${project.build.directory}/${project.build.finalName}/css</outputDirectory>
</configuration>
</plugin>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<goals>
<goal>compress</goal>
</goals>
</execution>
</executions>
<configuration>
<excludes>
<exclude>**/*.js</exclude>
<exclude>**/*.css</exclude>
</excludes>
<aggregations>
<aggregation>
<insertNewLine>true</insertNewLine>
<inputDir>${project.basedir}/src/main/js
</inputDir>
<output>${project.build.directory}/${project.build.finalName}/js/bootstrap.js
</output>
<includes>
<include>bootstrap-transition.js</include>
<include>bootstrap-alert.js</include>
<include>bootstrap-button.js</include>
<include>bootstrap-carousel.js</include>
<include>bootstrap-collapse.js</include>
<include>bootstrap-dropdown.js</include>
<include>bootstrap-modal.js</include>
<include>bootstrap-tooltip.js</include>
<include>bootstrap-popover.js</include>
<include>bootstrap-scrollspy.js</include>
<include>bootstrap-tab.js</include>
<include>bootstrap-typeahead.js</include>
<include>bootstrap-affix.js</include>
</includes>
</aggregation>
</aggregations>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment