Added a maven.xml to allow package, install and deploy of maven artifacts.
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/4177253a Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/4177253a Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/4177253a Branch: refs/heads/master Commit: 4177253a9bd5076f3ef56c2546c574be5fcb3205 Parents: 249e685 Author: Christofer Dutz <christofer.d...@codecentric.de> Authored: Fri Aug 29 20:46:44 2014 +0200 Committer: Christofer Dutz <christofer.d...@codecentric.de> Committed: Fri Aug 29 20:46:44 2014 +0200 ---------------------------------------------------------------------- Squiggly/main/maven.xml | 247 +++++++++++++++++++ .../main/maven/apache-flex-spelling-engine.pom | 18 ++ .../maven/apache-flex-spelling-framework.pom | 33 +++ .../apache-flex-spelling-linguistic-utils.pom | 18 ++ .../main/maven/apache-flex-spelling-ui-api.pom | 27 ++ .../main/maven/apache-flex-spelling-ui-ex.pom | 27 ++ .../main/maven/apache-flex-spelling-ui-tlf.pom | 27 ++ Squiggly/main/maven/apache-flex-spelling-ui.pom | 27 ++ Squiggly/main/maven/squiggly.pom | 36 +++ 9 files changed, 460 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/4177253a/Squiggly/main/maven.xml ---------------------------------------------------------------------- diff --git a/Squiggly/main/maven.xml b/Squiggly/main/maven.xml new file mode 100644 index 0000000..ab796de --- /dev/null +++ b/Squiggly/main/maven.xml @@ -0,0 +1,247 @@ +<?xml version="1.0" ?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> +<project default="install"> + + <property name="version" value="1.0"/> + + <!-- Set type to RELEASE in order to deploy to the release repo --> + <property name="type" value="SNAPSHOT"/> + + <condition property="maven.version" + value="${version}" + else="${version}-SNAPSHOT"> + <equals arg1="${type}" arg2="RELEASE"/> + </condition> + + <condition property="maven.repositoryId" + value="apache.releases.https" + else="apache.snapshots.https"> + <equals arg1="${type}" arg2="RELEASE"/> + </condition> + + <condition property="maven.repositoryUrl" + value="https://repository.apache.org/service/local/staging/deploy/maven2" + else="https://repository.apache.org/content/repositories/snapshots"> + <equals arg1="${type}" arg2="RELEASE"/> + </condition> + + <import file="build.xml"/> + + <target name="package" depends="test"> + <echo message="Preparing Maven artifacts vor version ${maven.version} ..."/> + + <delete dir="generated/maven"/> + <mkdir dir="generated/maven"/> + + <copy file="maven/squiggly.pom" tofile="generated/maven/squiggly.pom"> + <filterchain> + <tokenfilter> + <replacestring from="@VERSION@" to="${maven.version}"/> + </tokenfilter> + </filterchain> + </copy> + + <antcall target="-pack-maven-artifact"> + <param name="moduleName" value="LinguisticUtils"/> + <param name="artifactName" value="apache-flex-spelling-linguistic-utils"/> + </antcall> + + <antcall target="-pack-maven-artifact"> + <param name="moduleName" value="SpellingEngine"/> + <param name="artifactName" value="apache-flex-spelling-engine"/> + </antcall> + + <antcall target="-pack-maven-artifact"> + <param name="moduleName" value="SpellingFramework"/> + <param name="artifactName" value="apache-flex-spelling-framework"/> + </antcall> + + <antcall target="-pack-maven-artifact"> + <param name="moduleName" value="SpellingUI"/> + <param name="artifactName" value="apache-flex-spelling-ui"/> + </antcall> + + <antcall target="-pack-maven-artifact"> + <param name="moduleName" value="SpellingUIAPI"/> + <param name="artifactName" value="apache-flex-spelling-ui-api"/> + </antcall> + + <antcall target="-pack-maven-artifact"> + <param name="moduleName" value="SpellingUIEx"/> + <param name="artifactName" value="apache-flex-spelling-ui-ex"/> + </antcall> + + <antcall target="-pack-maven-artifact"> + <param name="moduleName" value="SpellingUITlF"/> + <param name="artifactName" value="apache-flex-spelling-ui-tlf"/> + </antcall> + </target> + + <target name="install" depends="package, -setup-aether-antlib"> + <echo message="Installing Maven artifacts ..."/> + + <antcall target="-install-maven-artifact-pom"> + <param name="artifactName" value="squiggly"/> + </antcall> + + <antcall target="-install-maven-artifact-file"> + <param name="artifactName" value="apache-flex-spelling-linguistic-utils"/> + </antcall> + + <antcall target="-install-maven-artifact-file"> + <param name="artifactName" value="apache-flex-spelling-engine"/> + </antcall> + + <antcall target="-install-maven-artifact-file"> + <param name="artifactName" value="apache-flex-spelling-framework"/> + </antcall> + + <antcall target="-install-maven-artifact-file"> + <param name="artifactName" value="apache-flex-spelling-ui"/> + </antcall> + + <antcall target="-install-maven-artifact-file"> + <param name="artifactName" value="apache-flex-spelling-ui-api"/> + </antcall> + + <antcall target="-install-maven-artifact-file"> + <param name="artifactName" value="apache-flex-spelling-ui-ex"/> + </antcall> + + <antcall target="-install-maven-artifact-file"> + <param name="artifactName" value="apache-flex-spelling-ui-tlf"/> + </antcall> + </target> + + <target name="deploy" depends="install"> + <echo message="Deploying Maven artifacts to repository with id ${maven.repositoryId} and url ${maven.repositoryUrl} ..."/> + + <antcall target="-deploy-maven-artifact-pom"> + <param name="artifactName" value="squiggly"/> + </antcall> + + <antcall target="-deploy-maven-artifact-file"> + <param name="artifactName" value="apache-flex-spelling-linguistic-utils"/> + </antcall> + + <antcall target="-deploy-maven-artifact-file"> + <param name="artifactName" value="apache-flex-spelling-engine"/> + </antcall> + + <antcall target="-deploy-maven-artifact-file"> + <param name="artifactName" value="apache-flex-spelling-framework"/> + </antcall> + + <antcall target="-deploy-maven-artifact-file"> + <param name="artifactName" value="apache-flex-spelling-ui"/> + </antcall> + + <antcall target="-deploy-maven-artifact-file"> + <param name="artifactName" value="apache-flex-spelling-ui-api"/> + </antcall> + + <antcall target="-deploy-maven-artifact-file"> + <param name="artifactName" value="apache-flex-spelling-ui-ex"/> + </antcall> + + <antcall target="-deploy-maven-artifact-file"> + <param name="artifactName" value="apache-flex-spelling-ui-tlf"/> + </antcall> + </target> + + <!-- + + Internal helper targets. + + --> + + <target name="-setup-aether-antlib"> + <mkdir dir="utils"/> + <get src="http://search.maven.org/remotecontent?filepath=org/eclipse/aether/aether-ant-tasks/1.0.0.v20140518/aether-ant-tasks-1.0.0.v20140518-uber.jar" + dest="utils/aether-ant-tasks-uber.jar" verbose="true" skipexisting="true"/> + <fail message="Checksum mismatch for 'antlib/aether-ant-tasks-uber.jar'. Please delete it and rerun ant to redownload."> + <condition> + <not> + <checksum file="utils/aether-ant-tasks-uber.jar" algorithm="SHA" + property="95dadd03392a75564904da45108cf048abe6e5bb" verifyproperty="checksum.matches"/> + </not> + </condition> + </fail> + <!-- Setup the maven-ant-tasks. --> + <path id="aether-ant-tasks.classpath" path="utils/aether-ant-tasks-uber.jar" /> + <typedef resource="org/eclipse/aether/ant/antlib.xml" + uri="antlib:org.eclipse.aether.ant" + classpathref="aether-ant-tasks.classpath" /> + </target> + + <target name="-pack-maven-artifact"> + <echo message="Packing module ${moduleName} as Maven artifact ${artifactName}"/> + <copy file="main/maven/${artifactName}.pom" tofile="generated/maven/${artifactName}.pom"> + <filterchain> + <tokenfilter> + <replacestring from="@VERSION@" to="${maven.version}"/> + </tokenfilter> + </filterchain> + </copy> + <copy file="libs/ApacheFlex${moduleName}.swc" tofile="generated/maven/${artifactName}.swc"/> + <zip destfile="generated/maven/${artifactName}-sources.jar"> + <fileset dir="${moduleName}/src"/> + </zip> + </target> + + <target name="-install-maven-artifact-pom" depends="-setup-aether-antlib" + xmlns:artifact="antlib:org.eclipse.aether.ant"> + <echo message="Installing Pom: ${artifactName}"/> + <artifact:install> + <artifact:pom file="generated/maven/${artifactName}.pom"/> + </artifact:install> + </target> + + <target name="-install-maven-artifact-file" depends="-setup-aether-antlib" + xmlns:artifact="antlib:org.eclipse.aether.ant"> + <echo message="Installing File: ${artifactName}"/> + <artifact:install> + <artifact:pom file="generated/maven/${artifactName}.pom"/> + <artifact:artifact file="generated/maven/${artifactName}.swc"/> + <artifact:artifact file="generated/maven/${artifactName}-sources.jar" classifier="sources"/> + </artifact:install> + </target> + + <target name="-deploy-maven-artifact-pom" depends="-setup-aether-antlib" + xmlns:artifact="antlib:org.eclipse.aether.ant"> + <echo message="Deploying Pom: ${artifactName} to ${maven.repositoryUrl}"/> + <artifact:deploy> + <artifact:remoterepo id="${maven.repositoryId}" url="${maven.repositoryUrl}"/> + <artifact:pom file="generated/maven/${artifactName}.pom"/> + </artifact:deploy> + </target> + + <target name="-deploy-maven-artifact-file" depends="-setup-aether-antlib" + xmlns:artifact="antlib:org.eclipse.aether.ant"> + <echo message="Deploying File: ${artifactName} to ${maven.repositoryUrl}"/> + <artifact:deploy> + <artifact:remoterepo id="${maven.repositoryId}" url="${maven.repositoryUrl}"/> + <artifact:pom file="generated/maven/${artifactName}.pom"/> + <artifact:artifact file="generated/maven/${artifactName}.swc"/> + <artifact:artifact file="generated/maven/${artifactName}-sources.jar" classifier="sources"/> + </artifact:deploy> + </target> + +</project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/4177253a/Squiggly/main/maven/apache-flex-spelling-engine.pom ---------------------------------------------------------------------- diff --git a/Squiggly/main/maven/apache-flex-spelling-engine.pom b/Squiggly/main/maven/apache-flex-spelling-engine.pom new file mode 100644 index 0000000..506da1f --- /dev/null +++ b/Squiggly/main/maven/apache-flex-spelling-engine.pom @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.flex</groupId> + <artifactId>squiggly</artifactId> + <version>@VERSION@</version> + </parent> + + <groupId>org.apache.flex.squiggly</groupId> + <artifactId>apache-flex-spelling-engine</artifactId> + <version>@VERSION@</version> + <packaging>swc</packaging> + +</project> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/4177253a/Squiggly/main/maven/apache-flex-spelling-framework.pom ---------------------------------------------------------------------- diff --git a/Squiggly/main/maven/apache-flex-spelling-framework.pom b/Squiggly/main/maven/apache-flex-spelling-framework.pom new file mode 100644 index 0000000..634148b --- /dev/null +++ b/Squiggly/main/maven/apache-flex-spelling-framework.pom @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.flex</groupId> + <artifactId>squiggly</artifactId> + <version>@VERSION@</version> + </parent> + + <groupId>org.apache.flex.squiggly</groupId> + <artifactId>apache-flex-spelling-framework</artifactId> + <version>@VERSION@</version> + <packaging>swc</packaging> + + <dependencies> + <dependency> + <groupId>org.apache.flex.squiggly</groupId> + <artifactId>apache-flex-linguistic-utils</artifactId> + <version>@VERSION@</version> + <type>swc</type> + </dependency> + <dependency> + <groupId>org.apache.flex.squiggly</groupId> + <artifactId>apache-flex-spelling-engine</artifactId> + <version>@VERSION@</version> + <type>swc</type> + </dependency> + </dependencies> + +</project> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/4177253a/Squiggly/main/maven/apache-flex-spelling-linguistic-utils.pom ---------------------------------------------------------------------- diff --git a/Squiggly/main/maven/apache-flex-spelling-linguistic-utils.pom b/Squiggly/main/maven/apache-flex-spelling-linguistic-utils.pom new file mode 100644 index 0000000..c296ec2 --- /dev/null +++ b/Squiggly/main/maven/apache-flex-spelling-linguistic-utils.pom @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.flex</groupId> + <artifactId>squiggly</artifactId> + <version>@VERSION@</version> + </parent> + + <groupId>org.apache.flex.squiggly</groupId> + <artifactId>apache-flex-spelling-linguistic-utils</artifactId> + <version>@VERSION@</version> + <packaging>swc</packaging> + +</project> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/4177253a/Squiggly/main/maven/apache-flex-spelling-ui-api.pom ---------------------------------------------------------------------- diff --git a/Squiggly/main/maven/apache-flex-spelling-ui-api.pom b/Squiggly/main/maven/apache-flex-spelling-ui-api.pom new file mode 100644 index 0000000..35e339e --- /dev/null +++ b/Squiggly/main/maven/apache-flex-spelling-ui-api.pom @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.flex</groupId> + <artifactId>squiggly</artifactId> + <version>@VERSION@</version> + </parent> + + <groupId>org.apache.flex.squiggly</groupId> + <artifactId>apache-flex-spelling-ui-api</artifactId> + <version>@VERSION@</version> + <packaging>swc</packaging> + + <dependencies> + <dependency> + <groupId>org.apache.flex.squiggly</groupId> + <artifactId>apache-flex-spelling-framework</artifactId> + <version>@VERSION@</version> + <type>swc</type> + </dependency> + </dependencies> + +</project> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/4177253a/Squiggly/main/maven/apache-flex-spelling-ui-ex.pom ---------------------------------------------------------------------- diff --git a/Squiggly/main/maven/apache-flex-spelling-ui-ex.pom b/Squiggly/main/maven/apache-flex-spelling-ui-ex.pom new file mode 100644 index 0000000..aea1b88 --- /dev/null +++ b/Squiggly/main/maven/apache-flex-spelling-ui-ex.pom @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.flex</groupId> + <artifactId>squiggly</artifactId> + <version>@VERSION@</version> + </parent> + + <groupId>org.apache.flex.squiggly</groupId> + <artifactId>apache-flex-spelling-ui-ex</artifactId> + <version>@VERSION@</version> + <packaging>swc</packaging> + + <dependencies> + <dependency> + <groupId>org.apache.flex.squiggly</groupId> + <artifactId>apache-flex-spelling-ui</artifactId> + <version>@VERSION@</version> + <type>swc</type> + </dependency> + </dependencies> + +</project> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/4177253a/Squiggly/main/maven/apache-flex-spelling-ui-tlf.pom ---------------------------------------------------------------------- diff --git a/Squiggly/main/maven/apache-flex-spelling-ui-tlf.pom b/Squiggly/main/maven/apache-flex-spelling-ui-tlf.pom new file mode 100644 index 0000000..dcee8e2 --- /dev/null +++ b/Squiggly/main/maven/apache-flex-spelling-ui-tlf.pom @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.flex</groupId> + <artifactId>squiggly</artifactId> + <version>@VERSION@</version> + </parent> + + <groupId>org.apache.flex.squiggly</groupId> + <artifactId>apache-flex-spelling-ui-tlf</artifactId> + <version>@VERSION@</version> + <packaging>swc</packaging> + + <dependencies> + <dependency> + <groupId>org.apache.flex.squiggly</groupId> + <artifactId>apache-flex-spelling-ui</artifactId> + <version>@VERSION@</version> + <type>swc</type> + </dependency> + </dependencies> + +</project> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/4177253a/Squiggly/main/maven/apache-flex-spelling-ui.pom ---------------------------------------------------------------------- diff --git a/Squiggly/main/maven/apache-flex-spelling-ui.pom b/Squiggly/main/maven/apache-flex-spelling-ui.pom new file mode 100644 index 0000000..bbf7c7a --- /dev/null +++ b/Squiggly/main/maven/apache-flex-spelling-ui.pom @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.flex</groupId> + <artifactId>squiggly</artifactId> + <version>@VERSION@</version> + </parent> + + <groupId>org.apache.flex.squiggly</groupId> + <artifactId>apache-flex-spelling-ui</artifactId> + <version>@VERSION@</version> + <packaging>swc</packaging> + + <dependencies> + <dependency> + <groupId>org.apache.flex.squiggly</groupId> + <artifactId>apache-flex-spelling-framework</artifactId> + <version>@VERSION@</version> + <type>swc</type> + </dependency> + </dependencies> + +</project> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/4177253a/Squiggly/main/maven/squiggly.pom ---------------------------------------------------------------------- diff --git a/Squiggly/main/maven/squiggly.pom b/Squiggly/main/maven/squiggly.pom new file mode 100644 index 0000000..38abc9d --- /dev/null +++ b/Squiggly/main/maven/squiggly.pom @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache</groupId> + <artifactId>apache</artifactId> + <version>14</version> + </parent> + + <groupId>org.apache.flex</groupId> + <artifactId>squiggly</artifactId> + <version>@VERSION@</version> + <packaging>pom</packaging> + + <name>Apache Flex Squiggly</name> + <description>The Apache Flex Squiggly is a ActionScript spell checking library.</description> + + <mailingLists> + <mailingList> + <name>Apache Flex User List</name> + <subscribe>users-subscr...@flex.apache.org</subscribe> + <unsubscribe>users-unsubscr...@flex.apache.org</unsubscribe> + <post>us...@flex.apache.org</post> + <archive>http://mail-archives.apache.org/mod_mbox/flex-users/</archive> + </mailingList> + </mailingLists> + + <scm> + <connection>scm:svn:https://git-wip-us.apache.org/repos/asf/flex-utilities.git</connection> + <developerConnection>scm:svn:https://git-wip-us.apache.org/repos/asf/flex-utilities.git</developerConnection> + <url>https://git-wip-us.apache.org/repos/asf/flex-utilities.git</url> + </scm> + +</project>