Error when execute MavenCli in the loop (maven-embedder)?
问题 What is the problem when I execute the maven command in the loop ? The goal is to update the version of pom.xml of the list of bundles. The first iteration, maven execute correctly (update pom.xml), but it makes error for all item after. for (String bundlePath: bundlesToUpdate) { MavenCli cli = new MavenCli(); String[] arguments = { "-Dtycho.mode=maven", "org.eclipse.tycho:tycho-versions-plugin:set-version", "-DgenerateBackupPoms=false", "-DnewVersion=" + version}; int result = cli.doMain