wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes Do you use in maven ear to build your ear in dev env? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Do you use in maven ear to build your ear in dev env?" Watch "Do you use in maven ear to build your ear in dev env?" New topic
Author

Do you use in maven ear to build your ear in dev env?

avihai marchiano
Ranch Hand

Joined: Jan 10, 2007
Posts: 342
Hey,

Maven is great for building the project in the integration machine , but as concern for use in the development environment its not so useful(unless you have some clever advice for me).

suppose i have application which is deployed as an ear file.

my issues:
1. in eclipse i change some sources from different projects , now when i want to publish the ear to the server i need to build all projects before building the ear (which can take 15 minutes). build only the changed project and after that build the ear is not convenient .

2. when i run maven the eclipse which is use in the same output folders like maven getting crazy and show comilation errors.

wait for your clever advices.

Thank you
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Are you using the m2eclipse plugin?


JBoss In Action
avihai marchiano
Ranch Hand

Joined: Jan 10, 2007
Posts: 342
How it can help me with this?

I know this plugin, but i dont know how it can help here?
he can run the maven goals from eclipse,but run maven install from eclipse has the same problems ,like running it from the CLI.

1. in case of the ear - run mvn install without run mvn install on the changed project will not create update ear
2. in case of ear - run mvn install and publish it to the server will re-deploy the application (unlike WTP,which publish only the changed files)
3. run mvn install from eclipse will build the classes outside of eclipse , which cause to eclipse to get crazy.

Thank you a lot.
 
 
subject: Do you use in maven ear to build your ear in dev env?
 
Similar Threads
Publish to maven repository as "latest"
Best practices for setting up modules with interdependencies in CVS
Maven or Ant?
Can some one please explain why do i need MAVEN here
Eclipse + ANT building EAR project - best practices? Manuals?