
<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/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.cogchar</groupId>
		<artifactId>org.cogchar.modules.main</artifactId>
		<version>1.0.6.0</version>
		<relativePath>../org.cogchar.modules.main/pom.xml</relativePath>
	</parent>		
	<artifactId>org.cogchar.lib.onto</artifactId>
	<packaging>jar</packaging>

	<name>${project.artifactId} - POJO</name>

	<dependencies>
		<dependency>
			<artifactId>ext.bundle.jena_all_264</artifactId>
			<groupId>org.appdapter</groupId>
			<version>${appdapter.version}</version>
		</dependency>
		<dependency>
			<artifactId>org.appdapter.bundle.core</artifactId>
			<groupId>org.appdapter</groupId>
			<version>${appdapter.version}</version>
		</dependency>				
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>3.8.1</version>
			<scope>test</scope>
		</dependency>		
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-simple</artifactId>
			<version>1.6.1</version>
			<!-- This is needed if we want to see messages from jena running inside the codegen plugin below - 
			how do we apply it only in that scope? 
			   At "runtime" scope here, it propagates out and must be excluded by importers
			   (unless they are "Simple" logger fans; but it doesn't let us configure by level!).  
			   -->
			<scope>test</scope>
		</dependency>
	
		
	</dependencies>
	<build>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>exec-maven-plugin</artifactId>
				<version>1.2.1</version>
				<executions>				
					<execution>
						<id>anim-motiv</id>
						<phase>generate-sources</phase>
						<goals>
							<goal>java</goal>
						</goals>
						<configuration>
							<mainClass>jena.schemagen</mainClass>
							<arguments>
								<argument>--inference</argument>
								<argument>-i</argument>
								<argument>${project.basedir}/src/main/resources/org/cogchar/onto/AnimMotivMapBlend.owl</argument>
								<argument>--package</argument>
								<argument>org.cogchar.gen.ontoname</argument>
								<argument>-o</argument>
								<argument>${project.build.directory}/generated-sources/java</argument>
								<argument>-n</argument>
								<argument>AnimMotivMapBlend</argument>
								<argument>--uppercase</argument>

							</arguments>
						</configuration>
					</execution>
					<execution>
						<id>behav-chan</id>
						<phase>generate-sources</phase>
						<goals>
							<goal>java</goal>
						</goals>
						<configuration>
							<mainClass>jena.schemagen</mainClass>
							<arguments>
								<argument>--inference</argument>
								<argument>-i</argument>
								<argument>${project.basedir}/src/main/resources/org/cogchar/onto/BehavChanAct.owl</argument>
								<argument>--package</argument>
								<argument>org.cogchar.gen.ontoname</argument>
								<argument>-o</argument>
								<argument>${project.build.directory}/generated-sources/java</argument>
								<argument>-n</argument>
								<argument>BehavChanAct</argument>
								<argument>--uppercase</argument>
							</arguments>
						</configuration>
					</execution>
					<execution>
						<id>hominoid-body</id>
						<phase>generate-sources</phase>
						<goals>
							<goal>java</goal>
						</goals>
						<configuration>
							<mainClass>jena.schemagen</mainClass>
							<arguments>
								<argument>--inference</argument>
								<argument>-i</argument>
								<argument>${project.basedir}/src/main/resources/org/cogchar/onto/HominoidBodySchema.owl</argument>
								<argument>--package</argument>
								<argument>org.cogchar.gen.ontoname</argument>
								<argument>-o</argument>
								<argument>${project.build.directory}/generated-sources/java</argument>
								<argument>-n</argument>
								<argument>HominoidBodySchema</argument>
								<argument>--uppercase</argument>

							</arguments>
						</configuration>
					</execution>					
				</executions>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>build-helper-maven-plugin</artifactId>
				<version>1.7</version>
				<executions>
					<execution>
						<id>add-source</id>
						<goals>
							<goal>add-source</goal>
						</goals>
						<configuration>
							<sources>
								<source>${project.build.directory}/generated-sources/java</source>
							</sources>
						</configuration>
					</execution>
				</executions>
			</plugin>
   			
			  
		</plugins>
		<pluginManagement>
			<plugins>
				<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
				<plugin>
					<groupId>org.eclipse.m2e</groupId>
					<artifactId>lifecycle-mapping</artifactId>
					<version>1.0.0</version>
					<configuration>
						<lifecycleMappingMetadata>
							<pluginExecutions>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>
											org.codehaus.mojo
										</groupId>
										<artifactId>
											build-helper-maven-plugin
										</artifactId>
										<versionRange>
											[1.7,)
										</versionRange>
										<goals>
											<goal>add-source</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore />
									</action>
								</pluginExecution>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>
											org.codehaus.mojo
										</groupId>
										<artifactId>
											exec-maven-plugin
										</artifactId>
										<versionRange>
											[1.2.1,)
										</versionRange>
										<goals>
											<goal>java</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore />
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>
</project>
