Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Andew Jardine
EXT plugin issues?
May 27, 2014 12:09 PM
Answer

Andew Jardine

Rank: Regular Member

Posts: 237

Join Date: December 22, 2010

Recent Posts

Hey Guys,

Not often I wander into this area of Liferay but I am looking to solve something that is deep and required the use of an EXT plugin. I am using 6.2 CE GA2 and have the sdk installed, and the usual configurations in place such as my build..properties. Other plugin types are working without issue so I think this is all good.

I have tried from both the command line and the IDE to create an EXT plugin, and while the project appears to create itself properly, when I try to do a deploy I have some strange results. The first one is an error --

1... build-common.xml:620:  ... sdk/ext/i18n-virtualhost-ext/src does not exist.


If I add the src folder that it's complaining about (which I am pretty sure I am not supposed to do of course) then it will build, BUT... this is all the output I get...

1
2Buildfile: ... sdk/ext/i18n-virtualhost-ext/build.xml
3
4deploy:
5      [jar] Building MANIFEST-only jar: ... sdk/dist/i18n-virtualhost-ext-6.2.1.war
6
7BUILD SUCCESSFUL


... pretty sure that is not right. Also, although the war is created and dropped into sdk/dist... the deploy target is not copying it to the LIFERAY_HOME/deploy location. I realize that there is nothing there to deploy, but just thought I would mention it anyway.

Anyone have any ideas? or seen this?
Andew Jardine
RE: EXT plugin issues?
May 27, 2014 6:25 PM
Answer

Andew Jardine

Rank: Regular Member

Posts: 237

Join Date: December 22, 2010

Recent Posts

I have also tried a fresh install of the 6.2 sdk -- but the issue persists.
Moisés Belda
RE: EXT plugin issues?
May 31, 2014 11:00 AM
Answer

Moisés Belda

Rank: Junior Member

Posts: 60

Join Date: April 20, 2013

Recent Posts

Hi Andrew!

Seems that ant scipts for deploying EXT plugin don't work for "deploy" target.

I think that src path isn't correct for deploy target with EXT plugin.

One workaround is:
- Create EXT PLUGIN
- ant clean
- ant compile
- ant war

And then, manually copy sdk/dist/*-ext.war to your deploy dir,

don't invoke "ant deploy" directly and don't create manually any src dir...

Hope it helps!
Andew Jardine
RE: EXT plugin issues?
June 5, 2014 2:50 PM
Answer

Andew Jardine

Rank: Regular Member

Posts: 237

Join Date: December 22, 2010

Recent Posts

Hey Moises,

That does in fact work although what a pain in the ass. One more reason not to use EXT plugins I guess emoticon

Thanks!