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

  • Home
  • SEARCH
  • 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 631801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:00:25+00:00 2026-05-13T20:00:25+00:00

I am working on a project where I am in charge of html, css

  • 0

I am working on a project where I am in charge of html, css and javascript. I found this maven-minify-plugin that seemed to just what I wanted.

Everything is good when I deploy using maven on the server, but when I am using Eclipse (STS, http://www.springsource.com/products/sts) to run the project on localhost no css nor js file is generated by the plugin.

Does anyone have experience with this Maven plugin, so they can tell me if it should be possible or not run on localhost? Does anyone have knowledge of another plugin I can use to (combine and) minify javascript and css files when running on localhost in Eclipse and also when deploying using Maven?

Any help appreciated…

—-extra information—-

I basicly just copied in what it said on the plugin webpage, so I have these bits in my pom.xml:

....
<build>
    <plugins>
        ....
        <plugin>
            <groupId>com.samaxes.maven</groupId>
            <artifactId>maven-minify-plugin</artifactId>
            <version>1.1</version>
            <executions>
                <execution>
                    <id>default-minify</id>
                    <phase>process-resources</phase>
                    <configuration>
                        <cssFiles>
                            ....
                            <param>forms.css</param>
                            <param>jquery.droppy.css</param>
                            <param>jquery.jgrowl.css</param>
                        </cssFiles>
                        <jsFiles>
                            ....
                            <param>jquery.droppy.js</param>
                            <param>jquery.jgrowl.js</param>
                        </jsFiles>
                        <jsFinalFile>script.js</jsFinalFile>
                        <linebreak>-1</linebreak>
                        <nomunge>false</nomunge>
                        <verbose>false</verbose>
                        <preserveAllSemiColons>false</preserveAllSemiColons>
                        <disableOptimizations>false</disableOptimizations>
                        <bufferSize>4096</bufferSize>
                    </configuration>
                    <goals>
                        <goal>minify</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>
....

Should/Can I bind the plugin to a difference phase?

I just use mvn clean package and move the snapshot into tomcat to deploy on the server.

I am unsure on how to explain how I run the webapp on localhost, but here goes. I have a vanilia tomcat, that I defined as a server in Eclipse and then defined that the webapp should always build in that “server”.

  • 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-13T20:00:25+00:00Added an answer on May 13, 2026 at 8:00 pm

    The minify plugin is typically bound to the process-resources phase. Is this what you did?

    Update: The plugin configuration looks fine (and this is confirmed by the fact that a command line build works as expected). Maybe check that you’re calling process-resources inside Eclipse on resource changes. To do so, right-click on your project, then Properties > Maven > Lifecycle Mapping and find something equivalent to the capture below (I’m using M2Eclipse 0.10.0 so it might be different for you).

    alt text

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

Sidebar

Related Questions

I'm working on asp.net (vb, maybe that can change something) I have a project
I have a working project that Im amending, it crashes after trying to use
I am working on a project that has a div with 32 children. I
I'm working on a project for iphone and android browsers that requires that I
I've been working on a project that involves ajax; it's a planner for school
I'm working with a little project that I'm planning on using HTML5 in. So
So I have this demo project almost completely working. public class Project { public
We have an existing MVC2 project that we just upgraded to MVC4 following first
I am programmatically generating HTML and want to link to a CSS file that
I am working on a project right now that involves receiving a message from

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.