• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Build a java application using Maven

 
Greenhorn
Posts: 16
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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~~
 
reply
    Bookmark Topic Watch Topic
  • New Topic