im using mac and saw this error in one of my pom files. I googled around and added the following section to pom.xml:
<profiles> <profile> <id>osx</id> <activation> <os> <family>mac</family> </os> </activation> <properties> <toolsjar>${java.home}/../Classes/classes.jar</toolsjar> </properties> </profile> </profiles> ... <dependency> <groupId>com.sun</groupId> <artifactId>tools</artifactId> <version>1.6.0</version> <scope>system</scope> <systemPath>/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar</systemPath> </dependency> ...
then when I started
mvn clean install -Posx
I still got the same error. please, help!
source share