I want to run a Maven compilation by my Java code. Thus, I've used the example of the usage of Maven Embedder explained here.
This works pretty well, except that I want to redirect all the log written by the Maven Embedder to my own Logger. So, I created my own MavenEmbedderLogger (out is a PrintStream of mine):
class MvnLogger extends...
I want to compile a project using the MavenEmbedder. Thus, I use this code:
Configuration config = new DefaultConfiguration();
config.setUserSettingsFile(new File("..."));
config.setClassLoader(Thread.currentThread().getContextClassLoader());
ConfigurationValidationResult validationResult = MavenEmbedder.validateConfigur...
Hi all,
How do I get a list of all the profiles for a project in maven inside of a maven plugin?
Would it be:
MavenEmbedder.readModel(new File("path to pom.xml")).getProfiles();
Walter
...