robovm / robovm-samples

RoboVM sample projects
Apache License 2.0
93 stars 72 forks source link

Possible way to prevent the robovm-rt/robovm-cocoatouch dependencies in M2Eclipse imported projects #55

Open ntherning opened 9 years ago

ntherning commented 9 years ago

Can we prevent the robovm-rt and robovm-cocoatouch dependencies to show up in the Maven Dependencies classpath container in Eclipse when importing as a maven project if we enclose these dependencies in a profile which is inactive when M2Eclipse (m2e.version) is detected?

<profiles>
  <profile>
    <id>not-eclipse</id>
    <activation>
      <property>
        <name>!m2e.version</name>
      </property>
    </activation>
    <dependencies>
      <dependency>
        <groupId>org.robovm</groupId>
        <artifactId>robovm-rt</artifactId>
      </dependency>
      <dependency>
        <groupId>org.robovm</groupId>
        <artifactId>robovm-cocoatouch</artifactId>
      </dependency>
    </dependencies>
  </profile>
</profiles>