Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Open uportal-war/pom.xml and find the resource server plugin configuration under the build section.  You will need to add an additional execution referencing your new theme directory.

Note you'll need to add the useGeneratedSources xml node into the uPortal-war/pom.xml so the uPortal build knows where to look for the css files that are generated from the less files.

Code Block
languagehtml/xml
<plugin>
    <groupId>org.jasig.resourceserver</groupId>
    <artifactId>resource-server-plugin</artifactId>
    <version>${resource-server.version}</version>
    <executions>
        . . .
        <execution>
            <id>aggregate-themename-skins</id>
            <phase>prepare-package</phase>
            <goals>
                <goal>batch-aggregate</goal>
            </goals>
            <inherited>false</inherited>
            <configuration>
                <displayJsWarnings>false</displayJsWarnings>
                <useGeneratedSources>true</useGeneratedSources>
                <includes>
                    <include>media/skins/themename/**/skin.xml</include>
                </includes>
                <sharedJavaScriptDirectory>media/skins/themename/common/javascript</sharedJavaScriptDirectory>
            </configuration>
        </execution>
    </executions>
</plugin>

...