Skip to content

Commit

Permalink
adding runonce scripts and maven read me
Browse files Browse the repository at this point in the history
  • Loading branch information
jjgonecrypto committed Oct 31, 2011
1 parent d212bb6 commit 6ac2687
Show file tree
Hide file tree
Showing 5 changed files with 123 additions and 100 deletions.
46 changes: 30 additions & 16 deletions Maven-README.md
@@ -1,27 +1,41 @@
Maven build instructions
Maven usage
=====

Dependencies to install locally:
Installation
------

1. Swift Suspenders
__Step 1: Install Maven 3.0.3+__

mvn install:install-file -Dfile=lib/SwiftSuspenders-v2.0.0b1.swc -DartifactId=swiftsuspenders -DgroupId=org.swiftsuspenders -Dversion=2.0.0-b1 -Dpackaging=swc


2. Install AS3Commons Logging locally
[Download from here](http://maven.apache.org/download.html)

mvn install:install-file -Dfile=lib/as3commons-logging-2.7.swc -DartifactId=as3commons-logging -DgroupId=org.as3commons -Dversion=2.7 -Dpackaging=swc

3. Install FlexUnit
__Step 2: Ensure maven binaries are on your PATH (ie. you can run `mvn` from anywhere)__

Follow the installation instructions from [here](http://maven.apache.org/download.html#Installation).

__Step 3: CD to the robotlegs root (where the POM.xml lives)__

__Step 4: Install the third party dependencies into your local repository__

mvn install:install-file -Dfile=lib/flexunit-4.1.0-8-flex_4.1.0.16076.swc -DgroupId=com.adobe.flexunit -DartifactId=flexunit -Dversion=4.1.0-8 -Dpackaging=swc -Dclassifier=flex
* In OS X

4. Install hamcrest-as3
bash -x maven-runonce.sh

mvn install:install-file -Dfile=lib/hamcrest-as3-flex-1.1.3.swc -DgroupId=org.hamcrest -DartifactId=hamcrest-as3 -Dversion=1.1.3 -Dpackaging=swc -Dclassifier=flex
* In Windows

5. Install mockolate
maven-runonce.bat

mvn install:install-file -Dfile=lib/mockolate-0.12.1-flex.swc -Dversion=0.12.1 -Dclassifier=flex -Dpackaging=swc -DgroupId=mockolate -DartifactId=mockolate

>Note: we do this because unlike Ant, Maven requires all dependencies live within a repository somewhere. Because none of these dependencies are hosted externally on a remote repository, we need to install them locally into the repository. Going forward, the hope is that many of these dependencies will live in Maven Central, negating the need to install them locally. JM.

To build
-----
In order to build Robotlegs from source, run the following command in the Robotlegs root folder.

mvn clean install -s settings.xml


Alternative to supplying settings
-----
If you would rather not supply `-s settings.xml` for every build, you can add the repository information from settings.xml into your local repository. Alternatively, you can simply copy the robotlegs settings.xml to `~/.m2/settings.xml` where ~ is your user directory (`\Users\username` in Win7+)

> __Why do we need the settings file?__ While Flexmojos lives within Maven Central, its dependencies (such as the Flex compiler) and flash project dependencies (such as framework SDKs) do NOT. They live within the flexgroup branch off (sonatype)[http://repository.sonatype.org/content/groups/flexgroup/].
5 changes: 5 additions & 0 deletions maven-runonce.bat
@@ -0,0 +1,5 @@
mvn -s settings.xml install:install-file -Dfile=lib/SwiftSuspenders-v2.0.0b1.swc -DartifactId=swiftsuspenders -DgroupId=org.swiftsuspenders -Dversion=2.0.0-b1 -Dpackaging=swc
mvn -s settings.xml install:install-file -Dfile=lib/as3commons-logging-2.7.swc -DartifactId=as3commons-logging -DgroupId=org.as3commons -Dversion=2.7 -Dpackaging=swc
mvn -s settings.xml install:install-file -Dfile=lib/flexunit-4.1.0-8-flex_4.1.0.16076.swc -DgroupId=com.adobe.flexunit -DartifactId=flexunit -Dversion=4.1.0-8 -Dpackaging=swc -Dclassifier=flex
mvn -s settings.xml install:install-file -Dfile=lib/hamcrest-as3-flex-1.1.3.swc -DgroupId=org.hamcrest -DartifactId=hamcrest-as3 -Dversion=1.1.3 -Dpackaging=swc -Dclassifier=flex
mvn -s settings.xml install:install-file -Dfile=lib/mockolate-0.12.1-flex.swc -Dversion=0.12.1 -Dclassifier=flex -Dpackaging=swc -DgroupId=mockolate -DartifactId=mockolate
6 changes: 6 additions & 0 deletions maven-runonce.sh
@@ -0,0 +1,6 @@
#!/bin/bash
mvn -s settings.xml install:install-file -Dfile=lib/SwiftSuspenders-v2.0.0b1.swc -DartifactId=swiftsuspenders -DgroupId=org.swiftsuspenders -Dversion=2.0.0-b1 -Dpackaging=swc
mvn -s settings.xml install:install-file -Dfile=lib/as3commons-logging-2.7.swc -DartifactId=as3commons-logging -DgroupId=org.as3commons -Dversion=2.7 -Dpackaging=swc
mvn -s settings.xml install:install-file -Dfile=lib/flexunit-4.1.0-8-flex_4.1.0.16076.swc -DgroupId=com.adobe.flexunit -DartifactId=flexunit -Dversion=4.1.0-8 -Dpackaging=swc -Dclassifier=flex
mvn -s settings.xml install:install-file -Dfile=lib/hamcrest-as3-flex-1.1.3.swc -DgroupId=org.hamcrest -DartifactId=hamcrest-as3 -Dversion=1.1.3 -Dpackaging=swc -Dclassifier=flex
mvn -s settings.xml install:install-file -Dfile=lib/mockolate-0.12.1-flex.swc -Dversion=0.12.1 -Dclassifier=flex -Dpackaging=swc -DgroupId=mockolate -DartifactId=mockolate
137 changes: 53 additions & 84 deletions pom.xml
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project>
<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">
<!--
JIRA Ticket for Sonatype to allow Robotlegs to be hosted/deployed: https://issues.sonatype.org/browse/OSSRH-288
Expand All @@ -9,73 +11,70 @@
swiftsuspenders project isn't available in a maven repository at this time.
-->

<modelVersion>4.0.0</modelVersion>
<modelVersion>4.0.0</modelVersion>
<groupId>org.robotlegs</groupId>
<artifactId>robotlegs-framework</artifactId>

<version>2.0.0-b1</version>

<packaging>swc</packaging>

<name>Robotlegs Framework</name>
<description>
Robotlegs is a pure AS3 micro-architecture (framework) with a light footprint and limited scope. Simply put, Robotlegs is there to help you wire your objects together. It provides the glue that your application needs to easily function in a decoupled way. Through the use of automated metadata based dependency injection Robotlegs removes boilerplate code in an application. By promoting loose coupling and avoiding the use of Singletons and statics in the framework Robotlegs can help you write code that is highly testable.</description>
<url>http://www.robotlegs.org</url>
<licenses>
<license>
<name>Robotlegs Custom License</name>
<url>http://github.com/robotlegs/robotlegs-framework/blob/master/LICENSE</url>
<distribution>repo</distribution>
</license>
</licenses>
Robotlegs is a pure AS3 micro-architecture (framework) with a light footprint and limited scope. Simply put, Robotlegs is there to help you wire your objects together. It provides the glue that your application needs to easily function in a decoupled way. Through the use of automated metadata based dependency injection Robotlegs removes boilerplate code in an application. By promoting loose coupling and avoiding the use of Singletons and statics in the framework Robotlegs can help you write code that is highly testable.
</description>
<url>http://www.robotlegs.org</url>
<licenses>
<license>
<name>Robotlegs Custom License</name>
<url>http://github.com/robotlegs/robotlegs-framework/blob/master/LICENSE</url>
<distribution>repo</distribution>
</license>
</licenses>

<developers>
<developer>
<id>darscan</id>
<name>Shaun Smith</name>
<email></email>
<roles>
<role>Founder</role>
</roles>
</developer>
<developer>
<id>joelhooks</id>
<name>Joel Hooks</name>
<email>joelhooks@gmail.com</email>
<url>http://joelhooks.com/</url>
</developer>
</developers>
<contributors>
<contributor>
<name>Craig Wickesser</name>
<email>codecraig@gmail.com</email>
<url>http://digitalchickenscratch.com/</url>
</contributor>
<developers>
<developer>
<id>darscan</id>
<name>Shaun Smith</name>
<email></email>
<roles>
<role>Founder</role>
</roles>
</developer>
<developer>
<id>joelhooks</id>
<name>Joel Hooks</name>
<email>joelhooks@gmail.com</email>
<url>http://joelhooks.com/</url>
</developer>
<developer>
<id>stray</id>
<name>Stray</name>
<url>http://www.xxcoder.net/</url>
</developer>
</developers>
<contributors>
<contributor>
<name>Craig Wickesser</name>
<email>codecraig@gmail.com</email>
<url>http://digitalchickenscratch.com/</url>
<roles>
<role>Maven contributor</role>
</roles>
</contributor>
<contributor>
<name>Justin J. Moses</name>
<url>http://about.me/justinj</url>
<roles>
<role>Maven contributor</role>
</roles>
</contributor>
</contributors>

<scm>
<url>http://github.com/robotlegs/robotlegs-framework/tree/version2</url>
<connection>git://github.com/robotlegs/robotlegs-framework.git</connection>
</scm>

<repositories>
<repository>
<id>Sonatype Flex Group</id>
<url>http://repository.sonatype.org/content/groups/flexgroup/</url>
</repository>
</repositories>

<pluginRepositories>
<pluginRepository>
<id>Sonatype Flex Group</id>
<url>http://repository.sonatype.org/content/groups/flexgroup/</url>
</pluginRepository>
</pluginRepositories>
</contributors>

<scm>
<url>http://github.com/robotlegs/robotlegs-framework/tree/version2</url>
<connection>git://github.com/robotlegs/robotlegs-framework.git</connection>
</scm>

<properties>
<maven.version>3.0.3</maven.version>
Expand Down Expand Up @@ -148,9 +147,6 @@
<includeTestFiles>
<includeTestFile>suites/EntireTestSuite.as</includeTestFile>
</includeTestFiles>
<includeSources>
<includeSource>${project.build.sourceDirectory}</includeSource>
</includeSources>
</configuration>
<dependencies>
<dependency>
Expand All @@ -161,37 +157,10 @@
</dependency>
</dependencies>
</plugin>
<!--
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0-alpha-1</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>read-project-properties</goal>
</goals>
<configuration>
<files>
<file>${basedir}/build.properties</file>
</files>
</configuration>
</execution>
</executions>
</plugin>
-->
</plugins>
</build>

<dependencies>
<!--
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0-alpha-1</version>
</dependency>
-->
<dependencies>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>flex-framework</artifactId>
Expand Down
29 changes: 29 additions & 0 deletions settings.xml
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">

<profiles>
<profile>
<id>flexgroup-on-sonatype</id>
<repositories>
<repository>
<id>Sonatype Flex Group</id>
<url>http://repository.sonatype.org/content/groups/flexgroup/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>Sonatype Flex Group</id>
<url>http://repository.sonatype.org/content/groups/flexgroup/</url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>

<!-- NOTE: this will deactivate any "activeByDefault" profiles in the project POM -->
<activeProfiles>
<activeProfile>flexgroup-on-sonatype</activeProfile>
</activeProfiles>
</settings>

0 comments on commit 6ac2687

Please sign in to comment.