Advertisement
ravana

m-compiler-p plugin.xml

Aug 13th, 2011
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.12 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <plugin>
  3. <name>Maven Compiler Plugin</name>
  4. <description>The Compiler Plugin is used to compile the sources of your project.</description>
  5. <groupId>org.apache.maven.plugins</groupId>
  6. <artifactId>maven-compiler-plugin</artifactId>
  7. <version>2.3.2</version>
  8. <goalPrefix>compiler</goalPrefix>
  9. <isolatedRealm>false</isolatedRealm>
  10. <inheritedByDefault>true</inheritedByDefault>
  11. <mojos>
  12. <mojo>
  13. <goal>testCompile</goal>
  14. <description>Compiles application test sources.</description>
  15. <requiresDependencyResolution>test</requiresDependencyResolution>
  16. <requiresDirectInvocation>false</requiresDirectInvocation>
  17. <requiresProject>true</requiresProject>
  18. <requiresReports>false</requiresReports>
  19. <aggregator>false</aggregator>
  20. <requiresOnline>false</requiresOnline>
  21. <inheritedByDefault>true</inheritedByDefault>
  22. <phase>test-compile</phase>
  23. <implementation>org.apache.maven.plugin.TestCompilerMojo</implementation>
  24. <language>java</language>
  25. <instantiationStrategy>per-lookup</instantiationStrategy>
  26. <executionStrategy>once-per-session</executionStrategy>
  27. <threadSafe>true</threadSafe>
  28. <parameters>
  29. <parameter>
  30. <name>annotationProcessors</name>
  31. <type>java.lang.String[]</type>
  32. <required>false</required>
  33. <editable>true</editable>
  34. <description>&lt;p&gt;
  35. Names of annotation processors to run. Only applies to JDK 1.6+
  36. If not set, the default annotation processors discovery process applies.
  37. &lt;/p&gt;</description>
  38. </parameter>
  39. <parameter>
  40. <name>basedir</name>
  41. <type>java.io.File</type>
  42. <required>true</required>
  43. <editable>false</editable>
  44. <description>The directory to run the compiler from if fork is true.</description>
  45. </parameter>
  46. <parameter>
  47. <name>buildDirectory</name>
  48. <type>java.io.File</type>
  49. <required>true</required>
  50. <editable>false</editable>
  51. <description>The target directory of the compiler if fork is true.</description>
  52. </parameter>
  53. <parameter>
  54. <name>classpathElements</name>
  55. <type>java.util.List</type>
  56. <required>true</required>
  57. <editable>false</editable>
  58. <description>Project test classpath.</description>
  59. </parameter>
  60. <parameter>
  61. <name>compileSourceRoots</name>
  62. <type>java.util.List</type>
  63. <required>true</required>
  64. <editable>false</editable>
  65. <description>The source directories containing the test-source to be compiled.</description>
  66. </parameter>
  67. <parameter>
  68. <name>compilerArgument</name>
  69. <type>java.lang.String</type>
  70. <required>false</required>
  71. <editable>true</editable>
  72. <description>&lt;p&gt;
  73. Sets the unformatted argument string to be passed to the compiler if fork is set to true.
  74. &lt;/p&gt;
  75. &lt;p&gt;
  76. This is because the list of valid arguments passed to a Java compiler
  77. varies based on the compiler version.
  78. &lt;/p&gt;</description>
  79. </parameter>
  80. <parameter>
  81. <name>compilerArguments</name>
  82. <type>java.util.Map</type>
  83. <required>false</required>
  84. <editable>true</editable>
  85. <description>&lt;p&gt;
  86. Sets the arguments to be passed to the compiler (prepending a dash) if fork is set to true.
  87. &lt;/p&gt;
  88. &lt;p&gt;
  89. This is because the list of valid arguments passed to a Java compiler
  90. varies based on the compiler version.
  91. &lt;/p&gt;</description>
  92. </parameter>
  93. <parameter>
  94. <name>compilerId</name>
  95. <type>java.lang.String</type>
  96. <required>false</required>
  97. <editable>true</editable>
  98. <description>The compiler id of the compiler to use. See this
  99. &lt;a href=&quot;non-javac-compilers.html&quot;&gt;guide&lt;/a&gt; for more information.</description>
  100. </parameter>
  101. <parameter>
  102. <name>compilerVersion</name>
  103. <type>java.lang.String</type>
  104. <required>false</required>
  105. <editable>true</editable>
  106. <description>Version of the compiler to use, ex. &quot;1.3&quot;, &quot;1.5&quot;, if fork is set to true.</description>
  107. </parameter>
  108. <parameter>
  109. <name>debug</name>
  110. <type>boolean</type>
  111. <required>false</required>
  112. <editable>true</editable>
  113. <description>Set to true to include debugging information in the compiled class files.</description>
  114. </parameter>
  115. <parameter>
  116. <name>debuglevel</name>
  117. <type>java.lang.String</type>
  118. <required>false</required>
  119. <editable>true</editable>
  120. <description>Keyword list to be appended to the -g command-line switch. Legal values are none or a comma-separated list of the following keywords: lines, vars, and source.
  121. If debuglevel is not specified, by default, nothing will be appended to -g. If debug is not turned on, this attribute will be ignored.</description>
  122. </parameter>
  123. <parameter>
  124. <name>encoding</name>
  125. <type>java.lang.String</type>
  126. <required>false</required>
  127. <editable>true</editable>
  128. <description>The -encoding argument for the Java compiler.</description>
  129. </parameter>
  130. <parameter>
  131. <name>executable</name>
  132. <type>java.lang.String</type>
  133. <required>false</required>
  134. <editable>true</editable>
  135. <description>Sets the executable of the compiler to use when fork is true.</description>
  136. </parameter>
  137. <parameter>
  138. <name>failOnError</name>
  139. <type>boolean</type>
  140. <required>false</required>
  141. <editable>true</editable>
  142. <description>Indicates whether the build will continue even if there are compilation errors; defaults to true.</description>
  143. </parameter>
  144. <parameter>
  145. <name>fork</name>
  146. <type>boolean</type>
  147. <required>false</required>
  148. <editable>true</editable>
  149. <description>Allows running the compiler in a separate process.
  150. If &quot;false&quot; it uses the built in compiler, while if &quot;true&quot; it will use an executable.</description>
  151. </parameter>
  152. <parameter>
  153. <name>generatedTestSourcesDirectory</name>
  154. <type>java.io.File</type>
  155. <required>false</required>
  156. <editable>true</editable>
  157. <description>&lt;p&gt;
  158. Specify where to place generated source files created by annotation processing.
  159. Only applies to JDK 1.6+
  160. &lt;/p&gt;</description>
  161. </parameter>
  162. <parameter>
  163. <name>maxmem</name>
  164. <type>java.lang.String</type>
  165. <required>false</required>
  166. <editable>true</editable>
  167. <description>Sets the maximum size, in megabytes, of the memory allocation pool, ex. &quot;128&quot;, &quot;128m&quot;
  168. if fork is set to true.</description>
  169. </parameter>
  170. <parameter>
  171. <name>meminitial</name>
  172. <type>java.lang.String</type>
  173. <required>false</required>
  174. <editable>true</editable>
  175. <description>Initial size, in megabytes, of the memory allocation pool, ex. &quot;64&quot;, &quot;64m&quot;
  176. if fork is set to true.</description>
  177. </parameter>
  178. <parameter>
  179. <name>optimize</name>
  180. <type>boolean</type>
  181. <required>false</required>
  182. <editable>true</editable>
  183. <description>Set to true to optimize the compiled code using the compiler&apos;s optimization methods.</description>
  184. </parameter>
  185. <parameter>
  186. <name>outputDirectory</name>
  187. <type>java.io.File</type>
  188. <required>true</required>
  189. <editable>false</editable>
  190. <description>The directory where compiled test classes go.</description>
  191. </parameter>
  192. <parameter>
  193. <name>outputFileName</name>
  194. <type>java.lang.String</type>
  195. <required>false</required>
  196. <editable>true</editable>
  197. <description>Sets the name of the output file when compiling a set of
  198. sources to a single file.</description>
  199. </parameter>
  200. <parameter>
  201. <name>proc</name>
  202. <type>java.lang.String</type>
  203. <required>false</required>
  204. <editable>true</editable>
  205. <description>&lt;p&gt;
  206. Sets whether annotation processing is performed or not. Only applies to JDK 1.6+
  207. If not set, both compilation and annotation processing are performed at the same time.
  208. &lt;/p&gt;
  209. &lt;p&gt;
  210. Allowed values are:
  211. none - no annotation processing is performed.
  212. only - only annotation processing is done, no compilation.
  213. &lt;/p&gt;</description>
  214. </parameter>
  215. <parameter>
  216. <name>session</name>
  217. <type>org.apache.maven.execution.MavenSession</type>
  218. <required>true</required>
  219. <editable>false</editable>
  220. <description>The current build session instance. This is used for
  221. toolchain manager API calls.</description>
  222. </parameter>
  223. <parameter>
  224. <name>showDeprecation</name>
  225. <type>boolean</type>
  226. <required>false</required>
  227. <editable>true</editable>
  228. <description>Sets whether to show source locations where deprecated APIs are used.</description>
  229. </parameter>
  230. <parameter>
  231. <name>showWarnings</name>
  232. <type>boolean</type>
  233. <required>false</required>
  234. <editable>true</editable>
  235. <description>Set to true to show compilation warnings.</description>
  236. </parameter>
  237. <parameter>
  238. <name>skip</name>
  239. <type>boolean</type>
  240. <required>false</required>
  241. <editable>true</editable>
  242. <description>Set this to &apos;true&apos; to bypass unit tests entirely.
  243. Its use is NOT RECOMMENDED, but quite convenient on occasion.</description>
  244. </parameter>
  245. <parameter>
  246. <name>source</name>
  247. <type>java.lang.String</type>
  248. <required>false</required>
  249. <editable>true</editable>
  250. <description>The -source argument for the Java compiler.</description>
  251. </parameter>
  252. <parameter>
  253. <name>staleMillis</name>
  254. <type>int</type>
  255. <required>false</required>
  256. <editable>true</editable>
  257. <description>Sets the granularity in milliseconds of the last modification
  258. date for testing whether a source needs recompilation.</description>
  259. </parameter>
  260. <parameter>
  261. <name>target</name>
  262. <type>java.lang.String</type>
  263. <required>false</required>
  264. <editable>true</editable>
  265. <description>The -target argument for the Java compiler.</description>
  266. </parameter>
  267. <parameter>
  268. <name>testCompilerArgument</name>
  269. <type>java.lang.String</type>
  270. <required>false</required>
  271. <editable>true</editable>
  272. <description>&lt;p&gt;
  273. Sets the unformatted argument string to be passed to test compiler if fork is set to true.
  274. &lt;/p&gt;
  275. &lt;p&gt;
  276. This is because the list of valid arguments passed to a Java compiler
  277. varies based on the compiler version.
  278. &lt;/p&gt;</description>
  279. </parameter>
  280. <parameter>
  281. <name>testCompilerArguments</name>
  282. <type>java.util.Map</type>
  283. <required>false</required>
  284. <editable>true</editable>
  285. <description>&lt;p&gt;
  286. Sets the arguments to be passed to test compiler (prepending a dash) if fork is set to true.
  287. &lt;/p&gt;
  288. &lt;p&gt;
  289. This is because the list of valid arguments passed to a Java compiler
  290. varies based on the compiler version.
  291. &lt;/p&gt;</description>
  292. </parameter>
  293. <parameter>
  294. <name>testExcludes</name>
  295. <type>java.util.Set</type>
  296. <required>false</required>
  297. <editable>true</editable>
  298. <description>A list of exclusion filters for the compiler.</description>
  299. </parameter>
  300. <parameter>
  301. <name>testIncludes</name>
  302. <type>java.util.Set</type>
  303. <required>false</required>
  304. <editable>true</editable>
  305. <description>A list of inclusion filters for the compiler.</description>
  306. </parameter>
  307. <parameter>
  308. <name>testSource</name>
  309. <type>java.lang.String</type>
  310. <required>false</required>
  311. <editable>true</editable>
  312. <description>The -source argument for the test Java compiler.</description>
  313. </parameter>
  314. <parameter>
  315. <name>testTarget</name>
  316. <type>java.lang.String</type>
  317. <required>false</required>
  318. <editable>true</editable>
  319. <description>The -target argument for the test Java compiler.</description>
  320. </parameter>
  321. <parameter>
  322. <name>verbose</name>
  323. <type>boolean</type>
  324. <required>false</required>
  325. <editable>true</editable>
  326. <description>Set to true to show messages about what the compiler is doing.</description>
  327. </parameter>
  328. </parameters>
  329. <configuration>
  330. <basedir implementation="java.io.File" default-value="${basedir}"/>
  331. <buildDirectory implementation="java.io.File" default-value="${project.build.directory}"/>
  332. <classpathElements implementation="java.util.List" default-value="${project.testClasspathElements}"/>
  333. <compileSourceRoots implementation="java.util.List" default-value="${project.testCompileSourceRoots}"/>
  334. <compilerId implementation="java.lang.String" default-value="javac">${maven.compiler.compilerId}</compilerId>
  335. <compilerVersion implementation="java.lang.String">${maven.compiler.compilerVersion}</compilerVersion>
  336. <debug implementation="boolean" default-value="true">${maven.compiler.debug}</debug>
  337. <debuglevel implementation="java.lang.String">${maven.compiler.debuglevel}</debuglevel>
  338. <encoding implementation="java.lang.String" default-value="${project.build.sourceEncoding}">${encoding}</encoding>
  339. <executable implementation="java.lang.String">${maven.compiler.executable}</executable>
  340. <failOnError implementation="boolean" default-value="true">${maven.compiler.failOnError}</failOnError>
  341. <fork implementation="boolean" default-value="false">${maven.compiler.fork}</fork>
  342. <generatedTestSourcesDirectory implementation="java.io.File" default-value="${project.build.directory}/generated-sources/test-annotations"/>
  343. <maxmem implementation="java.lang.String">${maven.compiler.maxmem}</maxmem>
  344. <meminitial implementation="java.lang.String">${maven.compiler.meminitial}</meminitial>
  345. <optimize implementation="boolean" default-value="false">${maven.compiler.optimize}</optimize>
  346. <outputDirectory implementation="java.io.File" default-value="${project.build.testOutputDirectory}"/>
  347. <outputFileName implementation="java.lang.String">${project.build.finalName}</outputFileName>
  348. <session implementation="org.apache.maven.execution.MavenSession" default-value="${session}"/>
  349. <showDeprecation implementation="boolean" default-value="false">${maven.compiler.showDeprecation}</showDeprecation>
  350. <showWarnings implementation="boolean" default-value="false">${maven.compiler.showWarnings}</showWarnings>
  351. <skip implementation="boolean">${maven.test.skip}</skip>
  352. <source implementation="java.lang.String" default-value="1.5">${maven.compiler.source}</source>
  353. <staleMillis implementation="int" default-value="0">${lastModGranularityMs}</staleMillis>
  354. <target implementation="java.lang.String" default-value="1.5">${maven.compiler.target}</target>
  355. <testSource implementation="java.lang.String">${maven.compiler.testSource}</testSource>
  356. <testTarget implementation="java.lang.String">${maven.compiler.testTarget}</testTarget>
  357. <verbose implementation="boolean" default-value="false">${maven.compiler.verbose}</verbose>
  358. </configuration>
  359. <requirements>
  360. <requirement>
  361. <role>org.codehaus.plexus.compiler.manager.CompilerManager</role>
  362. <field-name>compilerManager</field-name>
  363. </requirement>
  364. <requirement>
  365. <role>org.apache.maven.toolchain.ToolchainManager</role>
  366. <field-name>toolchainManager</field-name>
  367. </requirement>
  368. </requirements>
  369. </mojo>
  370. <mojo>
  371. <goal>compile</goal>
  372. <description>Compiles application sources</description>
  373. <requiresDependencyResolution>compile</requiresDependencyResolution>
  374. <requiresDirectInvocation>false</requiresDirectInvocation>
  375. <requiresProject>true</requiresProject>
  376. <requiresReports>false</requiresReports>
  377. <aggregator>false</aggregator>
  378. <requiresOnline>false</requiresOnline>
  379. <inheritedByDefault>true</inheritedByDefault>
  380. <phase>compile</phase>
  381. <implementation>org.apache.maven.plugin.CompilerMojo</implementation>
  382. <language>java</language>
  383. <instantiationStrategy>per-lookup</instantiationStrategy>
  384. <executionStrategy>once-per-session</executionStrategy>
  385. <threadSafe>true</threadSafe>
  386. <parameters>
  387. <parameter>
  388. <name>annotationProcessors</name>
  389. <type>java.lang.String[]</type>
  390. <required>false</required>
  391. <editable>true</editable>
  392. <description>&lt;p&gt;
  393. Names of annotation processors to run. Only applies to JDK 1.6+
  394. If not set, the default annotation processors discovery process applies.
  395. &lt;/p&gt;</description>
  396. </parameter>
  397. <parameter>
  398. <name>basedir</name>
  399. <type>java.io.File</type>
  400. <required>true</required>
  401. <editable>false</editable>
  402. <description>The directory to run the compiler from if fork is true.</description>
  403. </parameter>
  404. <parameter>
  405. <name>buildDirectory</name>
  406. <type>java.io.File</type>
  407. <required>true</required>
  408. <editable>false</editable>
  409. <description>The target directory of the compiler if fork is true.</description>
  410. </parameter>
  411. <parameter>
  412. <name>classpathElements</name>
  413. <type>java.util.List</type>
  414. <required>true</required>
  415. <editable>false</editable>
  416. <description>Project classpath.</description>
  417. </parameter>
  418. <parameter>
  419. <name>compileSourceRoots</name>
  420. <type>java.util.List</type>
  421. <required>true</required>
  422. <editable>false</editable>
  423. <description>The source directories containing the sources to be compiled.</description>
  424. </parameter>
  425. <parameter>
  426. <name>compilerArgument</name>
  427. <type>java.lang.String</type>
  428. <required>false</required>
  429. <editable>true</editable>
  430. <description>&lt;p&gt;
  431. Sets the unformatted argument string to be passed to the compiler if fork is set to true.
  432. &lt;/p&gt;
  433. &lt;p&gt;
  434. This is because the list of valid arguments passed to a Java compiler
  435. varies based on the compiler version.
  436. &lt;/p&gt;</description>
  437. </parameter>
  438. <parameter>
  439. <name>compilerArguments</name>
  440. <type>java.util.Map</type>
  441. <required>false</required>
  442. <editable>true</editable>
  443. <description>&lt;p&gt;
  444. Sets the arguments to be passed to the compiler (prepending a dash) if fork is set to true.
  445. &lt;/p&gt;
  446. &lt;p&gt;
  447. This is because the list of valid arguments passed to a Java compiler
  448. varies based on the compiler version.
  449. &lt;/p&gt;</description>
  450. </parameter>
  451. <parameter>
  452. <name>compilerId</name>
  453. <type>java.lang.String</type>
  454. <required>false</required>
  455. <editable>true</editable>
  456. <description>The compiler id of the compiler to use. See this
  457. &lt;a href=&quot;non-javac-compilers.html&quot;&gt;guide&lt;/a&gt; for more information.</description>
  458. </parameter>
  459. <parameter>
  460. <name>compilerVersion</name>
  461. <type>java.lang.String</type>
  462. <required>false</required>
  463. <editable>true</editable>
  464. <description>Version of the compiler to use, ex. &quot;1.3&quot;, &quot;1.5&quot;, if fork is set to true.</description>
  465. </parameter>
  466. <parameter>
  467. <name>debug</name>
  468. <type>boolean</type>
  469. <required>false</required>
  470. <editable>true</editable>
  471. <description>Set to true to include debugging information in the compiled class files.</description>
  472. </parameter>
  473. <parameter>
  474. <name>debuglevel</name>
  475. <type>java.lang.String</type>
  476. <required>false</required>
  477. <editable>true</editable>
  478. <description>Keyword list to be appended to the -g command-line switch. Legal values are none or a comma-separated list of the following keywords: lines, vars, and source.
  479. If debuglevel is not specified, by default, nothing will be appended to -g. If debug is not turned on, this attribute will be ignored.</description>
  480. </parameter>
  481. <parameter>
  482. <name>encoding</name>
  483. <type>java.lang.String</type>
  484. <required>false</required>
  485. <editable>true</editable>
  486. <description>The -encoding argument for the Java compiler.</description>
  487. </parameter>
  488. <parameter>
  489. <name>excludes</name>
  490. <type>java.util.Set</type>
  491. <required>false</required>
  492. <editable>true</editable>
  493. <description>A list of exclusion filters for the compiler.</description>
  494. </parameter>
  495. <parameter>
  496. <name>executable</name>
  497. <type>java.lang.String</type>
  498. <required>false</required>
  499. <editable>true</editable>
  500. <description>Sets the executable of the compiler to use when fork is true.</description>
  501. </parameter>
  502. <parameter>
  503. <name>failOnError</name>
  504. <type>boolean</type>
  505. <required>false</required>
  506. <editable>true</editable>
  507. <description>Indicates whether the build will continue even if there are compilation errors; defaults to true.</description>
  508. </parameter>
  509. <parameter>
  510. <name>fork</name>
  511. <type>boolean</type>
  512. <required>false</required>
  513. <editable>true</editable>
  514. <description>Allows running the compiler in a separate process.
  515. If &quot;false&quot; it uses the built in compiler, while if &quot;true&quot; it will use an executable.</description>
  516. </parameter>
  517. <parameter>
  518. <name>generatedSourcesDirectory</name>
  519. <type>java.io.File</type>
  520. <required>false</required>
  521. <editable>true</editable>
  522. <description>&lt;p&gt;
  523. Specify where to place generated source files created by annotation processing.
  524. Only applies to JDK 1.6+
  525. &lt;/p&gt;</description>
  526. </parameter>
  527. <parameter>
  528. <name>includes</name>
  529. <type>java.util.Set</type>
  530. <required>false</required>
  531. <editable>true</editable>
  532. <description>A list of inclusion filters for the compiler.</description>
  533. </parameter>
  534. <parameter>
  535. <name>maxmem</name>
  536. <type>java.lang.String</type>
  537. <required>false</required>
  538. <editable>true</editable>
  539. <description>Sets the maximum size, in megabytes, of the memory allocation pool, ex. &quot;128&quot;, &quot;128m&quot;
  540. if fork is set to true.</description>
  541. </parameter>
  542. <parameter>
  543. <name>meminitial</name>
  544. <type>java.lang.String</type>
  545. <required>false</required>
  546. <editable>true</editable>
  547. <description>Initial size, in megabytes, of the memory allocation pool, ex. &quot;64&quot;, &quot;64m&quot;
  548. if fork is set to true.</description>
  549. </parameter>
  550. <parameter>
  551. <name>optimize</name>
  552. <type>boolean</type>
  553. <required>false</required>
  554. <editable>true</editable>
  555. <description>Set to true to optimize the compiled code using the compiler&apos;s optimization methods.</description>
  556. </parameter>
  557. <parameter>
  558. <name>outputDirectory</name>
  559. <type>java.io.File</type>
  560. <required>true</required>
  561. <editable>false</editable>
  562. <description>The directory for compiled classes.</description>
  563. </parameter>
  564. <parameter>
  565. <name>outputFileName</name>
  566. <type>java.lang.String</type>
  567. <required>false</required>
  568. <editable>true</editable>
  569. <description>Sets the name of the output file when compiling a set of
  570. sources to a single file.</description>
  571. </parameter>
  572. <parameter>
  573. <name>proc</name>
  574. <type>java.lang.String</type>
  575. <required>false</required>
  576. <editable>true</editable>
  577. <description>&lt;p&gt;
  578. Sets whether annotation processing is performed or not. Only applies to JDK 1.6+
  579. If not set, both compilation and annotation processing are performed at the same time.
  580. &lt;/p&gt;
  581. &lt;p&gt;
  582. Allowed values are:
  583. none - no annotation processing is performed.
  584. only - only annotation processing is done, no compilation.
  585. &lt;/p&gt;</description>
  586. </parameter>
  587. <parameter>
  588. <name>projectArtifact</name>
  589. <type>org.apache.maven.artifact.Artifact</type>
  590. <required>true</required>
  591. <editable>false</editable>
  592. <description>Project artifacts.</description>
  593. </parameter>
  594. <parameter>
  595. <name>session</name>
  596. <type>org.apache.maven.execution.MavenSession</type>
  597. <required>true</required>
  598. <editable>false</editable>
  599. <description>The current build session instance. This is used for
  600. toolchain manager API calls.</description>
  601. </parameter>
  602. <parameter>
  603. <name>showDeprecation</name>
  604. <type>boolean</type>
  605. <required>false</required>
  606. <editable>true</editable>
  607. <description>Sets whether to show source locations where deprecated APIs are used.</description>
  608. </parameter>
  609. <parameter>
  610. <name>showWarnings</name>
  611. <type>boolean</type>
  612. <required>false</required>
  613. <editable>true</editable>
  614. <description>Set to true to show compilation warnings.</description>
  615. </parameter>
  616. <parameter>
  617. <name>source</name>
  618. <type>java.lang.String</type>
  619. <required>false</required>
  620. <editable>true</editable>
  621. <description>The -source argument for the Java compiler.</description>
  622. </parameter>
  623. <parameter>
  624. <name>staleMillis</name>
  625. <type>int</type>
  626. <required>false</required>
  627. <editable>true</editable>
  628. <description>Sets the granularity in milliseconds of the last modification
  629. date for testing whether a source needs recompilation.</description>
  630. </parameter>
  631. <parameter>
  632. <name>target</name>
  633. <type>java.lang.String</type>
  634. <required>false</required>
  635. <editable>true</editable>
  636. <description>The -target argument for the Java compiler.</description>
  637. </parameter>
  638. <parameter>
  639. <name>verbose</name>
  640. <type>boolean</type>
  641. <required>false</required>
  642. <editable>true</editable>
  643. <description>Set to true to show messages about what the compiler is doing.</description>
  644. </parameter>
  645. </parameters>
  646. <configuration>
  647. <basedir implementation="java.io.File" default-value="${basedir}"/>
  648. <buildDirectory implementation="java.io.File" default-value="${project.build.directory}"/>
  649. <classpathElements implementation="java.util.List" default-value="${project.compileClasspathElements}"/>
  650. <compileSourceRoots implementation="java.util.List" default-value="${project.compileSourceRoots}"/>
  651. <compilerId implementation="java.lang.String" default-value="javac">${maven.compiler.compilerId}</compilerId>
  652. <compilerVersion implementation="java.lang.String">${maven.compiler.compilerVersion}</compilerVersion>
  653. <debug implementation="boolean" default-value="true">${maven.compiler.debug}</debug>
  654. <debuglevel implementation="java.lang.String">${maven.compiler.debuglevel}</debuglevel>
  655. <encoding implementation="java.lang.String" default-value="${project.build.sourceEncoding}">${encoding}</encoding>
  656. <executable implementation="java.lang.String">${maven.compiler.executable}</executable>
  657. <failOnError implementation="boolean" default-value="true">${maven.compiler.failOnError}</failOnError>
  658. <fork implementation="boolean" default-value="false">${maven.compiler.fork}</fork>
  659. <generatedSourcesDirectory implementation="java.io.File" default-value="${project.build.directory}/generated-sources/annotations"/>
  660. <maxmem implementation="java.lang.String">${maven.compiler.maxmem}</maxmem>
  661. <meminitial implementation="java.lang.String">${maven.compiler.meminitial}</meminitial>
  662. <optimize implementation="boolean" default-value="false">${maven.compiler.optimize}</optimize>
  663. <outputDirectory implementation="java.io.File" default-value="${project.build.outputDirectory}"/>
  664. <outputFileName implementation="java.lang.String">${project.build.finalName}</outputFileName>
  665. <projectArtifact implementation="org.apache.maven.artifact.Artifact" default-value="${project.artifact}"/>
  666. <session implementation="org.apache.maven.execution.MavenSession" default-value="${session}"/>
  667. <showDeprecation implementation="boolean" default-value="false">${maven.compiler.showDeprecation}</showDeprecation>
  668. <showWarnings implementation="boolean" default-value="false">${maven.compiler.showWarnings}</showWarnings>
  669. <source implementation="java.lang.String" default-value="1.5">${maven.compiler.source}</source>
  670. <staleMillis implementation="int" default-value="0">${lastModGranularityMs}</staleMillis>
  671. <target implementation="java.lang.String" default-value="1.5">${maven.compiler.target}</target>
  672. <verbose implementation="boolean" default-value="false">${maven.compiler.verbose}</verbose>
  673. </configuration>
  674. <requirements>
  675. <requirement>
  676. <role>org.codehaus.plexus.compiler.manager.CompilerManager</role>
  677. <field-name>compilerManager</field-name>
  678. </requirement>
  679. <requirement>
  680. <role>org.apache.maven.toolchain.ToolchainManager</role>
  681. <field-name>toolchainManager</field-name>
  682. </requirement>
  683. </requirements>
  684. </mojo>
  685. <mojo>
  686. <goal>help</goal>
  687. <description>Display help information on maven-compiler-plugin.&lt;br/&gt; Call &lt;pre&gt; mvn compiler:help -Ddetail=true -Dgoal=&amp;lt;goal-name&amp;gt;&lt;/pre&gt; to display parameter details.</description>
  688. <requiresDirectInvocation>false</requiresDirectInvocation>
  689. <requiresProject>false</requiresProject>
  690. <requiresReports>false</requiresReports>
  691. <aggregator>false</aggregator>
  692. <requiresOnline>false</requiresOnline>
  693. <inheritedByDefault>true</inheritedByDefault>
  694. <implementation>org.apache.maven.plugin.HelpMojo</implementation>
  695. <language>java</language>
  696. <instantiationStrategy>per-lookup</instantiationStrategy>
  697. <executionStrategy>once-per-session</executionStrategy>
  698. <threadSafe>false</threadSafe>
  699. <parameters>
  700. <parameter>
  701. <name>detail</name>
  702. <type>boolean</type>
  703. <required>false</required>
  704. <editable>true</editable>
  705. <description>If &lt;code&gt;true&lt;/code&gt;, display all settable properties for each goal.</description>
  706. </parameter>
  707. <parameter>
  708. <name>goal</name>
  709. <type>java.lang.String</type>
  710. <required>false</required>
  711. <editable>true</editable>
  712. <description>The name of the goal for which to show help. If unspecified, all goals will be displayed.</description>
  713. </parameter>
  714. <parameter>
  715. <name>indentSize</name>
  716. <type>int</type>
  717. <required>false</required>
  718. <editable>true</editable>
  719. <description>The number of spaces per indentation level, should be positive.</description>
  720. </parameter>
  721. <parameter>
  722. <name>lineLength</name>
  723. <type>int</type>
  724. <required>false</required>
  725. <editable>true</editable>
  726. <description>The maximum length of a display line, should be positive.</description>
  727. </parameter>
  728. </parameters>
  729. <configuration>
  730. <detail implementation="boolean" default-value="false">${detail}</detail>
  731. <goal implementation="java.lang.String">${goal}</goal>
  732. <indentSize implementation="int" default-value="2">${indentSize}</indentSize>
  733. <lineLength implementation="int" default-value="80">${lineLength}</lineLength>
  734. </configuration>
  735. </mojo>
  736. </mojos>
  737. <dependencies>
  738. <dependency>
  739. <groupId>org.apache.maven</groupId>
  740. <artifactId>maven-plugin-api</artifactId>
  741. <type>jar</type>
  742. <version>2.0.6</version>
  743. </dependency>
  744. <dependency>
  745. <groupId>org.apache.maven</groupId>
  746. <artifactId>maven-artifact</artifactId>
  747. <type>jar</type>
  748. <version>2.0.6</version>
  749. </dependency>
  750. <dependency>
  751. <groupId>org.codehaus.plexus</groupId>
  752. <artifactId>plexus-utils</artifactId>
  753. <type>jar</type>
  754. <version>2.0.5</version>
  755. </dependency>
  756. <dependency>
  757. <groupId>org.apache.maven</groupId>
  758. <artifactId>maven-core</artifactId>
  759. <type>jar</type>
  760. <version>2.0.6</version>
  761. </dependency>
  762. <dependency>
  763. <groupId>org.apache.maven</groupId>
  764. <artifactId>maven-settings</artifactId>
  765. <type>jar</type>
  766. <version>2.0.6</version>
  767. </dependency>
  768. <dependency>
  769. <groupId>org.apache.maven</groupId>
  770. <artifactId>maven-model</artifactId>
  771. <type>jar</type>
  772. <version>2.0.6</version>
  773. </dependency>
  774. <dependency>
  775. <groupId>org.apache.maven</groupId>
  776. <artifactId>maven-plugin-parameter-documenter</artifactId>
  777. <type>jar</type>
  778. <version>2.0.6</version>
  779. </dependency>
  780. <dependency>
  781. <groupId>org.apache.maven</groupId>
  782. <artifactId>maven-profile</artifactId>
  783. <type>jar</type>
  784. <version>2.0.6</version>
  785. </dependency>
  786. <dependency>
  787. <groupId>org.apache.maven.wagon</groupId>
  788. <artifactId>wagon-provider-api</artifactId>
  789. <type>jar</type>
  790. <version>1.0-beta-2</version>
  791. </dependency>
  792. <dependency>
  793. <groupId>org.apache.maven</groupId>
  794. <artifactId>maven-repository-metadata</artifactId>
  795. <type>jar</type>
  796. <version>2.0.6</version>
  797. </dependency>
  798. <dependency>
  799. <groupId>org.apache.maven</groupId>
  800. <artifactId>maven-error-diagnostics</artifactId>
  801. <type>jar</type>
  802. <version>2.0.6</version>
  803. </dependency>
  804. <dependency>
  805. <groupId>org.apache.maven</groupId>
  806. <artifactId>maven-project</artifactId>
  807. <type>jar</type>
  808. <version>2.0.6</version>
  809. </dependency>
  810. <dependency>
  811. <groupId>org.apache.maven</groupId>
  812. <artifactId>maven-artifact-manager</artifactId>
  813. <type>jar</type>
  814. <version>2.0.6</version>
  815. </dependency>
  816. <dependency>
  817. <groupId>org.apache.maven</groupId>
  818. <artifactId>maven-plugin-registry</artifactId>
  819. <type>jar</type>
  820. <version>2.0.6</version>
  821. </dependency>
  822. <dependency>
  823. <groupId>org.apache.maven</groupId>
  824. <artifactId>maven-plugin-descriptor</artifactId>
  825. <type>jar</type>
  826. <version>2.0.6</version>
  827. </dependency>
  828. <dependency>
  829. <groupId>org.apache.maven</groupId>
  830. <artifactId>maven-monitor</artifactId>
  831. <type>jar</type>
  832. <version>2.0.6</version>
  833. </dependency>
  834. <dependency>
  835. <groupId>org.apache.maven</groupId>
  836. <artifactId>maven-toolchain</artifactId>
  837. <type>jar</type>
  838. <version>1.0</version>
  839. </dependency>
  840. <dependency>
  841. <groupId>org.codehaus.plexus</groupId>
  842. <artifactId>plexus-compiler-api</artifactId>
  843. <type>jar</type>
  844. <version>1.8.1</version>
  845. </dependency>
  846. <dependency>
  847. <groupId>org.codehaus.plexus</groupId>
  848. <artifactId>plexus-compiler-manager</artifactId>
  849. <type>jar</type>
  850. <version>1.8.1</version>
  851. </dependency>
  852. <dependency>
  853. <groupId>org.codehaus.plexus</groupId>
  854. <artifactId>plexus-compiler-javac</artifactId>
  855. <type>jar</type>
  856. <version>1.8.1</version>
  857. </dependency>
  858. </dependencies>
  859. </plugin>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement