Advertisement
belindajankowski

Untitled

Aug 3rd, 2021
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.17 KB | None | 0 0
  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <!--
  3.  
  4. DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
  5.  
  6. Copyright (c) 1997-2017 Oracle and/or its affiliates. All rights reserved.
  7.  
  8. The contents of this file are subject to the terms of either the GNU
  9. General Public License Version 2 only ("GPL") or the Common Development
  10. and Distribution License("CDDL") (collectively, the "License"). You
  11. may not use this file except in compliance with the License. You can
  12. obtain a copy of the License at
  13. https://oss.oracle.com/licenses/CDDL+GPL-1.1
  14. or LICENSE.txt. See the License for the specific
  15. language governing permissions and limitations under the License.
  16.  
  17. When distributing the software, include this License Header Notice in each
  18. file and include the License file at LICENSE.txt.
  19.  
  20. GPL Classpath Exception:
  21. Oracle designates this particular file as subject to the "Classpath"
  22. exception as provided by Oracle in the GPL Version 2 section of the License
  23. file that accompanied this code.
  24.  
  25. Modifications:
  26. If applicable, add the following below the License Header, with the fields
  27. enclosed by brackets [] replaced by your own identifying information:
  28. "Portions Copyright [year] [name of copyright owner]"
  29.  
  30. Contributor(s):
  31. If you wish your version of this file to be governed by only the CDDL or
  32. only the GPL Version 2, indicate your decision by adding "[Contributor]
  33. elects to include this software in this distribution under the [CDDL or GPL
  34. Version 2] license." If you don't indicate a single choice of license, a
  35. recipient has the option to distribute your version of this file under
  36. either the CDDL, the GPL Version 2 or to extend the choice of license to
  37. its licensees as provided above. However, if you add GPL Version 2 code
  38. and therefore, elected the GPL Version 2 license, then the option applies
  39. only if the new code is made subject to such option by the copyright
  40. holder.
  41.  
  42. -->
  43.  
  44. <project xmlns="http://maven.apache.org/POM/4.0.0"
  45. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  46. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
  47. http://maven.apache.org/maven-v4_0_0.xsd">
  48. <parent>
  49. <groupId>net.java</groupId>
  50. <artifactId>jvnet-parent</artifactId>
  51. <version>1</version>
  52. </parent>
  53. <modelVersion>4.0.0</modelVersion>
  54. <groupId>com.sun.activation</groupId>
  55. <artifactId>all</artifactId>
  56. <packaging>pom</packaging>
  57. <version>1.2.0</version>
  58. <name>JavaBeans Activation Framework distribution</name>
  59. <description>${project.name}</description>
  60.  
  61. <scm>
  62. <connection>scm:git:https://github.com/javaee/activation.git</connection>
  63. <developerConnection>scm:git:git@github.com:javaee/activation.git</developerConnection>
  64. <url>https://github.com/javaee/activation</url>
  65. </scm>
  66.  
  67. <issueManagement>
  68. <system>GitHub</system>
  69. <url>https://github.com/javaee/activation/issues</url>
  70. </issueManagement>
  71.  
  72. <licenses>
  73. <license>
  74. <name>CDDL/GPLv2+CE</name>
  75. <url>https://github.com/javaee/activation/blob/master/LICENSE.txt</url>
  76. <distribution>repo</distribution>
  77. <comments>CDDL or GPL version 2 plus the Classpath Exception</comments>
  78. </license>
  79. </licenses>
  80.  
  81. <organization>
  82. <name>Oracle</name>
  83. <url>http://www.oracle.com</url>
  84. </organization>
  85.  
  86. <properties>
  87. <activation.spec.version>1.2</activation.spec.version>
  88. <!-- defaults that are overridden in activation module -->
  89. <activation.extensionName>
  90. ${project.groupId}.${project.artifactId}
  91. </activation.extensionName>
  92. <activation.moduleName>
  93. ${project.groupId}.${project.artifactId}
  94. </activation.moduleName>
  95. <activation.specificationTitle>
  96. ${project.groupId}.${project.artifactId}
  97. </activation.specificationTitle>
  98. <activation.implementationTitle>
  99. ${project.groupId}.${project.artifactId}
  100. </activation.implementationTitle>
  101. <activation.bundle.symbolicName>
  102. ${project.groupId}.${project.artifactId}
  103. </activation.bundle.symbolicName>
  104. <activation.bundle.symbolicName>
  105. ${project.groupId}.${project.artifactId}
  106. </activation.bundle.symbolicName>
  107. <activation.packages.export>
  108. javax.activation.*; version=${activation.spec.version}
  109. </activation.packages.export>
  110. <activation.packages.import>
  111. *
  112. </activation.packages.import>
  113. <activation.packages.private>
  114. com.sun.activation.*
  115. </activation.packages.private>
  116. <!-- for the osgiversion-maven-plugin -->
  117. <hk2.plugin.version>2.0.0</hk2.plugin.version>
  118. <project.build.sourceEncoding>iso-8859-1</project.build.sourceEncoding>
  119. <findbugs.threshold>
  120. High
  121. </findbugs.threshold>
  122. <findbugs.version>
  123. 3.0.1
  124. </findbugs.version>
  125. <findbugs.skip>
  126. true
  127. </findbugs.skip>
  128. <findbugs.exclude/>
  129. <copyright-plugin.version>1.42</copyright-plugin.version>
  130. </properties>
  131.  
  132. <developers>
  133. <developer>
  134. <id>shannon</id>
  135. <name>Bill Shannon</name>
  136. <email>bill.shannon@oracle.com</email>
  137. <organization>Oracle</organization>
  138. <roles>
  139. <role>lead</role>
  140. </roles>
  141. </developer>
  142. </developers>
  143.  
  144. <!-- following to enable use of "mvn site:stage" -->
  145. <distributionManagement>
  146. <site>
  147. <id>oracle.com</id>
  148. <url>file:/tmp</url> <!-- not used -->
  149. </site>
  150. </distributionManagement>
  151.  
  152. <modules>
  153. <module>activation</module>
  154. <module>activationapi</module>
  155. <module>demo</module>
  156. </modules>
  157.  
  158. <profiles>
  159. <!--
  160. This profile contains modules that should only be built
  161. but not installed or deployed.
  162. -->
  163. <profile>
  164. <id>build-only</id>
  165. <modules>
  166. <module>demo</module>
  167. </modules>
  168. <activation>
  169. <activeByDefault>true</activeByDefault>
  170. </activation>
  171. </profile>
  172.  
  173. <!--
  174. This profile is used for deploying a JAF final release.
  175. -->
  176. <profile>
  177. <id>deploy-release</id>
  178. <build>
  179. <plugins>
  180. <plugin>
  181. <groupId>org.apache.maven.plugins</groupId>
  182. <artifactId>maven-surefire-plugin</artifactId>
  183. <configuration>
  184. <skip>true</skip>
  185. </configuration>
  186. </plugin>
  187.  
  188. <plugin>
  189. <groupId>org.apache.maven.plugins</groupId>
  190. <artifactId>maven-javadoc-plugin</artifactId>
  191. <executions>
  192. <execution>
  193. <id>attach-javadocs</id>
  194. <goals>
  195. <goal>jar</goal>
  196. </goals>
  197. </execution>
  198. </executions>
  199. </plugin>
  200.  
  201. <plugin>
  202. <groupId>org.apache.maven.plugins</groupId>
  203. <artifactId>maven-gpg-plugin</artifactId>
  204. <version>1.1</version>
  205. <executions>
  206. <execution>
  207. <id>sign-artifacts</id>
  208. <phase>verify</phase>
  209. <goals>
  210. <goal>sign</goal>
  211. </goals>
  212. </execution>
  213. </executions>
  214. </plugin>
  215. </plugins>
  216. </build>
  217. </profile>
  218.  
  219. <!--
  220. This profile is used for deploying a JAF SNAPSHOT release.
  221. It's identical to the above deploy-release profile except that
  222. artifacts aren't signed.
  223. -->
  224. <profile>
  225. <id>deploy-snapshot</id>
  226. <build>
  227. <plugins>
  228. <plugin>
  229. <groupId>org.apache.maven.plugins</groupId>
  230. <artifactId>maven-surefire-plugin</artifactId>
  231. <configuration>
  232. <skip>true</skip>
  233. </configuration>
  234. </plugin>
  235.  
  236. <plugin>
  237. <groupId>org.apache.maven.plugins</groupId>
  238. <artifactId>maven-javadoc-plugin</artifactId>
  239. <executions>
  240. <execution>
  241. <id>attach-javadocs</id>
  242. <goals>
  243. <goal>jar</goal>
  244. </goals>
  245. </execution>
  246. </executions>
  247. </plugin>
  248. </plugins>
  249. </build>
  250. </profile>
  251.  
  252. <!--
  253. A special profile for compiling with the real JDK 1.5
  254. compiler, to make sure there are no accidental dependencies
  255. on JDK 1.6 or newer APIs. Set the property javac.path to the path
  256. to the JDK 1.5 compiler, e.g.,
  257. "mvn -P1.5 -Djavac.path=/opt/jdk1.5/bin/javac".
  258. -->
  259. <profile>
  260. <id>1.5</id>
  261. <build>
  262. <plugins>
  263. <plugin>
  264. <artifactId>maven-compiler-plugin</artifactId>
  265. <executions>
  266. <execution>
  267. <id>default-compile</id>
  268. <configuration>
  269. <fork>true</fork>
  270. <executable>${javac.path}</executable>
  271. <compilerVersion>1.5</compilerVersion>
  272. <source>1.5</source>
  273. <target>1.5</target>
  274. </configuration>
  275. </execution>
  276. </executions>
  277. </plugin>
  278. </plugins>
  279. </build>
  280. </profile>
  281. </profiles>
  282.  
  283. <build>
  284. <defaultGoal>install</defaultGoal>
  285. <plugins>
  286. <!--
  287. Make sure we're using the correct version of maven.
  288. -->
  289. <plugin>
  290. <groupId>org.apache.maven.plugins</groupId>
  291. <artifactId>maven-enforcer-plugin</artifactId>
  292. <executions>
  293. <execution>
  294. <id>enforce-version</id>
  295. <goals>
  296. <goal>enforce</goal>
  297. </goals>
  298. <configuration>
  299. <rules>
  300. <requireMavenVersion>
  301. <version>[2.2.1,)</version>
  302. </requireMavenVersion>
  303. </rules>
  304. </configuration>
  305. </execution>
  306. </executions>
  307. </plugin>
  308.  
  309. <!--
  310. This plugin is reponsible for packaging artifacts
  311. as OSGi bundles. Please refer to
  312. http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html
  313. for more information about how to use this plugin.
  314. -->
  315. <plugin>
  316. <groupId>org.apache.felix</groupId>
  317. <artifactId>maven-bundle-plugin</artifactId>
  318. <configuration>
  319. <instructions>
  320. <Bundle-SymbolicName>
  321. ${activation.bundle.symbolicName}
  322. </Bundle-SymbolicName>
  323. <Export-Package>
  324. ${activation.packages.export}
  325. </Export-Package>
  326. <Import-Package>
  327. ${activation.packages.import}
  328. </Import-Package>
  329. <Private-Package>
  330. ${activation.packages.private}
  331. </Private-Package>
  332. <DynamicImport-Package>
  333. *
  334. </DynamicImport-Package>
  335. </instructions>
  336. </configuration>
  337. <!--
  338. Since we don't change the packaging type to bundle, we
  339. need to configure the plugin to execute the manifest goal
  340. during the process-classes phase of the build life cycle.
  341. -->
  342. <executions>
  343. <execution>
  344. <id>osgi-manifest</id>
  345. <phase>process-classes</phase>
  346. <goals>
  347. <goal>manifest</goal>
  348. </goals>
  349. </execution>
  350. </executions>
  351. </plugin>
  352.  
  353. <!--
  354. Since we don't want a qualifier like b05 or SNAPSHOT to
  355. appear in the OSGi package version attribute, we use
  356. the following plugin to populate a project property
  357. with an OSGi version that is equivalent to the maven
  358. version without the qualifier.
  359. -->
  360. <plugin>
  361. <groupId>org.glassfish.hk2</groupId>
  362. <artifactId>osgiversion-maven-plugin</artifactId>
  363. <version>${hk2.plugin.version}</version>
  364. <configuration>
  365. <dropVersionComponent>qualifier</dropVersionComponent>
  366. <versionPropertyName>activation.osgiversion</versionPropertyName>
  367. </configuration>
  368. <executions>
  369. <execution>
  370. <id>compute-osgi-version</id>
  371. <goals>
  372. <goal>compute-osgi-version</goal>
  373. </goals>
  374. </execution>
  375. </executions>
  376. </plugin>
  377.  
  378. <!--
  379. Use the 1.5 compiler for JAF itself and the test classes.
  380. -->
  381. <plugin>
  382. <artifactId>maven-compiler-plugin</artifactId>
  383. <executions>
  384. <execution>
  385. <id>default-compile</id>
  386. <configuration>
  387. <source>1.5</source>
  388. <target>1.5</target>
  389. </configuration>
  390. </execution>
  391. <execution>
  392. <id>default-testCompile</id>
  393. <configuration>
  394. <source>1.5</source>
  395. <target>1.5</target>
  396. </configuration>
  397. </execution>
  398. </executions>
  399. </plugin>
  400.  
  401. <plugin>
  402. <artifactId>maven-jar-plugin</artifactId>
  403. <!-- need at least this version to make excludes work -->
  404. <configuration>
  405. <finalName>${project.artifactId}</finalName>
  406. <archive>
  407. <!--
  408. Configure the maven-jar-plugin to pick up
  409. META-INF/MANIFEST.MF that's generated by
  410. the maven-bundle-plugin.
  411. -->
  412. <manifestFile>
  413. ${project.build.outputDirectory}/META-INF/MANIFEST.MF
  414. </manifestFile>
  415. <manifestEntries>
  416. <Extension-Name>
  417. ${activation.extensionName}
  418. </Extension-Name>
  419. <Specification-Title>
  420. ${activation.specificationTitle}
  421. </Specification-Title>
  422. <Specification-Version>
  423. ${activation.spec.version}
  424. </Specification-Version>
  425. <Specification-Vendor>
  426. ${project.organization.name}
  427. </Specification-Vendor>
  428. <Implementation-Title>
  429. ${activation.implementationTitle}
  430. </Implementation-Title>
  431. <Implementation-Version>
  432. ${project.version}
  433. </Implementation-Version>
  434. <Implementation-Vendor>
  435. ${project.organization.name}
  436. </Implementation-Vendor>
  437. <Implementation-Vendor-Id>
  438. com.sun
  439. </Implementation-Vendor-Id>
  440. <!-- for JDK 9 -->
  441. <Automatic-Module-Name>
  442. ${activation.moduleName}
  443. </Automatic-Module-Name>
  444. </manifestEntries>
  445. </archive>
  446. <excludes>
  447. <exclude>**/*.java</exclude>
  448. </excludes>
  449. </configuration>
  450. </plugin>
  451.  
  452. <!--
  453. Tell the source plugin about the sources that may have
  454. been downloaded by the maven-dependency-plugin.
  455.  
  456. Also, need this plugin to define target/classes as another
  457. source directory so that the filtered Version.java
  458. that's copied there will also be compiled when using
  459. the latest version of the maven-compiler-plugin.
  460. -->
  461.  
  462. <plugin>
  463. <groupId>org.codehaus.mojo</groupId>
  464. <artifactId>build-helper-maven-plugin</artifactId>
  465. <executions>
  466. <execution>
  467. <id>add-source</id>
  468. <phase>generate-sources</phase>
  469. <goals>
  470. <goal>add-source</goal>
  471. </goals>
  472. <configuration>
  473. <sources>
  474. <source> <!-- for dependencies -->
  475. ${project.build.directory}/sources
  476. </source>
  477. <source> <!-- for Version.java -->
  478. target/classes
  479. </source>
  480. </sources>
  481. </configuration>
  482. </execution>
  483. </executions>
  484. </plugin>
  485.  
  486. <!--
  487. Configure the source plugin here so that it will know
  488. about the sources that may have been downloaded by the
  489. maven-dependency-plugin and configured by the
  490. build-helper-maven-plugin.
  491. -->
  492. <plugin>
  493. <groupId>org.apache.maven.plugins</groupId>
  494. <artifactId>maven-source-plugin</artifactId>
  495. <executions>
  496. <execution>
  497. <id>attach-sources</id>
  498. <goals>
  499. <goal>jar-no-fork</goal>
  500. </goals>
  501. </execution>
  502. </executions>
  503. <configuration>
  504. <includePom>true</includePom>
  505. <!--
  506. Since we added the classes directory using the
  507. build-helper-maven-plugin above, we need to exclude
  508. the class files from the source jar file.
  509. -->
  510. <excludes>
  511. <exclude>**/*.class</exclude>
  512. </excludes>
  513. </configuration>
  514. </plugin>
  515.  
  516. <!-- not used
  517. <plugin>
  518. <artifactId>maven-release-plugin</artifactId>
  519. <configuration>
  520. <arguments>-P deploy</arguments>
  521. </configuration>
  522. </plugin>
  523. -->
  524. </plugins>
  525.  
  526. <pluginManagement>
  527. <plugins>
  528. <plugin>
  529. <groupId>org.apache.maven.plugins</groupId>
  530. <artifactId>maven-compiler-plugin</artifactId>
  531. <version>2.4</version>
  532. </plugin>
  533. <plugin>
  534. <groupId>org.apache.maven.plugins</groupId>
  535. <artifactId>maven-surefire-plugin</artifactId>
  536. <version>2.4.3</version>
  537. </plugin>
  538. <plugin>
  539. <groupId>org.apache.maven.plugins</groupId>
  540. <artifactId>maven-jar-plugin</artifactId>
  541. <version>2.4</version>
  542. </plugin>
  543. <plugin>
  544. <groupId>org.codehaus.mojo</groupId>
  545. <artifactId>build-helper-maven-plugin</artifactId>
  546. <version>1.7</version>
  547. </plugin>
  548. <plugin>
  549. <groupId>org.apache.maven.plugins</groupId>
  550. <artifactId>maven-assembly-plugin</artifactId>
  551. <version>2.4</version>
  552. </plugin>
  553. <plugin>
  554. <!--
  555. By default, disable the FindBugs plugin for all modules.
  556. It's enabled in the modules where we actually want to
  557. run it.
  558. -->
  559. <groupId>org.codehaus.mojo</groupId>
  560. <artifactId>findbugs-maven-plugin</artifactId>
  561. <version>${findbugs.version}</version>
  562. <configuration>
  563. <skip>${findbugs.skip}</skip>
  564. <threshold>${findbugs.threshold}</threshold>
  565. <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
  566. <excludeFilterFile>
  567. ${findbugs.exclude}
  568. </excludeFilterFile>
  569. </configuration>
  570. </plugin>
  571. <plugin>
  572. <groupId>org.apache.maven.plugins</groupId>
  573. <artifactId>maven-enforcer-plugin</artifactId>
  574. <version>1.0</version>
  575. </plugin>
  576. <plugin>
  577. <groupId>org.apache.felix</groupId>
  578. <artifactId>maven-bundle-plugin</artifactId>
  579. <version>2.1.0</version>
  580. </plugin>
  581. <plugin>
  582. <groupId>org.apache.maven.plugins</groupId>
  583. <artifactId>maven-source-plugin</artifactId>
  584. <version>2.1.2</version>
  585. </plugin>
  586. <plugin>
  587. <groupId>org.apache.maven.plugins</groupId>
  588. <artifactId>maven-javadoc-plugin</artifactId>
  589. <version>2.10</version>
  590. </plugin>
  591. <plugin>
  592. <groupId>org.apache.maven.plugins</groupId>
  593. <artifactId>maven-project-info-reports-plugin</artifactId>
  594. <version>2.7</version>
  595. </plugin>
  596. <plugin>
  597. <groupId>org.glassfish.copyright</groupId>
  598. <artifactId>glassfish-copyright-maven-plugin</artifactId>
  599. <version>${copyright-plugin.version}</version>
  600. <configuration>
  601. <scm>git</scm>
  602. <scmOnly>true</scmOnly>
  603. <excludeFile>
  604. copyright-exclude
  605. </excludeFile>
  606. </configuration>
  607. </plugin>
  608. </plugins>
  609. </pluginManagement>
  610. </build>
  611.  
  612. <dependencyManagement>
  613. <dependencies>
  614. <dependency>
  615. <groupId>com.sun.activation</groupId>
  616. <artifactId>javax.activation</artifactId>
  617. <version>${project.version}</version>
  618. </dependency>
  619. </dependencies>
  620. </dependencyManagement>
  621.  
  622. <reporting>
  623. <plugins>
  624. <!--
  625. Configure FindBugs to run with "mvn site" and
  626. generate html output that can be viewed directly.
  627. -->
  628. <plugin>
  629. <groupId>org.codehaus.mojo</groupId>
  630. <artifactId>findbugs-maven-plugin</artifactId>
  631. <version>${findbugs.version}</version>
  632. <configuration>
  633. <skip>${findbugs.skip}</skip>
  634. <threshold>${findbugs.threshold}</threshold>
  635. <excludeFilterFile>
  636. ${findbugs.exclude}
  637. </excludeFilterFile>
  638. </configuration>
  639. </plugin>
  640. </plugins>
  641. </reporting>
  642. </project>
  643.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement