Question

I'm working on a Liferay project.

I'm developing a new Liferay theme using Plugins SDK.

I wonder is it better to use ANT or MAVEN for the project?

Because I managed to run both projects in eclipse.

Also is there any way to deploy automatically the theme in the production server ? (Distant server using tomcat).

For now I'm just using auto deployment, copying the war file to the /deploy file.

Regards

Was it helpful?

OTHER TIPS

(this may be helpful for older versions of plugins-sdk)

Assuming that you have ssh access to the remote server, the following ant target can be added and used in /liferay-plugins-sdk/build-common-plugin.xml

<property name="web-server" value="11.11.11.11" />
<property name="web-server-username" value="yourusername" />
<property name="web-server-password" value="yourpassword" />
<property name="web-server-deploy-folder-path" value="/liferay-x.x/deploy" />

<target name="remote-deploy" depends="war">
    <echo message="Copying plugin to remote server ..." />
    <scp
        file="${plugin.file}"
        todir="${web-server-username}:${web-server-password}@${web-server}:${web-server-deploy-folder-path}" 
        trust="true"
      />
    <echo message="Done!" />
</target>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top