> On Jun 8, 2017, at 10:43 AM, Christofer Dutz <[email protected]> 
> wrote:
> 
> Eventually your approach with a sub-directory inside the target would be a 
> valid option … would probably have to adjust the maven-clean-plugin too, but 
> that should work in getting all results inside the target directory in 
> parallel.

maven-clean-plugin seemed to work OK.  Hmm… would there be a way to get a 
“clean all”?  Maybe that’s what you meant.

    mvn clean -P tgt-java7  # cleans all target/java7
    mvn clean                     # cleans all target/java8

That was with pom.xml changes:

  <properties>
    <edgent.target.kind>java8</edgent.target.kind>
        ...
  </properties>

  <profiles>
    <profile>
      <id>tgt-java7</id>
      <activation>
        <property>
          <name>tgt</name>
          <value>java7</value>
        </property>
      </activation>
      <properties>
        <edgent.target.kind>java7</edgent.target.kind>
      </properties>
        ...
    </profile>

  <build>
    <directory>target/${edgent.target.kind}</directory>
        ...
  </build>

Reply via email to