springuser2014 / wro4j

Automatically exported from code.google.com/p/wro4j
0 stars 0 forks source link

Maven artifact for wro4j-core and wro4j-extensions pulls unnecessary dependencies #150

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The following dependencies come by default with the wro4j dependency:

* mockito-all : this is only needed for testing

* spring: the dependency on springframework:spring is a bit too aggressive, 
especially if the app is not even using the optional spring filter :-). Is 
there a way this gets down-scaled to the specific spring artifact?

Workaround:
===========
        <dependency>
            <groupId>ro.isdc.wro4j</groupId>
            <artifactId>wro4j-core</artifactId>
            <version>1.3.1</version>
            <scope>runtime</scope>
            <exclusions>
                <exclusion>
                    <artifactId>mockito-all</artifactId>
                    <groupId>org.mockito</groupId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.google.closure</groupId>
            <artifactId>compiler</artifactId>
            <version>r561</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>ro.isdc.wro4j</groupId>
            <artifactId>wro4j-extensions</artifactId>
            <version>1.3.1</version>
            <scope>compile</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.springframework</groupId>
                    <artifactId>spring</artifactId>
                </exclusion>
                <exclusion>
                    <artifactId>mockito-all</artifactId>
                    <groupId>org.mockito</groupId>
                </exclusion>
            </exclusions>
        </dependency>

Original issue reported on code.google.com by abde.sa...@gmail.com on 23 Nov 2010 at 6:23

GoogleCodeExporter commented 9 years ago

Original comment by alex.obj...@gmail.com on 25 Nov 2010 at 4:00

GoogleCodeExporter commented 9 years ago

Original comment by alex.obj...@gmail.com on 11 Dec 2010 at 1:30