Commit 48f3c3a2 authored by mindthegab's avatar mindthegab
Browse files

fixed run profile to run only on AMPs and runner, restored docs

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@708 04253f4f-3451-0410-a141-5562f1e59037
parent b4c4e34a
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -23,6 +23,15 @@
                    <plugin>
                        <groupId>org.apache.tomcat.maven</groupId>
                        <artifactId>tomcat7-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>run-wars</id>
                                <goals>
                                    <goal>run-war-only</goal>
                                </goals>
                                <phase>integration-test</phase>
                            </execution>
                        </executions>
                        <configuration>
                            <!-- Runs Solr as the "fake" main webapp. This is useful due to the currently poor OOTB zip packaging of Alfresco Solr -->
                            <warDirectory>${solr.project.dir}/target/solr-overlay</warDirectory>
+3 −6
Original line number Diff line number Diff line
@@ -61,15 +61,12 @@ Commands
    
    * <<<mvn install -Dmaven.test.skip=true>>>: Like <<<mvn install>>> but skips unit tests
    
    * <<<mvn install -Pamp-to-war>>>: Like <<<mvn install>>> but also installs the AMP onto an Alfresco WAR. 
    
    * <<<mvn install -Pamp-to-war,run>>> Like <<<mvn package -Pamp-to-war>>> 
    but also runs the resulting WAR+AMP in Tomcat + H2 embedded for integration testing. 
    * <<<mvn install -Pamp-to-war>>> Like <<<mvn package -Pamp-to-war>>> 
    but also installs and runs the resulting WAR+AMP in Tomcat + H2 embedded for integration testing. 
    When you run this command then you can access in your browser <<< {{{http://localhost:8080/alfresco}}} >>> or <<< {{{http://localhost:8080/share}}} >>>
    depending on the value of the property <<<alfresco.client.war>>>
    
    
    * <<<mvn integration-test -Pamp-to-war -Dalfresco.client.war=share>>>: Like <<<mvn integration-test -Pamp-to-war>>> but installs the AMP and runs on the Share WAR in Jetty embedded.
    * <<<mvn install -Pamp-to-war -Dalfresco.client.war=share>>>: Like <<<mvn install -Pamp-to-war>>> but installs the AMP and runs on the Share WAR in Tomcat embedded.
    
    * <<<mvn clean -Ppurge>>>: Removes DB, alf_data, indexes and log files. Useful to purge the development repo (by default self contained in <<<$\{project.basedir\}/alf_data_dev>>>
  
+21 −32
Original line number Diff line number Diff line
@@ -381,31 +381,6 @@
        </build>
    </profile>
    
    <profile>
        <id>run</id>
        <activation>
            <property>
                <name>run</name>
            </property>
        </activation>
        <build>
            <plugins>
                <plugin>
                    <groupId>org.apache.tomcat.maven</groupId>
                    <artifactId>tomcat7-maven-plugin</artifactId>
                    <executions>
                        <execution>
                            <id>run-wars</id>
                            <goals>
                                <goal>run-war-only</goal>
                            </goals>
                            <phase>integration-test</phase>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </build>
    </profile>
    
    <!-- Enable AMP lifecycle if finds a module.properties, including unit testing support -->
    <profile>
@@ -521,7 +496,7 @@
      </dependencies>
    </profile>
    
    <!-- Enable AMP project packing on a WAR and run embedded in Jetty -->
    <!-- Enable AMP project packing on a WAR and run embedded in Tomcat -->
    <profile>
      <id>amp-to-war</id>
      <build>
@@ -611,14 +586,28 @@
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
          <!-- Configures tomcat to run against the overlaid WAR + AMP -->
      <properties>
        <maven.tomcat.contextFile>${alfresco.client.war.folder}/WEB-INF/context.xml</maven.tomcat.contextFile>
          <plugin>
            <groupId>org.apache.tomcat.maven</groupId>
            <artifactId>tomcat7-maven-plugin</artifactId>
            <executions>
                <execution>
                    <id>run-wars</id>
                    <goals>
                        <goal>run-war-only</goal>
                    </goals>
                    <phase>integration-test</phase>
                    <configuration>
                        <contextFile>${alfresco.client.war.folder}/WEB-INF/context.xml</contextFile>
                        <!-- To run a non WAR project -->
                        <tomcat.ignorePackaging>true</tomcat.ignorePackaging>
      </properties>
                    </configuration>
                </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
      
    </profile>
    
    <!-- Cleans Alfresco data folder, embedded DB and logs -->