jdk tools.jar under Snow leopard

Se usando maven-antrun-plugin sotto MacOsX Snow Leopard ottenete [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: sun.jdk:tools馃珯1.6.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=sun.jdk -DartifactId=tools -Dversion=1.6.0 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=sun.jdk -DartifactId=tools -Dversion=1.6.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: org.apache.maven.plugins:maven-antrun-plugin:maven-plugin:1.4 sun.jdk:tools馃珯1.6.0 La soluzione veloce 猫 : cd /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/ sudo mkdir lib cd lib sudo ln -s ../Classes/classes.jar tools.jar Purtroppo non ho ancora trovato un modo elegante dentro maven usando i profile.

October 17, 2010 路 1 min 路 99 words 路  Yoghi

Maven: usare la cartella "lib" di un project

Se uno per praticit脿 vuole tenere le library all鈥檌nterno del project o cmq. usare java-library che nel maven-repository non ci sono e non vuole sporcare il repository pu貌 mettere nel pom del progetto in alto : <repositories> <repository> <id>project</id> <name>Project Maven Repository</name> <layout>default</layout> <url>file:///./lib</url> </repository> </repositories> In questo modo maven cercher脿 nella lib le java-library necessarie. [Fonte]

December 3, 2008 路 1 min 路 57 words 路  Yoghi