java - What is endorseddirs and how it is used in a application? -


in respect maven-compiler-plugin. there setting added project's pom file. configuration given below.

<plugins>     <plugin>         <groupid>org.apache.maven.plugins</groupid>         <artifactid>maven-compiler-plugin</artifactid>         <version>2.3.2</version>         <configuration>             <source>1.6</source>             <target>1.6</target>             <compilerarguments>                 <endorseddirs>${endorsed.dir}</endorseddirs>             </compilerarguments>         </configuration>     </plugin> </plugins> 

what mean have <endorseddirs> in compiler arguments? how works java compiler?

from documentation of endorsed standards override mechanism, mechanism provide newer versions of endorsed standard included in java 2 platform

your project must creating and/or using such implementation.

by specifying <endorseddirs> attribute, instructing java compiler @ jars present in folder override defined classes in standard jdk.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -