quinta-feira, 15 de janeiro de 2015

Liferay - How to fix the Not updating theme because version 6.2.1 is newer than version 6.2.0.1 error

Not updating theme because version 6.2.1 is newer than version 6.2.0.1

When you're developing a Theme plugin, sometimes your changes won't reflect in the browser. Maybe is cache, maybe not. When cache is not the root of your problems, you may be facing the next error:

"Not updating theme because version 6.2.1 is newer than version 6.2.0.1."

As the message states it happens because the application version installed is newer than the one you're trying to install.

And when do this happen? It took me sometime to get this but think i got it:

1. Create a Theme Plugin with SDK and ready to run in Liferay version 6.2.1.
2. Generate the Theme WAR and install it in a Liferay version 6.1.1.
3. Create a Theme Plugin with the same name as 1 and deploy it to Liferay.

How can i solve it?

Delete the theme installed from the WAR.
Create a new theme plugin using the SDK that works with Liferay version 6.1.1 and deploy.

Et voilá, you'll never have the same problem again. 

Don't forget to change the compatibility attribute in the liferay-look-and-feel.xml file. Set it accordingly to your liferay version.

Sem comentários:

Enviar um comentário