Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
MAVEN-134 manually modify reference project sources
Browse files Browse the repository at this point in the history
  • Loading branch information
gamerson authored and brianchandotcom committed Feb 13, 2015
1 parent 4e54699 commit 08f3b0b
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 14 deletions.
19 changes: 19 additions & 0 deletions archetypes/liferay-portlet-spring-mvc-archetype/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,25 @@
<version>2.2</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<phase>generate-test-sources</phase>
<configuration>
<tasks>
<mkdir dir="${project.build.testOutputDirectory}/projects/default/reference/src/main/java" />
<mkdir dir="${project.build.testOutputDirectory}/projects/default/reference/src/main/resources" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>${groupId}</groupId>
<artifactId>${artifactId}</artifactId>
<groupId>archetype.it</groupId>
<artifactId>default</artifactId>
<packaging>war</packaging>
<name>${artifactId} Portlet</name>
<version>${version}</version>
<name>default Portlet</name>
<version>1.0.0-SNAPSHOT</version>
<build>
<plugins>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

<display>
<category name="category.sample">
<portlet id="${artifactId}" />
<portlet id="default" />
</category>
</display>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name=${artifactId}
name=default
module-group-id=liferay
module-incremental-version=1
tags=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<liferay-portlet-app>
<portlet>
<portlet-name>${artifactId}</portlet-name>
<portlet-name>default</portlet-name>
<icon>/icon.png</icon>
<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>/js/main.js</footer-portlet-javascript>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@

<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" version="2.0">
<portlet>
<portlet-name>${artifactId}</portlet-name>
<display-name>${artifactId}</display-name>
<portlet-name>default</portlet-name>
<display-name>default</display-name>
<portlet-class>org.springframework.web.portlet.DispatcherPortlet</portlet-class>
<init-param>
<name>contextConfigLocation</name>
<value>/WEB-INF/spring-context/portlet/${artifactId}-portlet.xml</value>
<value>/WEB-INF/spring-context/portlet/default-portlet.xml</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<portlet-info>
<title>${artifactId}</title>
<short-title>${artifactId}</short-title>
<keywords>${artifactId}</keywords>
<title>default</title>
<short-title>default</short-title>
<keywords>default</keywords>
</portlet-info>
<security-role-ref>
<role-name>administrator</role-name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@

<portlet:defineObjects />

This is the <b>${artifactId}</b>.
This is the <b>default</b>.

0 comments on commit 08f3b0b

Please sign in to comment.