This is an automated email from the ASF dual-hosted git repository. rec pushed a commit to branch refactoring/44-Remove-deprecated-profiles in repository https://gitbox.apache.org/repos/asf/uima-parent-pom.git
commit eb36df91b416a762facb1ccdd17f85615327c284 Author: Richard Eckart de Castilho <r...@apache.org> AuthorDate: Wed Aug 2 17:07:19 2023 +0200 Issue #44: Remove deprecated profiles - Remove `build eclipse features` - Remove `build-eclipse-update-subsite` - Remove `build simple project binary assembly` - Remove `build OSGi bundle for annotator` - Remove `build standard PEAR --- pom.xml | 961 ---------------------------------------------------------------- 1 file changed, 961 deletions(-) diff --git a/pom.xml b/pom.xml index 45397ab..3d2fec4 100644 --- a/pom.xml +++ b/pom.xml @@ -986,7 +986,6 @@ </build> </profile> - <!-- *************************************************** --> <!-- * Run Rat report * --> <!-- *************************************************** --> @@ -1067,11 +1066,9 @@ </build> </profile> - <!-- ********************************** --> <!-- * Docbook Processing * --> <!-- ********************************** --> - <!-- Skip docbook processing unless the leaf child project has a docbook directory --> <profile> <id>process-docbook</id> @@ -1292,7 +1289,6 @@ </build> </profile> - <!-- ************************************ --> <!-- * Build Custom Binary Distribution * --> <!-- ************************************ --> @@ -1366,7 +1362,6 @@ </build> </profile> - <!-- ************************************ --> <!-- * Build Eclipse Plugin * --> <!-- ************************************ --> @@ -1489,700 +1484,6 @@ </build> </profile> - - <!-- ************************************ --> - <!-- * Build Eclipse Feature * --> - <!-- ************************************ --> - <profile> - <id>build eclipse features</id> - <activation> - <file> - <exists>marker-file-identifying-eclipse-feature</exists> - </file> - </activation> - <build> - <!-- turn on filtering for these resources --> - <resources> - <resource> - <directory>${basedir}</directory> - <includes> - <include>feature.properties</include> - <include>feature.xml</include> - <include>uima-eclipse-user-agreement.html</include> - </includes> - <filtering>true</filtering> - </resource> - </resources> - - <!-- - The feature.xml is filtered here, rather than in going from the top level place to the - Jar, because Eclipse feature manipulation uses the top level value. - --> - <plugins> - <!-- - filter the feature.xml to have the right version info for Eclipse at the top level - --> - <plugin> - <artifactId>maven-resources-plugin</artifactId> - <executions> - <execution> - <id>filter feature.xml</id> - <!-- run before process-resources, which uses this result --> - <phase>generate-resources</phase> - <goals> - <goal>copy-resources</goal> - </goals> - <configuration> - <outputDirectory>${basedir}</outputDirectory> - <resources> - <resource> - <directory>src/main/resources</directory> - <includes> - <include>feature.xml</include> - </includes> - <filtering>true</filtering> - </resource> - </resources> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - </profile> - - <!-- ************************************ --> - <!-- * Build Eclipse Update Subsite * --> - <!-- ************************************ --> - <profile> - <id>build-eclipse-update-subsite</id> - <activation> - <file> - <exists>marker-file-identifying-eclipse-update-site</exists> - </file> - </activation> - <properties> - <eusWork>${project.build.directory}/eus-work</eusWork> - <distsvnroot>https://dist.apache.org/</distsvnroot> - </properties> - <build> - <plugins> - - <!-- ============================================================================ --> - <!-- U s e o f d i s t . a p a c h e . o r g S V N --> - <!-- --> - <!-- Goals: avoid copying to /release/, use svn commit to do --> - <!-- just the changed files --> - <!-- --> - <!-- Safety (abandonded) --> - <!-- for safety, work in the /dev/ area --> - <!-- For vote, user can do commit to /dev/ area --> - <!-- After vote, user does svn switch to /release/ area and commits --> - <!-- Above aproach abandoned, just be careful not to commit before vote --> - <!-- --> - <!-- svn (release) -> checkout --> - <!-- srcs -> eus-work - - - - +-> subsite -> (manual) commit --> - <!-- SC SC --> - <!-- --> - <!-- SC = sign & checksum --> - <!-- the 2nd SC is for the updated artifacts and contents of the subsite --> - <!-- ============================================================================ --> - - <!-- ============================================================================ --> - <!-- O v e r a l l F l o w --> - <!-- --> - <!-- PROCESS-SOURCES --> - <!-- New features to be included -> target/eus-work --> - <!-- (eus = Eclipse Update Site) --> - <!-- --> - <!-- filter category.xml to pick up version # --> - <!-- --> - <!-- PACKAGE --> - <!-- Release SVN checkout -> target/eclipse-update-site/[component] --> - <!-- (This is the current site - to be updated) --> - <!-- --> - <!-- Publish metadata goes from target/eus-work -> eclipse-update-site/[comp] --> - <!-- (publish run in "append" mode) --> - <!-- --> - <!-- Category update goes from target/eus-work -> eclipse-update-site/[comp] --> - <!-- --> - <!-- (if apache-release: --> - <!-- do checksums and sign in target/eus-work --> - <!-- delete prev checksums and signature for artifacts/content.jar --> - <!-- add new checksum/sign for these two jars --> - <!-- copy all checksums/signatures from eus-work --> - <!-- ) --> - <!-- --> - <!-- ============================================================================ --> - - <!-- ============================================================================ --> - <!-- Alternate flow if apache-release is not defined - --> - <!-- skip getting previous update site from dist.apache.org --> - <!-- ============================================================================ --> - - <!-- filter the category.xml to have the right version info - for Eclipse at the top level --> - <plugin> - <artifactId>maven-resources-plugin</artifactId> - <executions> - <execution> - <id>filter-category.xml</id> - <!-- run before package, which uses this result --> - <phase>process-sources</phase> - <goals> - <goal>copy-resources</goal> - </goals> - <configuration> - <outputDirectory>${basedir}</outputDirectory> - <resources> - <resource> - <directory>src/main/resources</directory> - <includes> - <include>category.xml</include> - </includes> - <filtering>true</filtering> - </resource> - </resources> - </configuration> - </execution> - </executions> - </plugin> - - <plugin> - <artifactId>maven-antrun-plugin</artifactId> - <executions> - <execution> - <id>BuildUpdateSite-clearWorkAreas</id> - <phase>initialize</phase> - <goals> - <goal>run</goal> - </goals> - <configuration> - <target> - <delete dir="${eusWork}" /> - </target> - </configuration> - </execution> - - <execution> - <id>BuildUpdateSite-pack-svnget-buildMetadata-commit-to-dev</id> - <phase>package</phase> - <goals> - <goal>run</goal> - </goals> - <configuration> - <target> - <taskdef name="if" classname="net.sf.antcontrib.logic.IfTask" /> - - <!-- =================================== --> - <!-- Check we can access build tools --> - <!-- =================================== --> - <!-- if the property uima-maven-build-eclipse-home is set, use it, otherwise don't --> - <condition property="eclipse.home" value="${uima-maven-build-eclipse-home}"> - <not> - <equals arg1="${uima-maven-build-eclipse-home}" arg2="$${uima-maven-build-eclipse-home}" /> - </not> - </condition> - - <property environment="envVar" /> - <condition property="eclipse.home" value="${envVar.ECLIPSE_HOME}"> - <isset property="envVar.ECLIPSE_HOME" /> - </condition> - - <fail unless="eclipse.home" message="********** Please set up and use an ant property eclipse.home set to an Eclipse installation at level 3.3 or later, e.g. c:/eclipses/3.3/eclipse" /> - - <!-- =================================== --> - <!-- SVN checkout from release --> - <!-- and checkout to subsite --> - <!-- =================================== --> - - <if> - <equals arg1="${isApacheRelease}" arg2="true" /> - <then> - <echo>checking out eclipse update subsite ${eclipseUpdateSiteComponent} from - dist ...release...</echo> - <delete dir="${eclipseUpdateSubSite}" quiet="true" /> - <exec executable="svn" failonerror="true"> - <arg value="checkout" /> - <arg value="${distsvnroot}repos/dist/release/uima/eclipse-update-site/${eclipseUpdateSiteComponent}" /> - <arg value="${eclipseUpdateSubSite}" /> - </exec> - - <!-- abandon safety for now - <echo>switching this checkout to ...dev... for safety</echo> - <exec executable="svn"> - <arg value="switch" /> - <arg value="- -force" /> remove space between 2 dashes if uncommented - <arg value="- -accept" /> remove space between 2 dashes if uncommented - <arg value="mine-full" /> - <arg value="${distsvnroot}repos/dist/dev/uima/eclipse-update-site/${eclipseUpdateSiteComponent}" /> - <arg value="${eclipseUpdateSubSite}" /> - </exec> - --> - </then> - <else> - <echo>skipping checkout of current svn dist release (because not - apache-release)</echo> - <!-- https://issues.apache.org/jira/browse/UIMA-3501 --> - <delete dir="${eclipseUpdateSubSite}" quiet="true" /> - </else> - </if> - - <echo>Save conditioned Jars prior to signing, in case of redo</echo> - <echo>-------------------------------------------------------</echo> - <copy todir="${project.build.directory}/saved/features" failonerror="true"> - <fileset dir="${eusWork}/features" includes="*.jar" /> - </copy> - <copy todir="${project.build.directory}/saved/plugins" failonerror="true"> - <fileset dir="${eusWork}/plugins" includes="*.jar" /> - </copy> - - <echo>Generate the p2 metadata and publish new artifacts</echo> - <!-- Append is needed because category info is incremental with each additional release --> - <java jar="${eclipse-equinox-launcher}" fork="true" failonerror="true" maxmemory="256m"> - <arg line="-application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher" /> - <arg line="-metadataRepository file:///${eclipseUpdateSubSite}" /> - <arg line="-artifactRepository file:///${eclipseUpdateSubSite}" /> - <arg line="-source ${eusWork}" /> - <arg line="-configs ANY.ANY.ANY" /> - <arg line="-publishArtifacts" /> - <arg line="-compress" /> - <arg line="-append" /> - </java> - - <echo>Augment p2 metadata with category information</echo> - <java jar="${eclipse-equinox-launcher}" fork="true" failonerror="true" maxmemory="256m"> - <arg line="-application org.eclipse.equinox.p2.publisher.CategoryPublisher" /> - <arg line="-metadataRepository file:///${eclipseUpdateSubSite}" /> - <arg line="-categoryDefinition file:///${basedir}/category.xml" /> - <arg line="-categoryQualifier apache-uima" /> - <arg line="-compress" /> - </java> - - - <!-- ========================================== --> - <!-- If apache-release, do checksums and sign --> - <!-- ========================================== --> - <if> - <equals arg1="${isApacheRelease}" arg2="true" /> - <then> - - <echo message="Generating checksums for new features and plugins" /> - <checksum algorithm="SHA-512" fileext=".sha512" format="MD5SUM" forceoverwrite="yes"> - <fileset dir="${eusWork}"> - <include name="**/*.gz" /> - <include name="**/*.jar" /> - </fileset> - </checksum> - - <echo message="Generating gpg signatures for new features and plugins" /> - <apply executable="gpg" dir="${eusWork}" failonerror="true"> - <arg value="--detach-sign" /> - <arg value="--armor" /> - <!-- batch flag needed to avoid gpg hang up --> - <arg value="--batch" /> - <fileset dir="${eusWork}"> - <include name="**/*.jar" /> - </fileset> - </apply> - - <echo message="Copying the checksums and signatures to the update subsite" /> - <copy todir="${eclipseUpdateSubSite}" failonerror="true"> - <fileset dir="${eusWork}"> - <include name="**/*.asc" /> - <include name="**/*.sha512" /> - </fileset> - </copy> - - <echo message="Clearing previous checksums and signatures for update artifacts.jar and content.jar" /> - <delete dir="${eclipseUpdateSubSite}"> - <include name="*.asc" /> - <include name="**/*.sha512" /> - </delete> - - <echo message="Generating checksums for updated artifacts.jar and content.jar" /> - <checksum algorithm="SHA-512" fileext=".sha512" format="MD5SUM" forceoverwrite="yes"> - <fileset dir="${eclipseUpdateSubSite}"> - <include name="*.jar" /> - </fileset> - </checksum> - - <echo message="Generating gpg signatures for artifacts.jar and content.jar" /> - <apply executable="gpg" dir="${eclipseUpdateSubSite}" failonerror="true"> - <arg value="--detach-sign" /> - <arg value="--armor" /> - <!-- batch flag needed to avoid GPG hang up --> - <arg value="--batch" /> - <fileset dir="${eclipseUpdateSubSite}"> - <include name="*.jar" /> - </fileset> - </apply> - </then> - </if> - </target> - </configuration> - </execution> - - <!-- ================================================= --> - <!-- --> - <!-- P O S T JAR S I G N I N G by Digicert --> - <!-- --> - <!-- Rerun publish and sign after jar-signing --> - <!-- Has NO GOAL or PHASE, so doesn't run normally --> - <!-- run using mvn --> - <!-- antrun:run@make-subsite-after-signing --> - <!-- ================================================= --> - <execution> - <id>make-subsite-after-signing</id> - <configuration> - <target> - <taskdef name="if" classname="net.sf.antcontrib.logic.IfTask" /> - - <!-- =================================== --> - <!-- Check we can access build tools --> - <!-- =================================== --> - <!-- if the property uima-maven-build-eclipse-home is set, use it, otherwise don't --> - <condition property="eclipse.home" value="${uima-maven-build-eclipse-home}"> - <not> - <equals arg1="${uima-maven-build-eclipse-home}" arg2="$${uima-maven-build-eclipse-home}" /> - </not> - </condition> - - <property environment="envVar" /> - <condition property="eclipse.home" value="${envVar.ECLIPSE_HOME}"> - <isset property="envVar.ECLIPSE_HOME" /> - </condition> - - <echo> - </echo> - <echo>Resetting the content and artifacts for the site</echo> - <echo>------------------------------------------------</echo> - - <!-- This is needed because the previous pre-build step already - updated the content and artifacts jar with the new versions --> - <delete verbose="true"> - <fileset dir="${eclipseUpdateSubSite}" includes="content.jar,artifacts.jar" /> - </delete> - <copy todir="${eclipseUpdateSubSite}" failonerror="false"> - <fileset dir="${project.build.directory}/saved" includes="content.jar,artifacts.jar" /> - </copy> - - <echo> - </echo> - <echo>Generate the p2 metadata and publish new artifacts</echo> - <echo>--------------------------------------------------</echo> - <!-- Append is needed because category info is incremental with each additional release --> - <java jar="${eclipse-equinox-launcher}" fork="true" failonerror="true" maxmemory="256m"> - <arg line="-application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher" /> - <arg line="-metadataRepository file:///${eclipseUpdateSubSite}" /> - <arg line="-artifactRepository file:///${eclipseUpdateSubSite}" /> - <arg line="-source ${eusWork}" /> - <arg line="-configs ANY.ANY.ANY" /> - <arg line="-publishArtifacts" /> - <arg line="-compress" /> - <arg line="-append" /> - </java> - - <echo>Augment p2 metadata with category information</echo> - <echo>---------------------------------------------</echo> - <java jar="${eclipse-equinox-launcher}" fork="true" failonerror="true" maxmemory="256m"> - <arg line="-application org.eclipse.equinox.p2.publisher.CategoryPublisher" /> - <arg line="-metadataRepository file:///${eclipseUpdateSubSite}" /> - <arg line="-categoryDefinition file:///${basedir}/category.xml" /> - <arg line="-categoryQualifier apache-uima" /> - <arg line="-compress" /> - </java> - - <echo> - </echo> - <echo>Clearing previous checksums and signatures for eusWork plugins</echo> - <delete dir="${eusWork}"> - <include name="**/*.asc" /> - <include name="**/*.sha512" /> - </delete> - - <echo message="Generating checksums for signed plugins" /> - - <checksum algorithm="SHA-512" fileext=".sha512" format="MD5SUM" forceoverwrite="yes"> - <fileset dir="${eusWork}"> - <include name="**/*.gz" /> - <include name="**/*.jar" /> - </fileset> - </checksum> - - <echo message="Generating gpg signatures for new features and plugins" /> - <apply executable="gpg" dir="${eusWork}" failonerror="true"> - <arg value="--detach-sign" /> - <arg value="--armor" /> - <!-- batch flag needed to avoid gpg hang up --> - <arg value="--batch" /> - <fileset dir="${eusWork}"> - <include name="**/*.jar" /> - </fileset> - </apply> - - <echo message="Copying the checksums and signatures to the update subsite" /> - <copy todir="${eclipseUpdateSubSite}" failonerror="true"> - <fileset dir="${eusWork}"> - <include name="**/*.asc" /> - <include name="**/*.sha512" /> - </fileset> - </copy> - - <echo> - </echo> - <echo message="Clearing previous checksums and signatures for update artifacts.jar and content.jar" /> - <delete dir="${eclipseUpdateSubSite}"> - <include name="*.asc" /> - <include name="*.sha512" /> - </delete> - - <echo message="Generating checksums for updated artifacts.jar and content.jar" /> - <checksum algorithm="SHA-512" fileext=".sha512" format="MD5SUM" forceoverwrite="yes"> - <fileset dir="${eclipseUpdateSubSite}"> - <include name="*.jar" /> - </fileset> - </checksum> - - <echo message="Generating gpg signatures for artifacts.jar and content.jar" /> - <apply executable="gpg" dir="${eclipseUpdateSubSite}" failonerror="true"> - <arg value="--detach-sign" /> - <arg value="--armor" /> - <!-- batch flag needed to avoid gpg hang up --> - <arg value="--batch" /> - <fileset dir="${eclipseUpdateSubSite}"> - <include name="*.jar" /> - </fileset> - </apply> - </target> - </configuration> - </execution> - - </executions> - </plugin> - </plugins> - - </build> - </profile> - - <!-- **************************************** --> - <!-- * Build Simple Project Binary Assembly * --> - <!-- **************************************** --> - <!-- - This profile holds common, factored-out settings for all - projects that are packaged as single projects - (that is, not as multi-module projects), typically Sandbox projects. - - It builds, in addition to the standard artifacts and attachments, - a binary artifact, which includes: - - The main generated artifact, in the lib/ dir - - dependent artifacts needed at runtime (not otherwise provided), in the lib/ dir - - Lic/Not/Readme/releaseNotes from root dir - - generated documentation in the docs/ dir - - At release time the standard Apache parent builds the - - "source-release" artifact, and the - - "javadocs" artifact - - Conventions: - - License/Notice for Jar: uses the standard license/notice - License/Notice for bin: uses the custom files from project top level - dependencies on other artifacts: - Specified as scope runtime or compile causes these to be included in the lib dir - - --> - <profile> - <id>build simple project binary assembly</id> - <activation> - <file> - <exists>marker-file-identifying-single-project</exists> - </file> - </activation> - <build> - <plugins> - - <!-- ********************************************* --> - <!-- * Common Build --> - <!-- * *** FOR addons only *** --> - <!-- ********************************************* --> - <!-- * Base Jar is built, --> - <!-- * has no dependencies included --> - <!-- * has basic LICENSE/NOTICE files --> - <!-- * Base augmented dir built --> - <!-- * has Base Jar in lib/ --> - <!-- * has dependencies in lib/ --> - <!-- * has other things that go into PEAR --> - <!-- * except the pear install.xml --> - <!-- * has augmented LICENSE/NOTICE files --> - <!-- * --> - <!-- * This base is reused to make packages: --> - <!-- * PEAR - adds the install.xml --> - <!-- * - actually, the PEAR builder --> - <!-- * will redo the copies, itself --> - <!-- * OSGi - adds the OSGi manifest --> - <!-- * - removes the doc, javadocs --> - <!-- * individual zip/tar --> - <!-- * addons aggregate binary zip/tar --> - <!-- ********************************************* --> - - <plugin> - <artifactId>maven-javadoc-plugin</artifactId> - <executions> - <execution> - <id>attach-javadocs</id> - <!-- turn on javadoc build for each module --> - <phase>prepare-package</phase> <!-- before package, in case package needs the result --> - </execution> - </executions> - </plugin> - - <!-- Build base --> - <!-- populate the lib dir with all needed dependencies - that will be distributed with this component - - NOTE: TRANSITIVE DEPENDENIES ARE NOT INCLUDED - ANYTHING YOU WANT INCLUDED IN THE JAR - PLEASE LIST EXPLICITLY AND MODIFY THE LICENSE/NOTICE - APPROPRIATELY - - Runs during process-resources --> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-dependency-plugin</artifactId> - <executions> - <!-- Copy the dependencies to the target/base-bin/lib folder --> - <execution> - <id>copy dependencies to base-bin/lib</id> - <goals> - <goal>copy-dependencies</goal> - </goals> - <phase>process-resources</phase> - <configuration> - <outputDirectory>${project.build.directory}/base-bin/lib</outputDirectory> - <includeScope>runtime</includeScope> - <excludeTransitive>true</excludeTransitive> - </configuration> - </execution> - </executions> - </plugin> - - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-resources-plugin</artifactId> - <executions> - - <!-- add directories if they exist --> - <execution> - <id>copy standard dirs and files to base-bin</id> - <goals> - <goal>copy-resources</goal> - </goals> - <phase>process-resources</phase> <!-- required --> - <configuration> - <outputDirectory>${project.build.directory}/base-bin</outputDirectory> - <resources> - <resource> - <directory>.</directory> - <includes> - <include>desc/**</include> - <include>conf/**</include> - <include>data/**</include> - <include>doc/**</include> - <include>docs/**</include> - <include>resources/**</include> - <include>bin/**</include> - <include>LICENSE*</include> - <include>NOTICE*</include> - <include>README*</include> - <include>readme*</include> - <include>RELEASE_NOTES*</include> - <include>ReleaseNotes*</include> - <include>issuesFixed/**</include> - </includes> - </resource> - <resource> - <directory>src/main/readme</directory> - </resource> - </resources> - </configuration> - </execution> - - <!-- copy generated Jar to base-bin/lib spot --> - <execution> - <id>copy standard target jar to base-bin/lib</id> - <goals> - <goal>copy-resources</goal> - </goals> - <phase>pre-integration-test</phase> <!-- a phase after jar --> - <configuration> - <outputDirectory>${project.build.directory}/base-bin/lib</outputDirectory> - <resources> - <resource> - <directory>${project.build.directory}</directory> - <includes> - <include>*.jar</include> - </includes> - <excludes> - <exclude>*-sources.jar</exclude> - <exclude>*-osgi.jar</exclude> - </excludes> - </resource> - </resources> - </configuration> - </execution> - - <!-- copy generated docbook artifacts --> - <execution> - <id>copy generated docbook artifacts to base-bin/doc folder</id> - <goals> - <goal>copy-resources</goal> - </goals> - <phase>pre-integration-test</phase> <!-- a phase after docbkx (package) phase --> - <configuration> - <outputDirectory>${project.build.directory}/base-bin/doc</outputDirectory> - <resources> - <resource> - <directory>${project.build.directory}/site/d</directory> - </resource> - </resources> - </configuration> - </execution> - </executions> - </plugin> - - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-assembly-plugin</artifactId> - <executions> - <execution> - <id>binary-release</id> <!-- is "classifier" - match maven convention --> - <goals> - <goal>single</goal> - </goals> - <phase>integration-test</phase> <!-- after first copies from jar/docbk pkg --> - <configuration> - <runOnlyAtExecutionRoot>true</runOnlyAtExecutionRoot> - <descriptorRefs> - <descriptorRef> - uima-single-project-bin2 - </descriptorRef> - </descriptorRefs> - </configuration> - </execution> - </executions> - <dependencies> - <dependency> - <groupId>org.apache.uima</groupId> - <artifactId>uima-build-resources</artifactId> - <version>${uimaBuildResourcesVersion}</version> - </dependency> - </dependencies> - </plugin> - </plugins> - </build> - </profile> - <!-- ********************************** --> <!-- * Build OSGi bundle * --> <!-- ********************************** --> @@ -2262,263 +1563,6 @@ </build> </profile> - <!-- ********************************** --> - <!-- * Build OSGi bundle (old) * --> - <!-- ********************************** --> - <profile> - <id>build OSGi bundle for annotator</id> - <activation> - <file> - <exists>marker-file-identifying-osgi-project</exists> - </file> - </activation> - - <build> - <plugins> - <plugin> - <artifactId>maven-resources-plugin</artifactId> - <executions> - <!-- copy the base-bin dir to the osgi dir --> - <execution> - <id>Copy base-bin to osgi</id> - <goals> - <goal>copy-resources</goal> - </goals> - <phase>integration-test</phase> - <configuration> - <outputDirectory>${project.build.directory}/osgi</outputDirectory> - <resources> - <resource> - <directory>${project.build.directory}/base-bin</directory> - <includes> - <include>**</include> - </includes> - <excludes> - <exclude>doc/**</exclude> - <exclude>docs/**</exclude> - <exclude>**/*-javadoc.jar</exclude> - <exclude>issuesFixed/**</exclude> - </excludes> - </resource> - </resources> - </configuration> - </execution> - </executions> - </plugin> - - <!-- copy any uima dependencies needed to osgi/lib - beyond what is done for the common build. - NOTE: can't just add dependencies, because - a) local projects override scope to "provided" and - b) this would result in the jars being copied for - the common build --> - - <plugin> - <artifactId>maven-dependency-plugin</artifactId> - <executions> - <execution> - <id>Copy uima dependencies to osgi/lib</id> - <goals> - <goal>copy</goal> - </goals> - <phase>process-resources</phase> - <configuration> - <outputDirectory>${project.build.directory}/osgi/lib</outputDirectory> - <artifactItems> - <artifactItem> - <groupId>org.apache.uima</groupId> - <artifactId>uimaj-core</artifactId> - <version>${uimaDependencyVersion}</version> - </artifactItem> - </artifactItems> - </configuration> - </execution> - </executions> - </plugin> - - <plugin> - <groupId>org.apache.felix</groupId> - <artifactId>maven-bundle-plugin</artifactId> - <executions> - <execution> - <id>uima-bundle</id> - <phase>integration-test</phase> - <goals> - <goal>manifest</goal> - </goals> - <configuration> - <buildDirectory>${project.build.directory}/osgi</buildDirectory> - <manifestLocation>${project.build.directory}/osgi/META-INF</manifestLocation> - <instructions> - <Import-Package>org.apache.log.*;resolution:=optional</Import-Package> - <Embed-Dependency>*;scope=compile;</Embed-Dependency> - <Embed-Directory>lib</Embed-Directory> - <Bundle-RequiredExecutionEnvironment>J2SE-1.6</Bundle-RequiredExecutionEnvironment> - <Eclipse-ExtensibleAPI>true</Eclipse-ExtensibleAPI> - <Bundle-ClassPath>.,lib/${project.build.finalName}.jar,{maven-dependencies},lib/uimaj-core-${uimaDependencyVersion}.jar</Bundle-ClassPath> - <Include-Resource> - {maven-resources}, {maven-dependencies}, - lib/uimaj-core-${uimaDependencyVersion}.jar=${settings.localRepository}/org/apache/uima/uimaj-core/${uimaDependencyVersion}/uimaj-core-${uimaDependencyVersion}.jar - </Include-Resource> - <Bundle-Version>${parsedVersion.osgiVersion}</Bundle-Version> - <Bundle-SymbolicName>${project.groupId}.${project.artifactId};singleton:=true</Bundle-SymbolicName> - </instructions> - </configuration> - </execution> - </executions> - </plugin> - - <!-- Run JAR to create OSGi Jar --> - <plugin> - <artifactId>maven-jar-plugin</artifactId> - <executions> - <execution> - <id>Create OSGi Jar</id> - <goals> - <goal>jar</goal> - </goals> - <phase>integration-test</phase> <!-- after above build step --> - <configuration> - <finalName>${project.groupId}.${project.artifactId}_${parsedVersion.osgiVersion}</finalName> - <classifier>osgi</classifier> - <classesDirectory>${project.build.directory}/osgi</classesDirectory> - <archive> - <manifestFile>${project.build.directory}/osgi/META-INF/MANIFEST.MF</manifestFile> - </archive> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - </profile> - - - <!-- ********************************** --> - <!-- * Build Standard PEAR * --> - <!-- ********************************** --> - <profile> - <id>build standard PEAR</id> - <activation> - <file> - <exists>marker-file-identifying-standard-pear</exists> - </file> - </activation> - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-resources-plugin</artifactId> - <executions> - <!-- add the contents of desc if it exists to the jar. - This puts the things like the WhitespaceTokenizer.xml file into the Jar - and makes it easier for users to run this, without installing a pear. - The Tagger project uses this technique, for instance --> - <execution> - <id>copy desc so its contents can be found in Jar</id> - <goals> - <goal>copy-resources</goal> - </goals> - <phase>process-resources</phase> <!-- required --> - <configuration> - <outputDirectory>${project.build.outputDirectory}</outputDirectory> - <resources> - <resource> - <directory>desc</directory> - <includes> - <include>**</include> - </includes> - </resource> - </resources> - </configuration> - </execution> - - <!-- copy the base-bin dir to the pearPackaging dir --> - <execution> - <id>Copy base-bin to pearPackaging</id> - <goals> - <goal>copy-resources</goal> - </goals> - <phase>integration-test</phase> <!-- after first copies from jar/docbk pkg --> - <configuration> - <outputDirectory>${project.build.directory}/pearPackaging</outputDirectory> - <resources> - <resource> - <directory>${project.build.directory}/base-bin</directory> - <includes> - <include>**</include> - </includes> - <excludes> - <exclude>**/*-javadoc.jar</exclude> - </excludes> - </resource> - </resources> - </configuration> - </execution> - </executions> - </plugin> - - <plugin> - <artifactId>maven-javadoc-plugin</artifactId> - <executions> - <execution> - <id>attach-javadocs</id> - <!-- turn on javadoc build for each module --> - <phase>package</phase> - </execution> - </executions> - </plugin> - - <!-- build the PEAR --> - <plugin> - <groupId>org.apache.uima</groupId> - <artifactId>PearPackagingMavenPlugin</artifactId> - <extensions>true</extensions> - <executions> - <execution> - <id>build uima annnotator Pear</id> - <goals> - <goal>package</goal> - </goals> - <!-- needs to run after the jar is built - after docbooks are packaged and copied to pearPackaging/doc folder --> - <phase>integration-test</phase> <!-- after first copies from jar/docbk pkg --> - <configuration> - <datapath>$main_root/resources</datapath> - <componentId>${project.artifactId}</componentId> - <mainComponentDesc>${pearMainDescriptor}</mainComponentDesc> - </configuration> - </execution> - </executions> - </plugin> - - <!-- Attach PEAR artifact after PEAR is built --> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>build-helper-maven-plugin</artifactId> - <executions> - <execution> - <id>attach-pear-artifact</id> - <phase>post-integration-test</phase> - <goals> - <goal>attach-artifact</goal> - </goals> - <configuration> - <artifacts> - <artifact> - <file>${project.build.directory}/${project.artifactId}.pear</file> - <type>pear</type> - </artifact> - </artifacts> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - </profile> - - <!-- *********************************** --> <!-- * Eclipse: m2e lifecycle bindings * --> <!-- *********************************** --> @@ -2710,7 +1754,6 @@ </build> </profile> - <!-- ********************************** --> <!-- * Code quality: spotbugs * --> <!-- ********************************** --> @@ -2738,7 +1781,6 @@ </build> </profile> - <!-- ********************************** --> <!-- * Code quality: JaCoCo * --> <!-- ********************************** --> @@ -2793,7 +1835,6 @@ </build> </profile> - <!-- ********************************** --> <!-- * Code quality: PMD * --> <!-- ********************************** --> @@ -2945,7 +1986,6 @@ </build> </profile> - <!-- *********************************************** --> <!-- * Enable Tycho * --> <!-- *********************************************** --> @@ -2962,7 +2002,6 @@ </properties> </profile> - <!-- *********************************************** --> <!-- * Enable Tycho during release builds * --> <!-- *********************************************** -->