Skip to content
Philippe Arteau edited this page Dec 12, 2016 · 11 revisions

Welcome to the burp-retire-js wiki!

Maven Plugin

###Basic Usage### Example for .pom file of project to be scanned in package phase:

<plugin>   
    <groupId>com.h3xstream.retirejs</groupId>
    <artifactId>retirejs-maven-plugin</artifactId>
    <version>2.1.0</version>
    <executions>
        <execution>
            <phase>package</phase>
            <goals>
                <goal>scan</goal>
            </goals>
        </execution>
    </executions>
</plugin>

Some configurations are available. breakOnFailure will fail the build if any insecure JavaScript libraries are found. webAppDirectory is ${basedir}/src/main/webapp by default. If it is different, you can specify it here or specify it in the resources section like so:

<resource>
    <directory>${basedir}/WebContent</directory>
</resource>
<plugin>     
    <groupId>com.h3xstream.retirejs</groupId>
    <artifactId>retirejs-maven-plugin</artifactId>
    <version>2.1.0</version>
    <configuration>
    <breakOnFailure>true</breakOnFailure>
    <webAppDirectory></webAppDirectory>
    </configuration>
    <executions>
        <execution>
            <phase>package</phase>
            <goals>
                <goal>scan</goal>
            </goals>
        </execution>
    </executions>
</plugin>
Clone this wiki locally