CSS4J
CSS4J
css4j logo

CSS4J

CSS4J provides a CSS object model API for the Java™ platform, closely related to the CSSOM and DOM APIs.

Licensing

This software is released under a BSD-style license, although some individual files may have a different one (see LICENSES.txt in the distribution).

Direct installation to local Maven repository

The CSS4J artifacts (together with a few dependencies not available from Maven Central like JCLF or a recent XMLPull-XPP3) can be installed directly to your local Maven repository by using these scripts:

The scripts execute Maven plugins: if you run them from a directory which has a pom.xml file, you may experience problems or delays caused by Maven processing that file.

Building from Git

If you want to build css4j from the code that is currently at the Git repositories, you need a JDK version 15 or higher and a copy of the CSS4J-distribution repository, then run the tree.sh script. For example:

  • git clone https://github.com/css4j/css4j-dist.git css4j-snapshot
  • cd css4j-snapshot
  • ./tree.sh

After running the script you'll have a tree with all the modules, ready to build with Maven (just run mvn). Note that -as explained above- a couple of the dependencies are not in Maven Central: you probably need to install them manually first, which can be done easily with the aforementioned install-jclf.sh and install-xpp3.sh scripts.

Community - Support

There is a general forum that can be used for css4j support, and the development forum is intended for discussions about patches and APIs.