Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: change 1.0.0-M4-SNAPSHOT to 1.0.0-M4 because there's no SNAPSHOT build in m2 central

...

Code Block
languagehtml/xml
titleExample Plugin Configuration
<plugin>
    <artifactId>maven-uportal-plugin</artifactId>
    <groupId>org.jasig.portal</groupId>
    <version>1.0.0-M4-SNAPSHOT<M4</version>
    <configuration>
        <contextName>${pom.artifactId}</contextName>
        <artifactId>${pom.artifactId}</artifactId>
        <artifactGroupId>${pom.groupId}</artifactGroupId>
        <artifactVersion>${pom.version}</artifactVersion>
        <removeExistingDirectories>true</removeExistingDirectories>
        <extractWars>true</extractWars>
    </configuration>
</plugin>

...

Code Block
languagehtml/xml
titleMaven pom.xml
    <profiles>
        <profile>
            <id>localdev</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.portals.pluto</groupId>
                        <artifactId>maven-pluto-plugin</artifactId>
                        <executions>
                            <execution>
                                <phase>generate-resources</phase>
                                <goals>
                                    <goal>assemble</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-war-plugin</artifactId>
                        <version>2.1</version>
                        <configuration>
                            <classifier>localdev</classifier>
                            <warName>${project.artifactId}</warName>
                            <webXml>${project.build.directory}/pluto-resources/web.xml</webXml>
                            <overlays>
                                <overlay>
                                    <groupId>org.jasig.resourceserver</groupId>
                                    <artifactId>resource-server-content</artifactId>
                                    <includes>
                                        <include>rs/jquery/1.6.1/</include>
                                        <include>rs/jqueryui/1.8.13/</include>
                                        <include>rs/fluid/1.4.0/js</include>
                                    </includes>
                                </overlay>
                            </overlays>
                        </configuration>
                    </plugin>
                    <plugin>
                        <artifactId>maven-uportal-plugin</artifactId>
                        <groupId>org.jasig.portal</groupId>
                        <version>1.0.0-M4-SNAPSHOT<SNASHOT</version>
                        <configuration>
                            <contextName>${pom.artifactId}</contextName>
                            <artifactId>${pom.artifactId}</artifactId>
                            <artifactGroupId>${pom.groupId}</artifactGroupId>
                            <artifactVersion>${pom.version}</artifactVersion>
                            <artifactClassifier>localdev</artifactClassifier>
                            <removeExistingDirectories>true</removeExistingDirectories>
                            <extractWars>true</extractWars>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

...