You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ts...@apache.org on 2012/10/27 08:29:41 UTC
git commit: Summary: Mavenize marvin on master
Updated Branches:
refs/heads/master d7227bdf5 -> 241daa53c
Summary: Mavenize marvin on master
Detail: Maven will now compile, install and deploy marvin using the
developer profile
$ mvn -P developer
compile - compiles the cloudstackAPI
package - packages the marvin source distributable
deploy - installs using pip (reqd python 2.7) the Marvin package in to
site-packages/
BUG-ID : CLOUDSTACK-378
Reported-by: Prasanna Santhanam <ts...@apache.org>
Signed-off-by: Prasanna Santhanam <ts...@apache.org> 1351319186 +0530
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/241daa53
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/241daa53
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/241daa53
Branch: refs/heads/master
Commit: 241daa53c60d2df57e51807e155afcc581732363
Parents: d7227bd
Author: Prasanna Santhanam <ts...@apache.org>
Authored: Sat Oct 27 11:56:25 2012 +0530
Committer: Prasanna Santhanam <ts...@apache.org>
Committed: Sat Oct 27 11:56:25 2012 +0530
----------------------------------------------------------------------
tools/marvin/pom.xml | 141 +++++++++++++++++++++++++++-----------------
1 files changed, 86 insertions(+), 55 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/241daa53/tools/marvin/pom.xml
----------------------------------------------------------------------
diff --git a/tools/marvin/pom.xml b/tools/marvin/pom.xml
index 5b5bf57..51c70cd 100644
--- a/tools/marvin/pom.xml
+++ b/tools/marvin/pom.xml
@@ -9,61 +9,92 @@
OF ANY KIND, either express or implied. See the License for the specific
language governing permissions and limitations under the License. -->
<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>
- <artifactId>cloud-marvin</artifactId>
- <name>Apache CloudStack Developer Tools: marvin</name>
- <packaging>pom</packaging>
- <parent>
- <groupId>org.apache.cloudstack</groupId>
- <artifactId>cloudstack</artifactId>
- <version>4.1.0-SNAPSHOT</version>
- <relativePath>../../pom.xml</relativePath>
- </parent>
+ 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>
+ <artifactId>cloud-marvin</artifactId>
+ <name>Apache CloudStack Developer Tools: marvin</name>
+ <packaging>pom</packaging>
+ <parent>
+ <groupId>org.apache.cloudstack</groupId>
+ <artifactId>cloudstack</artifactId>
+ <version>4.1.0-SNAPSHOT</version>
+ <relativePath>../../pom.xml</relativePath>
+ </parent>
- <build>
- <defaultGoal>install</defaultGoal>
- <plugins>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>1.7</version>
- <executions>
- <execution>
- <id>generate-resource</id>
- <phase>generate-resources</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <target>
- <delete dir="marvin/cloudstackAPI"/>
- </target>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <version>1.2.1</version>
- <executions>
- <execution>
- <phase>install</phase>
- <goals>
- <goal>exec</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <workingDirectory>marvin</workingDirectory>
- <executable>python</executable>
- <arguments>
- <argument>codegenerator.py</argument>
- <argument>-s</argument>
- <argument>${basedir}/../apidoc/target/commands.xml</argument>
- </arguments>
- </configuration>
- </plugin>
+ <build>
+ <defaultGoal>install</defaultGoal>
+ <plugins>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.7</version>
+ <executions>
+ <execution>
+ <id>generate-resource</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <target>
+ <delete dir="marvin/cloudstackAPI"/>
+ </target>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.2.1</version>
+ <executions>
+ <execution>
+ <id>compile</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <workingDirectory>marvin</workingDirectory>
+ <executable>python</executable>
+ <arguments>
+ <argument>codegenerator.py</argument>
+ <argument>-s</argument>
+ <argument>${basedir}/../apidoc/target/commands.xml</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ <execution>
+ <id>package</id>
+ <phase>package</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <workingDirectory>${exec.workingdir}</workingDirectory>
+ <executable>python</executable>
+ <arguments>
+ <argument>setup.py</argument>
+ <argument>sdist</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ <execution>
+ <id>deploy</id>
+ <phase>deploy</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <workingDirectory>dist</workingDirectory>
+ <executable>pip</executable>
+ <arguments>
+ <argument>install</argument>
+ <argument>Marvin-0.1.0.tar.gz</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
- </build>
+</build>
</project>