A maven dependency for adding Twitter's Bootstrap to a Java webapp
JavaScript Java
Latest commit 571ad69 Mar 12, 2013 @efsavage Update to 2.3.1
Failed to load latest commit information.
src/main Add name/value Mar 12, 2013
.gitignore Version 2.0.1 Mar 3, 2012
.travis.yml syntax Jun 28, 2012
README.md Update to 2.3.1 Mar 12, 2013
pom.xml [maven-release-plugin] prepare for next development iteration Mar 12, 2013
taglibs.md Update to 2.3.1 Mar 12, 2013


Twitter Bootstrap for Maven

Build Status

This library gives you a way to drop Twitter Bootstrap into your project as a Maven dependency, which means you don't have to include these third party files in your own source control.


Add this to the element of your pom.xml. The artifact is deployed to the Maven Central Repository.



The files will "mount" themselves at the following URLs:

  • /ext/bootstrap/css/bootstrap.css
  • /ext/bootstrap/css/bootstrap-responsive.css
  • /ext/bootstrap/js/bootstrap.js
  • /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