svnno****@sourc*****
svnno****@sourc*****
2009年 10月 8日 (木) 16:54:36 JST
Revision: 3731 http://sourceforge.jp/projects/jiemamy/svn/view?view=rev&revision=3731 Author: daisuke_m Date: 2009-10-08 16:54:36 +0900 (Thu, 08 Oct 2009) Log Message: ----------- pomと、デモ用のシェルを整備。 Modified Paths: -------------- metis/jiemamy-tutorial/trunk/pom.xml Added Paths: ----------- metis/jiemamy-tutorial/trunk/db-run.sh metis/jiemamy-tutorial/trunk/db.sh metis/jiemamy-tutorial/trunk/dbclean.sh metis/jiemamy-tutorial/trunk/run.sh Removed Paths: ------------- metis/jiemamy-tutorial/trunk/run-jetty-server.sh Added: metis/jiemamy-tutorial/trunk/db-run.sh =================================================================== --- metis/jiemamy-tutorial/trunk/db-run.sh (rev 0) +++ metis/jiemamy-tutorial/trunk/db-run.sh 2009-10-08 07:54:36 UTC (rev 3731) @@ -0,0 +1,4 @@ +#!/bin/bash + +mvn jetty:run -PmaintenanceDb + Property changes on: metis/jiemamy-tutorial/trunk/db-run.sh ___________________________________________________________________ Added: svn:executable + * Added: svn:eol-style + native Added: metis/jiemamy-tutorial/trunk/db.sh =================================================================== --- metis/jiemamy-tutorial/trunk/db.sh (rev 0) +++ metis/jiemamy-tutorial/trunk/db.sh 2009-10-08 07:54:36 UTC (rev 3731) @@ -0,0 +1,4 @@ +#!/bin/bash + +mvn process-resouces -PmaintenanceDb + Property changes on: metis/jiemamy-tutorial/trunk/db.sh ___________________________________________________________________ Added: svn:executable + * Added: svn:eol-style + native Added: metis/jiemamy-tutorial/trunk/dbclean.sh =================================================================== --- metis/jiemamy-tutorial/trunk/dbclean.sh (rev 0) +++ metis/jiemamy-tutorial/trunk/dbclean.sh 2009-10-08 07:54:36 UTC (rev 3731) @@ -0,0 +1,4 @@ +#!/bin/bash + +mvn jiemamy:clean -PmaintenanceDb + Property changes on: metis/jiemamy-tutorial/trunk/dbclean.sh ___________________________________________________________________ Added: svn:executable + * Added: svn:eol-style + native Modified: metis/jiemamy-tutorial/trunk/pom.xml =================================================================== --- metis/jiemamy-tutorial/trunk/pom.xml 2009-10-08 02:19:06 UTC (rev 3730) +++ metis/jiemamy-tutorial/trunk/pom.xml 2009-10-08 07:54:36 UTC (rev 3731) @@ -17,11 +17,46 @@ </configuration> </plugin> <plugin> + <!-- compileフェーズにおけるコンパイラの設定 --> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.5</source> + <target>1.5</target> + <encoding>UTF-8</encoding> + </configuration> + </plugin> + <plugin> + <!-- packageフェーズで、source jarも作成する --> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <id>source-jar</id> + <phase>package</phase> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <!-- jettyにデプロイ --> + <groupId>org.mortbay.jetty</groupId> + <artifactId>maven-jetty-plugin</artifactId> + </plugin> + </plugins> + </build> + <profiles> + <profile> + <id>maintenanceDb</id> + <build> + <plugins> + <plugin> <!-- jiemamyプラグインの設定 --> <!-- cleanゴール = DB上に存在するエンティティ等を全削除する --> <!-- jiemamyゴール = データファイルからSQLを生成する --> <groupId>org.jiemamy</groupId> <artifactId>maven-jiemamy-plugin</artifactId> + <version>0.2.0</version> <configuration> <!-- jiemamy:clean用設定 --> <username>${database.username}</username> @@ -38,6 +73,14 @@ <dataSetIndex>0</dataSetIndex> </parameter> </configuration> + <executions> + <execution> + <phase>generate-resources</phase> + <goals> + <goal>jiemamy</goal> + </goals> + </execution> + </executions> <dependencies> <dependency> <groupId>org.jiemamy</groupId> @@ -67,6 +110,14 @@ <url>${database.uri}</url> <skip>${maven.test.skip}</skip> </configuration> + <executions> + <execution> + <phase>process-resources</phase> + <goals> + <goal>execute</goal> + </goals> + </execution> + </executions> <dependencies> <dependency> <groupId>postgresql</groupId> @@ -75,35 +126,10 @@ </dependency> </dependencies> </plugin> - <plugin> - <!-- compileフェーズにおけるコンパイラの設定 --> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <source>1.5</source> - <target>1.5</target> - <encoding>UTF-8</encoding> - </configuration> - </plugin> - <plugin> - <!-- packageフェーズで、source jarも作成する --> - <artifactId>maven-source-plugin</artifactId> - <executions> - <execution> - <id>source-jar</id> - <phase>package</phase> - <goals> - <goal>jar</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <!-- jettyにデプロイ --> - <groupId>org.mortbay.jetty</groupId> - <artifactId>maven-jetty-plugin</artifactId> - </plugin> - </plugins> - </build> + </plugins> + </build> + </profile> + </profiles> <pluginRepositories> <pluginRepository> <id>jiemamy</id> Deleted: metis/jiemamy-tutorial/trunk/run-jetty-server.sh =================================================================== --- metis/jiemamy-tutorial/trunk/run-jetty-server.sh 2009-10-08 02:19:06 UTC (rev 3730) +++ metis/jiemamy-tutorial/trunk/run-jetty-server.sh 2009-10-08 07:54:36 UTC (rev 3731) @@ -1,3 +0,0 @@ -#! /bin/bash - -mvn jetty:run Added: metis/jiemamy-tutorial/trunk/run.sh =================================================================== --- metis/jiemamy-tutorial/trunk/run.sh (rev 0) +++ metis/jiemamy-tutorial/trunk/run.sh 2009-10-08 07:54:36 UTC (rev 3731) @@ -0,0 +1,3 @@ +#!/bin/bash + +mvn jetty:run Property changes on: metis/jiemamy-tutorial/trunk/run.sh ___________________________________________________________________ Added: svn:executable + * Added: svn:eol-style + native