Twitter Bootstrap for Maven
Add this to the element of your pom.xml. The artifact is deployed to the Maven Central Repository.
<dependency> <groupId>com.efsavage.twitter.bootstrap</groupId> <artifactId>bootstrap-maven</artifactId> <version>2.3.1</version> </dependency>
The files will "mount" themselves at the following URLs:
- /ext/bootstrap/img/glyphicons-halflings.png (referenced from the css files)
- /ext/bootstrap/img/glyphicons-halflings-white.png (referenced from the css files)
This requires a Servlet 3.0 container, such as Jetty 8.
Minified vs. Full Versions
The minified versions of .css and .js files are used by default, append ?min=false to see the full versions.
This library contains a tld and tag files which will automatically be available to your web application when the jar is loaded. To include the tag library on your JSP page, include the following directive at the top:
<%@ taglib uri="http://efsavage.com/twitter-bootstrap" prefix="bs"
You can then use the tags as specified in the taglibs.md file. For example:
<bs:button text="Go" />
will render to:
<button class="btn" type="button">Go</button>
The files served have not been modified in any way from their original distribution.
Other "Mavenized" Projects
Note: See the Bootstrap Changelog for information about changes to the Bootstrap files themselves.
- Updated to Bootstrap version 2.3.1
- Additional taglibs
- Updated to Bootstrap version 2.2.2
- Added taglibs
- Updated to Bootstrap version 2.1.1
- Updated to Bootstrap version 2.0.4
- Fixed the image servlets
- Moved files under /ext/bootstrap/ parent directory.
- Updated to Bootstrap version 2.0.3
- Updated to Bootstrap version 2.0.2
- Updated to Bootstrap version 2.0.1
- Updated to Bootstrap version 2.0.0