+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>standardbuild</id>
+ <activation>
+ <file>
+ <exists>src</exists>
+ </file>
+ </activation>
+ <build>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <excludes>
+ <exclude>extApps/*.*</exclude>
+ <exclude>${module.ajsc.namespace.name}/**</exclude>
+ </excludes>
+ </resource>
+ <resource>
+ <directory>src/main/ajsc/\${namespace}_${namespaceVersion}/\${namespace}/\${namespaceVersion}</directory>
+ <excludes>
+ <exclude>**/*.route</exclude>
+ <exclude>**/*.props</exclude>
+ <exclude>**/*.xslt</exclude>
+ <exclude>**/*.vm</exclude>
+ <exclude>**/*.jar</exclude>
+ <exclude>**/*.xml</exclude>
+ </excludes>
+ </resource>
+ </resources>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>3.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.groovy</groupId>
+ <artifactId>groovy-eclipse-compiler</artifactId>
+ <version>2.8.0-01</version>
+ <extensions>true</extensions>
+ </plugin>
+
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.2.1</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <executable>bash</executable>
+ <arguments>
+ <argument>runServer.sh</argument>
+ </arguments>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>1.9</version>
+ <executions>
+ <execution>
+ <id>add-source-groovy-ajsc-arch-parent</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>add-source</goal>
+ </goals>
+ <configuration>
+ <sources>
+ <source>src/main/groovy</source>
+ </sources>
+ </configuration>
+ </execution>
+ <execution>
+ <id>add-test-source-groovy-ajsc-arch-parent</id>
+ <phase>generate-test-sources</phase>
+ <goals>
+ <goal>add-test-source</goal>
+ </goals>
+ <configuration>
+ <sources>
+ <source>src/test/groovy</source>
+ </sources>
+ </configuration>
+ </execution>
+ <execution>
+ <id>regex-properties-ajsc-arch-parent</id>
+ <phase>initialize</phase>
+ <goals>
+ <goal>regex-properties</goal>
+ </goals>
+ <configuration>
+ <regexPropertySettings>
+ <regexPropertySetting>
+ <name>replaceWinFilePath</name>
+ <value>${runAjscHome}</value>
+ <regex>\\</regex>
+ <replacement>/</replacement>
+ <failIfNoMatch>false</failIfNoMatch>
+ </regexPropertySetting>
+ <regexPropertySetting>
+ <name>replaceWinBasedirPath</name>
+ <value>${basedir}</value>
+ <regex>\\</regex>
+ <replacement>/</replacement>
+ <failIfNoMatch>false</failIfNoMatch>
+ </regexPropertySetting>
+ </regexPropertySettings>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>properties-maven-plugin</artifactId>
+ <version>1.0-alpha-2</version>
+ <executions>
+ <execution>
+ <id>write-project-properties-ajsc-arch-parent</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>write-project-properties</goal>
+ </goals>
+ <configuration>
+ <outputFile>
+ ${project.build.outputDirectory}/build.properties
+ </outputFile>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.4</version>
+ <executions>
+ <execution>
+ <id>make-assembly-ajsc-arch-parent</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <finalName>${project.artifactId}</finalName>
+ <descriptors>
+ <descriptor>src/main/assemble/ajsc_runtime_assembly.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.groovy.maven</groupId>
+ <artifactId>gmaven-plugin</artifactId>
+ <version>1.0</version>
+ <executions>
+ <execution>
+ <id>gmaven-ajsc-arch-parent</id>
+ <phase>package</phase>
+ <goals>
+ <goal>execute</goal>
+ </goals>
+ <configuration>
+ <sourcepath>src/main/groovy</sourcepath>
+ <source>
+ import ajsc.AssemblyService;
+ ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
+ </source>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.7</version>
+ <executions>
+ <execution>
+ <id>prep_service_runtime-ajsc-arch-parent</id>
+ <phase>generate-resources</phase>
+ <configuration>
+ <target name="prep_service_runtime">
+ <echo message="ENTERING 'copy_services_template' ant tasks" />
+ <!-- <filter token="basedir" value="${basedir}" /> -->
+ <!-- delete any prior stating stuff before package phase -->
+ <delete dir="target/versioned-ajsc" includes="**/*" />
+ <delete dir="target/versioned-runtime" includes="**/*" />
+ <delete dir="target/CDP" includes="**/*" />
+
+ <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__
+ is replaced by module.ajsc.namespace.name) -->
+ <copy todir="target/versioned-ajsc">
+ <fileset dir="src/main/ajsc" includes="**/*" />
+ </copy>
+
+ <!-- Copying the CDP, bundleconfig, and StaticContent to the target
+ directory for future use by replacer plugin -->
+ <copy todir="target/CDP" failonerror="false">
+ <fileset dir="CDP" includes="**/*.sh" />
+ </copy>
+ <copy flatten="true" file="CDP/SampleBlueprint.xml"
+ failonerror="false"
+ tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
+ <copy todir="target/staticContent" failonerror="false">
+ <fileset dir="staticContent" includes="**/*" />
+ </copy>
+ <copy todir="target/bundleconfig" failonerror="false">
+ <!-- filtering="true"> -->
+ <fileset dir="bundleconfig" />
+ </copy>
+
+ <echo message="EXITING 'copy_services_template' ant tasks" />
+ <echo message="ENTERING 'copy_runtime_template' ant tasks" />
+ <copy todir="target/versioned-runtime">
+ <fileset dir="src/main/runtime" includes="**/*" />
+ </copy>
+ <delete
+ file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
+ <copy flatten="true"
+ file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
+ tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
+ <delete
+ file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
+ <copy flatten="true"
+ file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
+ tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
+ <delete
+ file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
+ <copy flatten="true"
+ file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
+ tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
+ <delete
+ file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
+ <copy flatten="true"
+ file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
+ tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
+ <echo message="EXITING 'copy_runtime_template' ant tasks" />
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>clrf</id>
+ <phase>package</phase>
+ <configuration>
+ <tasks>
+ <fixcrlf
+ srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
+ includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
+ <phase>package</phase>
+ <configuration>
+ <target name="prep_home_directory_for_swm_pkgcreate">
+ <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>