...
Code Block |
---|
<pluginRepositories> <pluginRepository> <id>apache-snapshots</id> <name>Apache Snapshots Repository</name> <url>http://people.apache.org/repo/m2-snapshot-repository</url> <layout>default</layout> <snapshots> <enabled>true</enabled> <updatePolicy>daily</updatePolicy> <checksumPolicy>ignore</checksumPolicy> </snapshots> <releases> <enabled>false</enabled> </releases> </pluginRepository> </pluginRepositories > |
Note | ||
---|---|---|
| ||
Unless you are using a published archetype that goes with the version of geronimo you are using, you will have to update the <geronimoVersion> property in the generated poms to whatever the correct version is. For instance as of writing the generated poms have <geronimoVersion>2.2-SNAPSHOT</geronimoVersion> and for use with geronimo 2.1 you would update this to <geronimoVersion>2.1</geronimoVersion> |
Repackage the liferay war
...
Code Block |
---|
<dependency> <groupId>com.liferay</groupId> <artifactId>liferay-portal</artifactId> <version>${liferayVersion}<<version>4.4.1</version> <type>war</type> </dependency> |
...
Code Block |
---|
<dependencies> <!-- if you are deploying a jee application, use scope provided --> <!-- other dependencies will normally end up as dependencies in the plan and geronimo-plugin.xml --> <!-- include dependencies on all deployer modules needed, with scope provided --> <dependency> <groupId>com.liferay</groupId> <artifactId>liferay-portal-lesslibs</artifactId> <version>${liferayVersion}<-SNAPSHOT</version> <type>war</type> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.geronimo.configs</groupId> <artifactId>javamail</artifactId> <type>car</type> <version>${geronimoVersion}</version> </dependency> <!-- replaces activemq jar in lib dir --> <dependency> <groupId>org.apache.geronimo.configs</groupId> <artifactId>activemq-ra</artifactId> <type>car</type> <version>${geronimoVersion}</version> </dependency> <dependency> <groupId>org.apache.geronimo.plugins</groupId> <artifactId>liferay-derby</artifactId> <type>car</type> <version>1.0-SNAPSHOT</version> </dependency> <dependency> <groupId>portlet-api</groupId> <artifactId>portlet-api</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>com.liferay</groupId> <artifactId>portal-kernel</artifactId> <version>${liferayVersion}</version> </dependency> <dependency> <groupId>com.liferay</groupId> <artifactId>portal-service</artifactId> <version>${liferayVersion}</version> </dependency> <dependency> <groupId>xerces</groupId> <artifactId>xercesImpl</artifactId> <version>2.8.1</version> </dependency> <dependency> <groupId>saxpath</groupId> <artifactId>saxpath</artifactId> <version>1.0-FCS</version> </dependency> <dependency> <groupId>commons-digester</groupId> <artifactId>commons-digester</artifactId> <version>1.8</version> </dependency> <dependency> <groupId>org.apache.geronimo.framework</groupId> <artifactId>geronimo-gbean-deployer</artifactId> <type>car</type> <version>${geronimoVersion}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.geronimo.configs</groupId> <artifactId>jetty6-deployer</artifactId> <type>car</type> <version>${geronimoVersion}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.geronimo.configs</groupId> <artifactId>jasper-deployer</artifactId> <type>car</type> <version>${geronimoVersion}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.geronimo.configs</groupId> <artifactId>persistence-jpa10-deployer</artifactId> <type>car</type> <version>${geronimoVersion}</version> <scope>provided</scope> </dependency> </dependencies> |
...