Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1060309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:18:30+00:00 2026-05-16T18:18:30+00:00

Java Q: I like CSS for simple web pages but loathe it when it

  • 0

Java Q:
I like CSS for simple web pages but loathe it when it comes to real world sites because you get css explosion and lots of repeating.

I am tempted to use Sass and or Compass but they are Ruby programs which will most likely require some interesting Maven + JRuby love to get working for Java Web app dev. This also makes it difficult if you are using Eclipse or any IDE that supports synchronization with a running web app.

Is there a better alternative for the hell that is CSS in the hell that is Java?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T18:18:31+00:00Added an answer on May 16, 2026 at 6:18 pm

    I went down the same road recently using LessCss, a similar technology. At first I tried to embed JRuby in my build lifecycle. But unfortunately Maven + JRuby is a monster, it’s slow, huge and buggy (half the time it wouldn’t even start because it would complain about the file path it was running on).

    Fortunately, there is now a JavaScript port of LessCss, which I now embed via Mozilla Rhino. I describe the process in this blog post.

    Yesterday though I took it to the next level, making a Maven LessCss Plugin to minimize POM configuration and code duplication. Unfortunately I can’t share it because it’s proprietary code for my current client, but the solution is simple:

    Use GMaven to create the Plugin, create an abstract base mojo that calls the LessCss compiler and several concrete implementations that configure the base mojo for different resource sets:

    e.g.

    • lesscss:compile
      compiles from all
      <resources> to
      ${project.build.outputDirectory}
    • lesscss:test-compile
      compiles from
      all <testResources> to
      ${project.build.testOutputDirectory}
    • lesscss:war-compile
      (compiles from
      all src/main/webapp to
      ${project.build.directory}/${project.build.finalName}
      , the exploded war directory)

    So while I can’t help you with SASS (apart from you asking the auth
    or to port it to Groovy, Java or JavaScript), I think I’ve shown you a feasible alternative.

    Of course you can also implement a Maven Plugin in java without Groovy (also embedding the JavaScript via Rhino), but I think it’s easier in Groovy.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had like to implement my own web-server in pure Java the web-server should
Basically, I want to mix in Java and Web (JavaScript, CSS, HTML, PHP, .NET,
I want to assemble a web module which looks like the following: src/main/java (has
Is there a jQuery like JAVA/Android library that uses CSS Selectors to parse the
I would like to develop a web application in Java/Spring/Hibernate serving as a business
I have a simple web app, it's done with several JSP pages. I would
i have written a method in java like this public boolean ADD(String ID,String Name,String
I'm trying to implement java like url pattern matching in php. Suppose i have
How can we draw the shapes in Java like we do in paint? For
Suppose that I have a 2D array (matrix) in Java like this... int[][] MyMat

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.