facebook

Maven plugins not running (app is deployed in servers view)

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #351081 Reply

    CWorwood
    Member

    Hello, 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

    #351131 Reply

    Brian Fernandes
    Moderator

    CW,

    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?

    #351133 Reply

    CWorwood
    Member

    Brian, deployment exclusion and being able to run the yuicompressor-maven-plugin pre-deployment are my current needs.

    Thanks.

    #351134 Reply

    Brian Fernandes
    Moderator

    CWorwood,

    Thanks – I’ll add the yuicompressor plugin to the list, though we’d probably need to develop a generic solution for this requirement.

    #351135 Reply

    CWorwood
    Member

    A 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

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Maven plugins not running (app is deployed in servers view)

You must be logged in to post in the forum log in