ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seanfi...@apache.org
Subject svn commit: r1768564 - /ctakes/trunk/ctakes-distribution/pom.xml
Date Mon, 07 Nov 2016 17:50:29 GMT
Author: seanfinan
Date: Mon Nov  7 17:50:29 2016
New Revision: 1768564

URL: http://svn.apache.org/viewvc?rev=1768564&view=rev
Log:
Separated build into 2 profiles: packageBinary and packageSource
packageBinary is enabled by default, packageSource is not

Modified:
    ctakes/trunk/ctakes-distribution/pom.xml

Modified: ctakes/trunk/ctakes-distribution/pom.xml
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-distribution/pom.xml?rev=1768564&r1=1768563&r2=1768564&view=diff
==============================================================================
--- ctakes/trunk/ctakes-distribution/pom.xml (original)
+++ ctakes/trunk/ctakes-distribution/pom.xml Mon Nov  7 17:50:29 2016
@@ -20,187 +20,270 @@
 
 -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-	<modelVersion>4.0.0</modelVersion>
-	<artifactId>ctakes-distribution</artifactId>
-	<name>Apache cTAKES Distribution</name>
-	<parent>
-		<groupId>org.apache.ctakes</groupId>
-		<artifactId>ctakes</artifactId>
-		<version>3.2.3-SNAPSHOT</version>
-	</parent>
-	<packaging>pom</packaging>
-
-	<!-- Versions will automatically be updated by the release plugin -->
-	<dependencies>
-		<dependency>
-			<groupId>org.apache.ctakes</groupId>
-			<artifactId>ctakes-type-system</artifactId>
-		</dependency>
-		<dependency>
-			<groupId>org.apache.ctakes</groupId>
-			<artifactId>ctakes-core</artifactId>
-		</dependency>
-		<dependency>
-			<groupId>org.apache.ctakes</groupId>
-			<artifactId>ctakes-utils</artifactId>
-		</dependency>
-		<dependency>
-			<groupId>org.apache.ctakes</groupId>
-			<artifactId>ctakes-context-tokenizer</artifactId>
-		</dependency>
-		<dependency>
-			<groupId>org.apache.ctakes</groupId>
-			<artifactId>ctakes-dictionary-lookup</artifactId>
-		</dependency>
+   <modelVersion>4.0.0</modelVersion>
+   <artifactId>ctakes-distribution</artifactId>
+   <name>Apache cTAKES Distribution</name>
+   <parent>
+      <groupId>org.apache.ctakes</groupId>
+      <artifactId>ctakes</artifactId>
+      <version>3.2.3-SNAPSHOT</version>
+   </parent>
+   <packaging>pom</packaging>
+
+   <!-- Versions will automatically be updated by the release plugin -->
+   <dependencies>
+      <dependency>
+         <groupId>org.apache.ctakes</groupId>
+         <artifactId>ctakes-type-system</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.ctakes</groupId>
+         <artifactId>ctakes-core</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.ctakes</groupId>
+         <artifactId>ctakes-utils</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.ctakes</groupId>
+         <artifactId>ctakes-context-tokenizer</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.ctakes</groupId>
+         <artifactId>ctakes-dictionary-lookup</artifactId>
+      </dependency>
       <dependency>
          <groupId>org.apache.ctakes</groupId>
          <artifactId>ctakes-dictionary-lookup-fast</artifactId>
       </dependency>
-		<dependency>
-			<groupId>org.apache.ctakes</groupId>
-			<artifactId>ctakes-examples</artifactId>
-		</dependency>
-      <dependency>
-			<groupId>org.apache.ctakes</groupId>
-			<artifactId>ctakes-preprocessor</artifactId>
-		</dependency>
-		<dependency>
-			<groupId>org.apache.ctakes</groupId>
-			<artifactId>ctakes-lvg</artifactId>
-		</dependency>
-		<dependency>
-			<groupId>org.apache.ctakes</groupId>
-			<artifactId>ctakes-chunker</artifactId>
-		</dependency>
-		<dependency>
-			<groupId>org.apache.ctakes</groupId>
-			<artifactId>ctakes-ne-contexts</artifactId>
-		</dependency>
-		<dependency>
-			<groupId>org.apache.ctakes</groupId>
-			<artifactId>ctakes-pos-tagger</artifactId>
-		</dependency>
-		<dependency>
-			<groupId>org.apache.ctakes</groupId>
-			<artifactId>ctakes-assertion</artifactId>
-		</dependency>
-		<dependency>
-			<groupId>org.apache.ctakes</groupId>
-			<artifactId>ctakes-dependency-parser</artifactId>
-		</dependency>
-		<dependency>
-			<groupId>org.apache.ctakes</groupId>
-			<artifactId>ctakes-clinical-pipeline</artifactId>
-		</dependency>
-		<dependency>
-			<groupId>org.apache.ctakes</groupId>
-			<artifactId>ctakes-constituency-parser</artifactId>
-		</dependency>		
-		<dependency>
-			<groupId>org.apache.ctakes</groupId>
-			<artifactId>ctakes-coreference</artifactId>
-		</dependency>			
-		<dependency>
-			<groupId>org.apache.ctakes</groupId>
-			<artifactId>ctakes-drug-ner</artifactId>
-		</dependency>	
-		<dependency>
-			<groupId>org.apache.ctakes</groupId>
-			<artifactId>ctakes-ne-contexts</artifactId>
-		</dependency>					
-		<dependency>
-			<groupId>org.apache.ctakes</groupId>
-			<artifactId>ctakes-relation-extractor</artifactId>
-		</dependency>
-		<dependency>
-			<groupId>org.apache.ctakes</groupId>
-			<artifactId>ctakes-side-effect</artifactId>
-		</dependency>		
-		<dependency>
-			<groupId>org.apache.ctakes</groupId>
-			<artifactId>ctakes-smoking-status</artifactId>
-		</dependency>
-		<dependency>
-			<groupId>org.apache.ctakes</groupId>
-			<artifactId>ctakes-temporal</artifactId>
-		</dependency>									
-		<dependency>
-			<groupId>org.apache.ctakes</groupId>
-			<artifactId>ctakes-ytex</artifactId>
-		</dependency>						
-		<dependency>
-			<groupId>org.apache.ctakes</groupId>
-			<artifactId>ctakes-ytex-uima</artifactId>
-		</dependency>						
-		<dependency>
-			<groupId>org.apache.ctakes</groupId>
-			<artifactId>ctakes-ytex-web</artifactId>
-			<version>${project.version}</version>
-			<classifier>classes</classifier>
-		</dependency>
-	</dependencies>
-
-	<build>
-		<plugins>
-		  <plugin>
-		     <groupId>org.apache.maven.plugins</groupId>
-		     <artifactId>maven-deploy-plugin</artifactId>
-		     <configuration>
-		       <skip>true</skip>
-		     </configuration>
-		   </plugin>		
-			<plugin>
-				<artifactId>maven-assembly-plugin</artifactId>
-				<executions>
-					<execution>
-						<id>bundle-project-sources</id>
-						<phase>package</phase>
-						<goals>
-							<goal>single</goal>
-						</goals>
-						<configuration>
-							<descriptors>
-								<descriptor>src/main/assembly/bin.xml</descriptor>
-								<descriptor>src/main/assembly/src.xml</descriptor>
-							</descriptors>
-							<!-- Tar package is only compatible with gnu tar, many file have more 
-								than 100 chars. Right now only javadoc files are too long. -->
-							<tarLongFileMode>gnu</tarLongFileMode>
-
-							<finalName>apache-ctakes-${project.version}</finalName>
-						</configuration>
-					</execution>
-				</executions>
-			</plugin>
-			<plugin>
-				<artifactId>maven-antrun-plugin</artifactId>
-				<version>1.6</version>
-				<executions>
-					<execution>
-						<id>generate checksums for binary artifacts</id>
-						<goals>
-							<goal>run</goal>
-						</goals>
-						<phase>verify</phase>
-						<configuration>
-							<target>
-								<checksum algorithm="sha1" format="MD5SUM">
-									<fileset dir="${project.build.directory}">
-										<include name="*.zip" />
-										<include name="*.gz" />
-									</fileset>
-								</checksum>
-								<checksum algorithm="md5" format="MD5SUM">
-									<fileset dir="${project.build.directory}">
-										<include name="*.zip" />
-										<include name="*.gz" />
-									</fileset>
-								</checksum>
-							</target>
-						</configuration>
-					</execution>
-				</executions>
-			</plugin>
-		</plugins>
-	</build>
+      <dependency>
+         <groupId>org.apache.ctakes</groupId>
+         <artifactId>ctakes-examples</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.ctakes</groupId>
+         <artifactId>ctakes-preprocessor</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.ctakes</groupId>
+         <artifactId>ctakes-lvg</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.ctakes</groupId>
+         <artifactId>ctakes-chunker</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.ctakes</groupId>
+         <artifactId>ctakes-ne-contexts</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.ctakes</groupId>
+         <artifactId>ctakes-pos-tagger</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.ctakes</groupId>
+         <artifactId>ctakes-assertion</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.ctakes</groupId>
+         <artifactId>ctakes-dependency-parser</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.ctakes</groupId>
+         <artifactId>ctakes-clinical-pipeline</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.ctakes</groupId>
+         <artifactId>ctakes-constituency-parser</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.ctakes</groupId>
+         <artifactId>ctakes-coreference</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.ctakes</groupId>
+         <artifactId>ctakes-drug-ner</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.ctakes</groupId>
+         <artifactId>ctakes-ne-contexts</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.ctakes</groupId>
+         <artifactId>ctakes-relation-extractor</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.ctakes</groupId>
+         <artifactId>ctakes-side-effect</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.ctakes</groupId>
+         <artifactId>ctakes-smoking-status</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.ctakes</groupId>
+         <artifactId>ctakes-temporal</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.ctakes</groupId>
+         <artifactId>ctakes-ytex</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.ctakes</groupId>
+         <artifactId>ctakes-ytex-uima</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.apache.ctakes</groupId>
+         <artifactId>ctakes-ytex-web</artifactId>
+         <version>${project.version}</version>
+         <classifier>classes</classifier>
+      </dependency>
+   </dependencies>
+
+   <profiles>
+      <profile>
+         <!-- Creating a compressed distribution of binaries is the usual need. -->
+         <!-- However, it can be turned off (e.g. to prefer source) with mvn package -P!packageBinary
-->
+         <id>packageBinary</id>
+         <activation>
+            <activeByDefault>true</activeByDefault>
+         </activation>
+         <build>
+            <plugins>
+               <plugin>
+                  <groupId>org.apache.maven.plugins</groupId>
+                  <artifactId>maven-deploy-plugin</artifactId>
+                  <configuration>
+                     <skip>true</skip>
+                  </configuration>
+               </plugin>
+               <plugin>
+                  <artifactId>maven-assembly-plugin</artifactId>
+                  <executions>
+                     <execution>
+                        <id>bundle-project-sources</id>
+                        <phase>package</phase>
+                        <goals>
+                           <goal>single</goal>
+                        </goals>
+                        <configuration>
+                           <descriptors>
+                              <descriptor>src/main/assembly/bin.xml</descriptor>
+                           </descriptors>
+                           <!-- Tar package is only compatible with gnu tar, many file
have more
+                              than 100 chars. Right now only javadoc files are too long.
-->
+                           <tarLongFileMode>gnu</tarLongFileMode>
+
+                           <finalName>apache-ctakes-${project.version}</finalName>
+                        </configuration>
+                     </execution>
+                  </executions>
+               </plugin>
+               <plugin>
+                  <artifactId>maven-antrun-plugin</artifactId>
+                  <version>1.6</version>
+                  <executions>
+                     <execution>
+                        <id>generate checksums for binary artifacts</id>
+                        <goals>
+                           <goal>run</goal>
+                        </goals>
+                        <phase>verify</phase>
+                        <configuration>
+                           <target>
+                              <checksum algorithm="sha1" format="MD5SUM">
+                                 <fileset dir="${project.build.directory}">
+                                    <include name="*.zip"/>
+                                    <include name="*.gz"/>
+                                 </fileset>
+                              </checksum>
+                              <checksum algorithm="md5" format="MD5SUM">
+                                 <fileset dir="${project.build.directory}">
+                                    <include name="*.zip"/>
+                                    <include name="*.gz"/>
+                                 </fileset>
+                              </checksum>
+                           </target>
+                        </configuration>
+                     </execution>
+                  </executions>
+               </plugin>
+            </plugins>
+         </build>
+      </profile>
+
+      <profile>
+         <!-- A distributable package of the source is rarely desired. -->
+         <!-- By default it will not be created.  Use mvn package -PpackageSource to create
it. -->
+         <id>packageSource</id>
+         <activation>
+            <property>
+               <name>packageSource</name>
+            </property>
+         </activation>
+         <build>
+            <plugins>
+               <plugin>
+                  <groupId>org.apache.maven.plugins</groupId>
+                  <artifactId>maven-deploy-plugin</artifactId>
+                  <configuration>
+                     <skip>true</skip>
+                  </configuration>
+               </plugin>
+               <plugin>
+                  <artifactId>maven-assembly-plugin</artifactId>
+                  <executions>
+                     <execution>
+                        <id>bundle-project-sources</id>
+                        <phase>package</phase>
+                        <goals>
+                           <goal>single</goal>
+                        </goals>
+                        <configuration>
+                           <descriptors>
+                              <descriptor>src/main/assembly/src.xml</descriptor>
+                           </descriptors>
+                           <!-- Tar package is only compatible with gnu tar, many file
have more
+                              than 100 chars. Right now only javadoc files are too long.
-->
+                           <tarLongFileMode>gnu</tarLongFileMode>
+
+                           <finalName>apache-ctakes-${project.version}</finalName>
+                        </configuration>
+                     </execution>
+                  </executions>
+               </plugin>
+               <plugin>
+                  <artifactId>maven-antrun-plugin</artifactId>
+                  <version>1.6</version>
+                  <executions>
+                     <execution>
+                        <id>generate checksums for binary artifacts</id>
+                        <goals>
+                           <goal>run</goal>
+                        </goals>
+                        <phase>verify</phase>
+                        <configuration>
+                           <target>
+                              <checksum algorithm="sha1" format="MD5SUM">
+                                 <fileset dir="${project.build.directory}">
+                                    <include name="*.zip"/>
+                                    <include name="*.gz"/>
+                                 </fileset>
+                              </checksum>
+                              <checksum algorithm="md5" format="MD5SUM">
+                                 <fileset dir="${project.build.directory}">
+                                    <include name="*.zip"/>
+                                    <include name="*.gz"/>
+                                 </fileset>
+                              </checksum>
+                           </target>
+                        </configuration>
+                     </execution>
+                  </executions>
+               </plugin>
+            </plugins>
+         </build>
+      </profile>
+   </profiles>
+
 </project>



Mime
View raw message