Skip to content

Commit 241daa5

Browse files
author
Prasanna Santhanam
committed
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 <tsp@apache.org> Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1351319186 +0530
1 parent d7227bd commit 241daa5

1 file changed

Lines changed: 86 additions & 55 deletions

File tree

‎tools/marvin/pom.xml‎

Lines changed: 86 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -9,61 +9,92 @@
99
OF ANY KIND, either express or implied. See the License for the specific
1010
language governing permissions and limitations under the License. -->
1111
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
12-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
13-
<modelVersion>4.0.0</modelVersion>
14-
<artifactId>cloud-marvin</artifactId>
15-
<name>Apache CloudStack Developer Tools: marvin</name>
16-
<packaging>pom</packaging>
17-
<parent>
18-
<groupId>org.apache.cloudstack</groupId>
19-
<artifactId>cloudstack</artifactId>
20-
<version>4.1.0-SNAPSHOT</version>
21-
<relativePath>../../pom.xml</relativePath>
22-
</parent>
12+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
13+
<modelVersion>4.0.0</modelVersion>
14+
<artifactId>cloud-marvin</artifactId>
15+
<name>Apache CloudStack Developer Tools: marvin</name>
16+
<packaging>pom</packaging>
17+
<parent>
18+
<groupId>org.apache.cloudstack</groupId>
19+
<artifactId>cloudstack</artifactId>
20+
<version>4.1.0-SNAPSHOT</version>
21+
<relativePath>../../pom.xml</relativePath>
22+
</parent>
2323

24-
<build>
25-
<defaultGoal>install</defaultGoal>
26-
<plugins>
27-
<plugin>
28-
<artifactId>maven-antrun-plugin</artifactId>
29-
<version>1.7</version>
30-
<executions>
31-
<execution>
32-
<id>generate-resource</id>
33-
<phase>generate-resources</phase>
34-
<goals>
35-
<goal>run</goal>
36-
</goals>
37-
<configuration>
38-
<target>
39-
<delete dir="marvin/cloudstackAPI"/>
40-
</target>
41-
</configuration>
42-
</execution>
43-
</executions>
44-
</plugin>
45-
<plugin>
46-
<groupId>org.codehaus.mojo</groupId>
47-
<artifactId>exec-maven-plugin</artifactId>
48-
<version>1.2.1</version>
49-
<executions>
50-
<execution>
51-
<phase>install</phase>
52-
<goals>
53-
<goal>exec</goal>
54-
</goals>
55-
</execution>
56-
</executions>
57-
<configuration>
58-
<workingDirectory>marvin</workingDirectory>
59-
<executable>python</executable>
60-
<arguments>
61-
<argument>codegenerator.py</argument>
62-
<argument>-s</argument>
63-
<argument>${basedir}/../apidoc/target/commands.xml</argument>
64-
</arguments>
65-
</configuration>
66-
</plugin>
24+
<build>
25+
<defaultGoal>install</defaultGoal>
26+
<plugins>
27+
<plugin>
28+
<artifactId>maven-antrun-plugin</artifactId>
29+
<version>1.7</version>
30+
<executions>
31+
<execution>
32+
<id>generate-resource</id>
33+
<phase>generate-resources</phase>
34+
<goals>
35+
<goal>run</goal>
36+
</goals>
37+
<configuration>
38+
<target>
39+
<delete dir="marvin/cloudstackAPI"/>
40+
</target>
41+
</configuration>
42+
</execution>
43+
</executions>
44+
</plugin>
45+
<plugin>
46+
<groupId>org.codehaus.mojo</groupId>
47+
<artifactId>exec-maven-plugin</artifactId>
48+
<version>1.2.1</version>
49+
<executions>
50+
<execution>
51+
<id>compile</id>
52+
<phase>compile</phase>
53+
<goals>
54+
<goal>exec</goal>
55+
</goals>
56+
<configuration>
57+
<workingDirectory>marvin</workingDirectory>
58+
<executable>python</executable>
59+
<arguments>
60+
<argument>codegenerator.py</argument>
61+
<argument>-s</argument>
62+
<argument>${basedir}/../apidoc/target/commands.xml</argument>
63+
</arguments>
64+
</configuration>
65+
</execution>
66+
<execution>
67+
<id>package</id>
68+
<phase>package</phase>
69+
<goals>
70+
<goal>exec</goal>
71+
</goals>
72+
<configuration>
73+
<workingDirectory>${exec.workingdir}</workingDirectory>
74+
<executable>python</executable>
75+
<arguments>
76+
<argument>setup.py</argument>
77+
<argument>sdist</argument>
78+
</arguments>
79+
</configuration>
80+
</execution>
81+
<execution>
82+
<id>deploy</id>
83+
<phase>deploy</phase>
84+
<goals>
85+
<goal>exec</goal>
86+
</goals>
87+
<configuration>
88+
<workingDirectory>dist</workingDirectory>
89+
<executable>pip</executable>
90+
<arguments>
91+
<argument>install</argument>
92+
<argument>Marvin-0.1.0.tar.gz</argument>
93+
</arguments>
94+
</configuration>
95+
</execution>
96+
</executions>
97+
</plugin>
6798
</plugins>
68-
</build>
99+
</build>
69100
</project>

0 commit comments

Comments
 (0)