Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Build a java application using Maven

 
Cow Yeung
Greenhorn
Posts: 16
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am building a software that need to use Maven for project management. The software can export a library out. Therefore, I need to use some project management library. If there is some libraries or plug-in of Maven that I can call function in java application instead of using command in DOS mode to build a project?
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Eric OX" please check your private messages for an important administrative matter. You can see them by clicking the My Private Messages link above.
 
Edwin Stephens
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I think the "Maven 2 Exec Plugin" offers the capabilities that you are looking for. In summary, "The plugin provides 2 goals to make execution of system and Java programs."

The plugin's two goals are:
exec::exec - execute programs and Java programs in a separate process
exec::java - execute Java programs in the same VM

The project's homepage and documentation can be found at:
http://mojo.codehaus.org/exec-maven-plugin/

The plugin exists in the central maven repository. Links to the versions of the plugin in the central repo (including dependency information) can be found here:
http://www.jarvana.com/jarvana/search?search_type=project&project=exec-maven-plugin

Hope that helps,
Edwin
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18020
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This isn't quite clear. Maven has its own project management library. It's one of the core features (and major advantages) of Maven.

If you're just developing a Jar that you want to go into a repository and be usable as a dependency by other Maven project(s), use the goal "mvn install". It will do the build and check a copy of the JAR and POM info into your local Maven repository.
 
Cow Yeung
Greenhorn
Posts: 16
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe it is not so clear that what do I want.

I mean the Application software can generate some folder and some files after clicking a button in the application. The file generating process is as same as Maven. However, Maven is using command on command mode and my application is using some code to control the generation process. Or, maybe I would like to find a java library that using code instead of the command.

Thanks~~
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic