[CUBBY-170] Archetypeで作成した雛形にMavenからWarのビルド時にenv.txtを置き換えるMaven2設定を追加 Created: 2008-08-24  Updated: 2008-08-27  Resolved: 2008-08-26

Status: Closed
Project: Cubby
Component/s: Archetype
Affects Version/s: None
Fix Version/s: 1.1.0

Type: Task Priority: Major
Reporter: agata Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None


 Description   

HotDeployのまま本番リリースするミスを防止したいので。



 Comments   
Comment by agata [ 2008-08-27 ]

プロファイルで対応することにしました。

詳細は以下

http://cubby.seasar.org/setup.html#Maven2_によるプロジェクトの雛形作成

Comment by agata [ 2008-08-26 ]

antはやめて、profileで切り替える方式にしました。

  <profiles>
    <profile>
      <id>release</id>
      <build>
        <resources>
          <resource>
            <directory>src/release/resources</directory>
          </resource>
          <resource>
            <directory>src/main/resources</directory>
          </resource>
        </resources>
      </build>
    </profile>
  </profiles>
Comment by agata [ 2008-08-26 ]

以下の処理を追加。

      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <phase>process-resources</phase>
            <configuration>
              <tasks>
	              <delete file="${project.build.outputDirectory}/env.txt"/>
              </tasks>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
Generated at Fri Apr 26 19:08:50 JST 2024 using Jira 9.15.0#9150000-sha1:9ead8528714127d8cfabf2446010d7e62c0a195c.