Using testOutputDirectory didn't work. Didn't quite understand the other approach. Could you please elaborate?
Thanks, Swaroop Wayne Fay wrote: > >> Even with the above specified, Maven still generates a target folder on a >> successful build. Also, a "mvn clean" by default wipes out the target >> directory. Is there a way to tell maven not to delete / create a target >> directory during a build? > > Add build/testOutputDirectory in addition to build/directory and > build/outputDirectory. > > Check the pom reference for more parameters you might need to add: > http://maven.apache.org/pom.html > > Another idea might be to create the target folder and remove write > privileges, then run "mvn -X" and wait for it to break, fix that > issue, and repeat. > > Wayne > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > -- View this message in context: http://old.nabble.com/Disallowing-creation-of-target-directory-tp28133673p28179024.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
