You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jv...@apache.org on 2005/10/05 21:04:49 UTC

svn commit: r295085 - in /maven/components/trunk/maven-site/src/site/apt/guides: getting-started/ getting-started/plugins/ introduction/ mini/

Author: jvanzyl
Date: Wed Oct  5 12:04:41 2005
New Revision: 295085

URL: http://svn.apache.org/viewcvs?rev=295085&view=rev
Log:
more reorg

Added:
    maven/components/trunk/maven-site/src/site/apt/guides/getting-started/using-plugins.apt
      - copied unchanged from r295034, maven/components/trunk/maven-site/src/site/apt/guides/getting-started/plugins/using-plugins.apt
    maven/components/trunk/maven-site/src/site/apt/guides/introduction/
    maven/components/trunk/maven-site/src/site/apt/guides/introduction/introduction-to-archetypes.apt
      - copied unchanged from r295034, maven/components/trunk/maven-site/src/site/apt/guides/getting-started/introduction-to-archetypes.apt
    maven/components/trunk/maven-site/src/site/apt/guides/introduction/introduction-to-dependency-management.apt
      - copied unchanged from r295034, maven/components/trunk/maven-site/src/site/apt/guides/getting-started/introduction-to-dependency-management.apt
    maven/components/trunk/maven-site/src/site/apt/guides/introduction/introduction-to-plugin-prefix-mapping.apt
      - copied unchanged from r295084, maven/components/trunk/maven-site/src/site/apt/guides/getting-started/introduction-to-plugin-prefix-mapping.apt
    maven/components/trunk/maven-site/src/site/apt/guides/introduction/introduction-to-plugin-registry.apt
      - copied unchanged from r295084, maven/components/trunk/maven-site/src/site/apt/guides/getting-started/introduction-to-plugin-registry.apt
    maven/components/trunk/maven-site/src/site/apt/guides/introduction/introduction-to-plugins.apt
      - copied unchanged from r295084, maven/components/trunk/maven-site/src/site/apt/guides/getting-started/introduction-to-plugins.apt
    maven/components/trunk/maven-site/src/site/apt/guides/introduction/introduction-to-profiles.apt
      - copied unchanged from r295084, maven/components/trunk/maven-site/src/site/apt/guides/getting-started/introduction-to-profiles.apt
    maven/components/trunk/maven-site/src/site/apt/guides/introduction/introduction-to-repositories.apt
      - copied unchanged from r295034, maven/components/trunk/maven-site/src/site/apt/guides/getting-started/introduction-to-repositories.apt
    maven/components/trunk/maven-site/src/site/apt/guides/introduction/introduction-to-the-lifecycle.apt
      - copied unchanged from r295034, maven/components/trunk/maven-site/src/site/apt/guides/getting-started/introduction-to-the-lifecycle.apt
    maven/components/trunk/maven-site/src/site/apt/guides/introduction/introduction-to-the-pom.apt
      - copied unchanged from r295081, maven/components/trunk/maven-site/src/site/apt/guides/getting-started/introduction-to-the-pom.apt
    maven/components/trunk/maven-site/src/site/apt/guides/introduction/introduction-to-the-standard-directory-layout.apt
      - copied unchanged from r295034, maven/components/trunk/maven-site/src/site/apt/guides/getting-started/introduction-to-the-standard-directory-layout.apt
    maven/components/trunk/maven-site/src/site/apt/guides/introduction/profile-example.txt   (with props)
    maven/components/trunk/maven-site/src/site/apt/guides/introduction/repositories-and-artifact-resolution-overview.apt
      - copied unchanged from r295081, maven/components/trunk/maven-site/src/site/apt/guides/getting-started/repositories-and-artifact-resolution-overview.apt
    maven/components/trunk/maven-site/src/site/apt/guides/mini/releasing.apt
      - copied unchanged from r295034, maven/components/trunk/maven-site/src/site/apt/guides/getting-started/releasing.apt
Removed:
    maven/components/trunk/maven-site/src/site/apt/guides/getting-started/introduction-to-archetypes.apt
    maven/components/trunk/maven-site/src/site/apt/guides/getting-started/introduction-to-dependency-management.apt
    maven/components/trunk/maven-site/src/site/apt/guides/getting-started/introduction-to-plugin-prefix-mapping.apt
    maven/components/trunk/maven-site/src/site/apt/guides/getting-started/introduction-to-plugin-registry.apt
    maven/components/trunk/maven-site/src/site/apt/guides/getting-started/introduction-to-plugins.apt
    maven/components/trunk/maven-site/src/site/apt/guides/getting-started/introduction-to-profiles.apt
    maven/components/trunk/maven-site/src/site/apt/guides/getting-started/introduction-to-repositories.apt
    maven/components/trunk/maven-site/src/site/apt/guides/getting-started/introduction-to-the-lifecycle.apt
    maven/components/trunk/maven-site/src/site/apt/guides/getting-started/introduction-to-the-pom.apt
    maven/components/trunk/maven-site/src/site/apt/guides/getting-started/introduction-to-the-standard-directory-layout.apt
    maven/components/trunk/maven-site/src/site/apt/guides/getting-started/plugins/
    maven/components/trunk/maven-site/src/site/apt/guides/getting-started/releasing.apt
    maven/components/trunk/maven-site/src/site/apt/guides/getting-started/repositories-and-artifact-resolution-overview.apt

Added: maven/components/trunk/maven-site/src/site/apt/guides/introduction/profile-example.txt
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-site/src/site/apt/guides/introduction/profile-example.txt?rev=295085&view=auto
==============================================================================
--- maven/components/trunk/maven-site/src/site/apt/guides/introduction/profile-example.txt (added)
+++ maven/components/trunk/maven-site/src/site/apt/guides/introduction/profile-example.txt Wed Oct  5 12:04:41 2005
@@ -0,0 +1,60 @@
+it's possible to do it with m2 beta-1 and profiles.
+
+you declare profile in your pom like this :
+
+   <profiles>
+     <profile>
+       <id>env-test</id>
+       <activation>
+         <property>
+           <name>env</name>
+           <value>test</value>
+         </property>
+       </activation>
+       <properties>
+         <appProperties>test.properties</appProperties>
+       </properties>
+     </profile>
+     <profile>
+       <id>env-production</id>
+       <activation>
+         <property>
+           <name>env</name>
+           <value>production</value>
+         </property>
+       </activation>
+       <properties>
+         <appProperties>app.properties</appProperties>
+       </properties>
+     </profile>
+   </profiles>
+
+and you can run m2 with one of profiles like :
+m2 -P env-production clean:clean install ==> we use the profile id
+or
+m2 -Denv=test clean:clean install ==> we use the property env define in 
+<activation>
+
+Emmanuel
+
+martin.kuhn@merkur.at wrote:
+> Hi,
+> 
+> I'm a maven newbie and I try out maven 2.0 alpha 3.
+> 
+> My questions:
+> 
+> I have a project to build / deploy for three different enviroments (test, 
+> integration, production).
+> 
+> The difference beetween the bundles is only a properties file (there are 
+> three different files: config-test.properties, 
+> config-integration.properties ...).
+> In the build process I want to copy the right config file to a file with a 
+> common name (config.properties -> the app should work with this config 
+> file)
+> 
+> Is there a solution to handle this with maven 2 or do I have to write a 
+> plugin?
+> 
+> 

Propchange: maven/components/trunk/maven-site/src/site/apt/guides/introduction/profile-example.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/components/trunk/maven-site/src/site/apt/guides/introduction/profile-example.txt
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"