Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You have the following options:</p> <ol> <li>Use separate groups for jshint processing only</li> <li>Create a different model by providing the wroFile to be used for jshint goal only</li> <li>Create a custom implementation of wroManagerFactory and exclude programmatically the files you don't want to be processed.</li> </ol> <p>In either case, you'll have to declare the plugin twice in pom.xml, since the configuration options will differ.</p> <p><strong>EDIT:</strong></p> <p>The solution is related to maven execution configuration rather than to wro4j-maven-plugin. </p> <p>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:</p> <pre><code>&lt;plugin&gt; &lt;groupId&gt;ro.isdc.wro4j&lt;/groupId&gt; &lt;artifactId&gt;wro4j-maven-plugin&lt;/artifactId&gt; &lt;version&gt;1.4.1&lt;/version&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;ex1&lt;/id&gt; &lt;goals&gt; &lt;goal&gt;run&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;targetGroups&gt;utils,libraries,app,jQueryMobile&lt;/targetGroups&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;execution&gt; &lt;id&gt;ex2&lt;/id&gt; &lt;goals&gt; &lt;goal&gt;jshint&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;options&gt;jquery,devel,evil,noarg,eqnull&lt;/options&gt; &lt;failNever&gt;false&lt;/failNever&gt; &lt;targetGroups&gt;utils,app&lt;/targetGroups&gt; &lt;wroFile&gt;${basedir}/src/main/webapp/WEB-INF/wro2.xml&lt;/wroFile&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload