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?
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.
An IDE is no substitute for an Intelligent Developer.
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.