- This topic has 4 replies, 2 voices, and was last updated 10 years, 8 months ago by
CWorwood.
-
AuthorPosts
-
CWorwoodMemberHello, I have a Maven web app project that uses several Maven plugins to perform various tasks at build time. If I build the project with Maven manually the plugins are run just fine. If however I add my app to the “Servers” view by right clicking on my WebSphere 8.5 server and selecting “Add Deployment…” the WAR and EAR are built and the app is deployed okay, but no Maven plugins are run. So, the contents of the WAR are not quite right (files that should be excluded aren’t, and files that should be generated aren’t as well).
Is there some way I can get those Maven plugins to run when my app is deployed in that manner?
I’m thinking it has to be some configuration change in my pom or a change to MyEclipse settings that needs to be made, but I’m not sure which.
I have tried setting the lifecycle mapping meta data, but the plugins are still not run.
The maven plugins I am using at the moment are the maven-war-plugin, and yuicompressor-maven-plugin.
I would like to be able to use MyEclipse’s WebSphere deploy feature as it is the main reason I use MyEclipse, so any help is appreciated.
Thanks.
MyEclipse Build id: 10.7.1-Blue-20130201
Brian FernandesModeratorCW,
Deployment exclusion is something that does not work yet in MyEclipse – we do have it on our timeline for the 2015 release and I’ll increase the priority on this fix given your need.
Is that the crux of the issue you are experiencing? Or do you have some other plugins that you would like to run as well, pre-deployment?
CWorwoodMemberBrian, deployment exclusion and being able to run the yuicompressor-maven-plugin pre-deployment are my current needs.
Thanks.
Brian FernandesModeratorCWorwood,
Thanks – I’ll add the yuicompressor plugin to the list, though we’d probably need to develop a generic solution for this requirement.
CWorwoodMemberA generic solution would be better. It would be nice if MyEclipse could use the pom.xml file to know which plugins need to run and when (lifecycle mapping information is already in the pom.xml file).
Thanks
-
AuthorPosts