Maven 1.x AppServer Plugin

some properties do not play nice with maven console or reinvoked goals

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

A) maven appserver:install
1) start maven console in terminal A
2) at terminal A console, execute appserver:stop
Gives message like:
Maven has determined your <servername> appserver instance is
installed in directory <dirname> and not started using socket
<socketport> on host <appserver host>

3) execute maven appserver:start in terminal B, leaving console in A open
4) with appserver now started, execute appserver:stop in maven console again running in terminal A
5) message still says:
Gives message like:
Maven has determined your <servername> appserver instance is
installed in directory <dirname> and not started using socket
<socketport> on host <appserver host>

However server is now started.

This has to do with properties being set using ant the first time appserver:stop is called. Properties set by ant are not removable or resettable by design, so the solution is to set the properties via jelly.

Activity

Hide
Peter Lynch added a comment -

Checking in plugin.jelly;
/home/cvs/maven-plugins/appserver/plugin.jelly,v <-- plugin.jelly
new revision: 1.9; previous revision: 1.8
done

Show
Peter Lynch added a comment - Checking in plugin.jelly; /home/cvs/maven-plugins/appserver/plugin.jelly,v <-- plugin.jelly new revision: 1.9; previous revision: 1.8 done

People

Vote (0)
Watch (0)

Dates

  • Due:
    Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
2h
Original Estimate - 2 hours
Remaining:
2h
Remaining Estimate - 2 hours
Logged:
Not Specified
Time Spent - Not Specified