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 6888989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:05:54+00:00 2026-05-27T06:05:54+00:00

I need to exclude libaries (like jquery, knockoutjs, jqueryMobile and some extentions…) for jsHint.

  • 0

I need to exclude libaries (like jquery, knockoutjs, jqueryMobile and some extentions…) for jsHint.

but for the other goals I need them all.

EDIT:

I’ve created 2 wro files but still it takes all targetGroups.

wro2.xml with utils,app
wro.xml with utils,libraries,app,jQueryMobile

<plugins>
        <plugin>
            <groupId>ro.isdc.wro4j</groupId>
            <artifactId>wro4j-maven-plugin</artifactId>
            <version>1.4.1</version>
            <executions>
                <execution>
                    <id>ex1</id>
                    <goals>
                        <goal>jshint</goal>
                    </goals>
                </execution>
            </executions>
            <configuration>
                <!--jshint options-->
                <options>jquery,devel,evil,noarg,eqnull</options>
                <failNever>false</failNever>
                <targetGroups>utils,app</targetGroups>
                <wroFile>${basedir}/src/main/webapp/WEB-INF/wro2.xml</wroFile>
            </configuration>
        </plugin>
        <plugin>
            <groupId>ro.isdc.wro4j</groupId>
            <artifactId>wro4j-maven-plugin</artifactId>
            <version>1.4.1</version>
            <executions>
                <execution>
                    <id>ex2</id>
                    <phase>compile</phase>
                    <goals>
                        <goal>run</goal>
                    </goals>
                </execution>
            </executions>
            <configuration>
                <!--compile options-->
                <targetGroups>utils,libraries,app,jQueryMobile</targetGroups>
                <minimize>true</minimize>
                <destinationFolder>${basedir}/src/main/webapp/wro/</destinationFolder>
                <cssDestinationFolder>${basedir}/target/webapp/css/</cssDestinationFolder>
                <jsDestinationFolder>${basedir}/target/webapp/js/</jsDestinationFolder>
                <contextFolder>${basedir}/src/main/webapp/</contextFolder>
                <ignoreMissingResources>false</ignoreMissingResources>
                <wroFile>${basedir}/src/main/webapp/WEB-INF/wro.xml</wroFile>
                <wroManagerFactory>ro.isdc.wro.extensions.manager.standalone.GoogleStandaloneManagerFactory</wroManagerFactory>
            </configuration>
        </plugin>
    </plugins>
  • 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-27T06:05:55+00:00Added an answer on May 27, 2026 at 6:05 am

    You have the following options:

    1. Use separate groups for jshint processing only
    2. Create a different model by providing the wroFile to be used for jshint goal only
    3. Create a custom implementation of wroManagerFactory and exclude programmatically the files you don’t want to be processed.

    In either case, you’ll have to declare the plugin twice in pom.xml, since the configuration options will differ.

    EDIT:

    The solution is related to maven execution configuration rather than to wro4j-maven-plugin.

    So, instead of declaring the same plugin twice with different configurations, you declare it once with two executions and each execution has its own configuration. Example:

    <plugin>
        <groupId>ro.isdc.wro4j</groupId>
        <artifactId>wro4j-maven-plugin</artifactId>
        <version>1.4.1</version>
        <executions>
          <execution>
            <id>ex1</id>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
                <targetGroups>utils,libraries,app,jQueryMobile</targetGroups>
            </configuration>
          </execution>  
          <execution>
            <id>ex2</id>
            <goals>
              <goal>jshint</goal>
            </goals>
            <configuration>
              <options>jquery,devel,evil,noarg,eqnull</options>
              <failNever>false</failNever>
              <targetGroups>utils,app</targetGroups>
              <wroFile>${basedir}/src/main/webapp/WEB-INF/wro2.xml</wroFile>
        </configuration>            
          </execution>
        </executions>
      </plugin>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm using sanitize::paranoid on a string but i need to exclude a few special
I'm creating a mysql statement that uses a left join but need to exclude
I need to exclude some code from the compilation when targeting the .NET 3.5
I am aware of using .gitignore file to exclude some files being added, but
I need to use .gitignore to exclude a directory in the root of my
need ask you about some help. I have web app running in Net 2.0.
Need a function like: function isGoogleURL(url) { ... } that returns true iff URL
Need some help about with Memcache. I have created a class and want to
Need to insert selected text on the page into textarea. There must be some
Need to call a filter function on some options based on a radio selected

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.