<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Maven on SigmaLab</title><link>https://blog.sigmalab.net/tags/maven/</link><description>Recent content in Maven on SigmaLab</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 17 Oct 2010 11:01:27 +0000</lastBuildDate><atom:link href="https://blog.sigmalab.net/tags/maven/index.xml" rel="self" type="application/rss+xml"/><item><title>jdk tools.jar under Snow leopard</title><link>https://blog.sigmalab.net/2010/10/17/jdk-tools-jar-under-snow-leopard/</link><pubDate>Sun, 17 Oct 2010 11:01:27 +0000</pubDate><guid>https://blog.sigmalab.net/2010/10/17/jdk-tools-jar-under-snow-leopard/</guid><description>&lt;p&gt;Se usando maven-antrun-plugin sotto MacOsX Snow Leopard ottenete&lt;/p&gt;
&lt;blockquote&gt;[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
&lt;h2 id="missing"&gt;Missing:&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;sun.jdk:tools&amp;#x1fad9;1.6.0&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Try downloading the file manually from the project website.&lt;/p&gt;
&lt;p&gt;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&lt;/p&gt;
&lt;p&gt;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]&lt;/p&gt;
&lt;p&gt;Path to dependency:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;org.apache.maven.plugins:maven-antrun-plugin:maven-plugin:1.4&lt;/li&gt;
&lt;li&gt;sun.jdk:tools&amp;#x1fad9;1.6.0&lt;/blockquote&gt;
La soluzione veloce è :
&lt;code&gt;
cd /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/
sudo mkdir lib
cd lib
sudo ln -s ../Classes/classes.jar tools.jar
&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Purtroppo non ho ancora trovato un modo elegante dentro maven usando i profile.&lt;/p&gt;</description></item><item><title>Maven: usare la cartella "lib" di un project</title><link>https://blog.sigmalab.net/2008/12/03/maven-usare-la-cartella-lib-di-un-project/</link><pubDate>Wed, 03 Dec 2008 12:44:44 +0000</pubDate><guid>https://blog.sigmalab.net/2008/12/03/maven-usare-la-cartella-lib-di-un-project/</guid><description>&lt;p&gt;Se uno per praticità vuole tenere le library all&amp;rsquo;interno 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 :&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-java"&gt;&amp;lt;repositories&amp;gt;
&amp;lt;repository&amp;gt;
&amp;lt;id&amp;gt;project&amp;lt;/id&amp;gt;
&amp;lt;name&amp;gt;Project Maven Repository&amp;lt;/name&amp;gt;
&amp;lt;layout&amp;gt;default&amp;lt;/layout&amp;gt;
&amp;lt;url&amp;gt;file:///./lib&amp;lt;/url&amp;gt;
&amp;lt;/repository&amp;gt;
&amp;lt;/repositories&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In questo modo maven cercherà nella lib le java-library necessarie. [&lt;a href="http://binkley.blogspot.com/2007/03/storing-jars-in-maven-project.html"&gt;Fonte&lt;/a&gt;]&lt;/p&gt;</description></item></channel></rss>