java - MavenCli doMain() method build log to LOGGER.info instead of System.out -


i using maven cli run maven command java. since below method accepts printstream object input, how write maven build log logger instead of system.out. not trying put of system.out , system.err onto logger. need pass argument mavencli domain() method can redirect method(build) logs logger.

mavencli cli = new mavencli(); integer result = cli.domain(new string[]{"clean","package","-dmaven.test.skip=true"},                 pathtopom,                 system.out, system.out); 

fixed issue. build log being written temp text file. mavencli cli = new mavencli(); string dir = appproperties.getenvproperty("queue"); printstream stdout = new printstream( new file("temp.txt") ); result = cli.domain(new string[]{"clean","package","-dmaven.test.skip=true"}, pathtopom, stdout, stdout);


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -