java - Is it possible to get the exact maven command from an eclipse build process? -


short version:
there way at/inspect command eclipse uses build maven project, in order run command command line?

long version:
i'm trying set automated build/deploy process, uses maven command line. want is:

  • run maven build
  • kill running server
  • delete current .war , exploded directory
  • copy built .war file server
  • start server

the build process on developer machine tightly integrated eclipse. i've attached server (tomcat 6) can stop/start/publish etc within eclipse.

however when build command line using mvn clean package (still on development machine), package built not seem build correctly (the build successful, encounters errors upon deployment).

now spend time trying figure out perfect command working, figured if works within eclipse, find exact command needed. can't seem find it.

is possible @ command?

system info:

  • os: windows 7
  • eclipse version: juno service release 2 (build id: 20130225-0426)
  • server: tomcat 6.0.32
  • maven: 3.0.5
  • java: jdk 6.0_43

i think, it's quite impossible, since eclipse uses api calls (even compiling project, if use m2e plugin), not calls shell scripts or applications. of course request api calls sort of profiling tools, wouldn't since have implement calls yourself.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -