maven exclude plugin in dependency

Kaushik

I'm using the following Maven dependency:-

    <dependency>
        <groupId>com.opencsv</groupId>
        <artifactId>opencsv</artifactId>
        <version>3.1</version>
    </dependency>

The JRE version I'm using is 1.6, but the above dependency seems to use 1.7, assuming from the following in the opencsv's POM.

    <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.1</version>
        <configuration>
            <source>1.7</source>
            <target>1.7</target>
            <useIncrementalCompilation>true</useIncrementalCompilation>
        </configuration>
    </plugin>

I'm getting a Unsupported major.minor version 51.0 (unable to load class com.opencsv.bean.MappingStrategy).

Is there any way I can force the dependency to use JRE 1.6?

Lorenzo Boccaccia

No dice, what is on maven is built with that version.

what you can do, since the permissive Apache 2.0 license, is to download sources, change the compilation level in the root pom, build it and install it in a local maven repository under a version and name of your choosing.

I'd suggest to store it as a local maven repository within the project, instead of using a system dependency, but that's just personal preference.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

maven-dependency-plugin: exclude .jar files

From Dev

Maven: exclude dependency from shade plugin

From Dev

How to exclude a direct dependency of a Maven Plugin

From Dev

maven-shade-plugin : exclude a dependency and all its transitive dependencies

From Dev

How to use maven assembly plugin to exclude a package from dependency jar?

From Dev

How to exclude project dependency from classpath used by maven plugin

From Java

Exclude transitive dependency of Gradle plugin

From Dev

Exclude transitive dependency of Gradle plugin

From Dev

Maven resources plugin dependency

From Dev

exclude transitive shaded dependency in maven

From Dev

Maven exclude transitive dependency of a transitive dependency

From Dev

Maven exclude transitive dependency of a transitive dependency

From Dev

Grails: is it possible to exclude a plugin dependency of another plugin?

From Dev

maven-dependency-plugin can't exclude test-scope dependencies

From Dev

SpotBugs Maven Plugin exclude a directory

From Dev

How to scan maven plugin dependency?

From Dev

Include dependency in maven shade plugin

From Dev

How to show dependency of a plugin in Maven?

From Dev

How to scan maven plugin dependency?

From Dev

Maven Plugin Dependency : class not found

From Dev

Is there a Maven plugin that shows the dependency tree of a plugin?

From Dev

Exclude maven dependency by adding it as test scope?

From Dev

How to exclude the parent pom dependency inside inherited child dependency for Maven?

From Dev

Apache Maven Resources Plugin exclude a directory

From Dev

Exclude file directory, by assembly plugin MAVEN

From Dev

Exclude contents of directory with maven rpm plugin

From Dev

Maven war plugin archiveClasses but exclude a package

From Dev

Exclude release candidates in Versions Maven Plugin

From Dev

Appengine maven plugin exclude node_modules

Related Related

  1. 1

    maven-dependency-plugin: exclude .jar files

  2. 2

    Maven: exclude dependency from shade plugin

  3. 3

    How to exclude a direct dependency of a Maven Plugin

  4. 4

    maven-shade-plugin : exclude a dependency and all its transitive dependencies

  5. 5

    How to use maven assembly plugin to exclude a package from dependency jar?

  6. 6

    How to exclude project dependency from classpath used by maven plugin

  7. 7

    Exclude transitive dependency of Gradle plugin

  8. 8

    Exclude transitive dependency of Gradle plugin

  9. 9

    Maven resources plugin dependency

  10. 10

    exclude transitive shaded dependency in maven

  11. 11

    Maven exclude transitive dependency of a transitive dependency

  12. 12

    Maven exclude transitive dependency of a transitive dependency

  13. 13

    Grails: is it possible to exclude a plugin dependency of another plugin?

  14. 14

    maven-dependency-plugin can't exclude test-scope dependencies

  15. 15

    SpotBugs Maven Plugin exclude a directory

  16. 16

    How to scan maven plugin dependency?

  17. 17

    Include dependency in maven shade plugin

  18. 18

    How to show dependency of a plugin in Maven?

  19. 19

    How to scan maven plugin dependency?

  20. 20

    Maven Plugin Dependency : class not found

  21. 21

    Is there a Maven plugin that shows the dependency tree of a plugin?

  22. 22

    Exclude maven dependency by adding it as test scope?

  23. 23

    How to exclude the parent pom dependency inside inherited child dependency for Maven?

  24. 24

    Apache Maven Resources Plugin exclude a directory

  25. 25

    Exclude file directory, by assembly plugin MAVEN

  26. 26

    Exclude contents of directory with maven rpm plugin

  27. 27

    Maven war plugin archiveClasses but exclude a package

  28. 28

    Exclude release candidates in Versions Maven Plugin

  29. 29

    Appengine maven plugin exclude node_modules

HotTag

Archive