Note that there are some explanatory texts on larger screens.

plurals
  1. POMaven Problem Missing Artifact (jsf-api.jar)
    primarykey
    data
    text
    <p>I installed M2Eclipse Plug-In for Eclipse. I'm not very experienced with maven. My Problem is that I can't download two Artifacts:</p> <pre><code> 13.07.10 08:53:30 MESZ: Build errors for test; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project test: Missing: ---------- 1) com.sun.faces:jsf-api:jar:2.0.0-b13 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.sun.faces -DartifactId=jsf-api -Dversion=2.0.0-b13 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=com.sun.faces -DartifactId=jsf-api -Dversion=2.0.0-b13 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) de.studi:Studentenportal:pom:pom:0.0.1-SNAPSHOT 2) com.sun.faces:jsf-api:jar:2.0.0-b13 2) com.sun.faces:jsf-impl:jar:2.0.0-b13 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.sun.faces -DartifactId=jsf-impl -Dversion=2.0.0-b13 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=com.sun.faces -DartifactId=jsf-impl -Dversion=2.0.0-b13 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) de.studi:Studentenportal:pom:pom:0.0.1-SNAPSHOT 2) com.sun.faces:jsf-impl:jar:2.0.0-b13 ---------- 2 required artifacts are missing. for artifact: de.studi:Studentenportal:pom:0.0.1-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2, releases=true, snapshots=false) </code></pre> <p>Here is my POM.XML:</p> <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt; &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt; &lt;groupId&gt;de.test&lt;/groupId&gt; &lt;artifactId&gt;test&lt;/artifactId&gt; &lt;packaging&gt;war&lt;/packaging&gt; &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt; &lt;name&gt;Studentenportal Maven Webapp&lt;/name&gt; &lt;url&gt;http://maven.apache.org&lt;/url&gt; &lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;junit&lt;/groupId&gt; &lt;artifactId&gt;junit&lt;/artifactId&gt; &lt;version&gt;3.8.1&lt;/version&gt; &lt;scope&gt;test&lt;/scope&gt; &lt;/dependency&gt; &lt;!-- JSF/JSTL/Facelets --&gt; &lt;dependency&gt; &lt;groupId&gt;com.sun.faces&lt;/groupId&gt; &lt;artifactId&gt;jsf-api&lt;/artifactId&gt; &lt;version&gt;2.0.3&lt;/version&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;com.sun.faces&lt;/groupId&gt; &lt;artifactId&gt;jsf-impl&lt;/artifactId&gt; &lt;version&gt;2.0.3&lt;/version&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;javax.servlet&lt;/groupId&gt; &lt;artifactId&gt;jstl&lt;/artifactId&gt; &lt;version&gt;1.2&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;javax.servlet&lt;/groupId&gt; &lt;artifactId&gt;servlet-api&lt;/artifactId&gt; &lt;version&gt;2.5&lt;/version&gt; &lt;/dependency&gt; &lt;/dependencies&gt; &lt;build&gt; &lt;finalName&gt;test&lt;/finalName&gt; &lt;/build&gt; &lt;/project&gt; </code></pre> <p>I tried it with several versions of JSF2 with no success.</p> <hr> <p>I added following to my pom.xml:</p> <pre><code>&lt;repositories&gt; &lt;repository&gt; &lt;id&gt;maven2-repository.dev.java.net&lt;/id&gt; &lt;name&gt;Java.net Repository for Maven&lt;/name&gt; &lt;url&gt;http://download.java.net/maven/2/&lt;/url&gt; &lt;layout&gt;default&lt;/layout&gt; &lt;/repository&gt; &lt;/repositories&gt; </code></pre> <p>But the problem is still there. Is there someting wrong with that?</p> <hr> <p>Okay I got it! The project can be built. Unfortunately I don't know why. I didn't changed something :-) </p> <p>Now I get only Warnings from Maven:</p> <pre><code>13.07.10 10:04:04 MESZ: Unable to update index for central|http://repo1.maven.org/maven2 13.07.10 10:03:42 MESZ: [WARN] Missing POM for com.sun.faces:jsf-api:jar:2.0.0 13.07.10 10:03:43 MESZ: Updating index central|http://repo1.maven.org/maven2 13.07.10 10:04:04 MESZ: [WARN] Missing POM for com.sun.faces:jsf-impl:jar:2.0.0 13.07.10 10:04:04 MESZ: Unable to download Repository[d9d714e11cb097b3ffcec91cccc65d3e|http://repo1.maven.org/maven2/.index]/nexus-maven-repository-index.properties: java.net.ConnectException: Connection timed out: no further information 13.07.10 10:04:25 MESZ: Downloading http://repo1.maven.org/maven2/com/sun/faces/jsf-impl/2.0.0/jsf-impl-2.0.0.jar 13.07.10 10:04:25 MESZ: Downloading http://repo1.maven.org/maven2/com/sun/faces/jsf-api/2.0.0/jsf-api-2.0.0.jar 13.07.10 10:04:25 MESZ: Downloaded http://repo1.maven.org/maven2/com/sun/faces/jsf-api/2.0.0/jsf-api-2.0.0.jar 13.07.10 10:04:25 MESZ: Downloaded http://repo1.maven.org/maven2/com/sun/faces/jsf-impl/2.0.0/jsf-impl-2.0.0.jar 13.07.10 10:04:25 MESZ: [WARN] *** CHECKSUM FAILED - Checksum failed on download: local = 'a2477a115d96ab5bddd88400beb176eaf43816d7'; remote = '&lt;!--' - RETRYING 13.07.10 10:04:25 MESZ: [WARN] *** CHECKSUM FAILED - Checksum failed on download: local = '83e1d5e415a35d55de79ab2c9a79bdd3182aa48a'; remote = '&lt;!--' - RETRYING 13.07.10 10:04:26 MESZ: Downloading http://repo1.maven.org/maven2/com/sun/faces/jsf-api/2.0.0/jsf-api-2.0.0.jar 13.07.10 10:04:26 MESZ: Downloaded http://repo1.maven.org/maven2/com/sun/faces/jsf-api/2.0.0/jsf-api-2.0.0.jar 13.07.10 10:04:26 MESZ: Downloading http://repo1.maven.org/maven2/com/sun/faces/jsf-impl/2.0.0/jsf-impl-2.0.0.jar 13.07.10 10:04:26 MESZ: Downloaded http://repo1.maven.org/maven2/com/sun/faces/jsf-impl/2.0.0/jsf-impl-2.0.0.jar 13.07.10 10:04:26 MESZ: [WARN] *** CHECKSUM FAILED - Checksum failed on download: local = 'b912ac4338d2bd37982d2d887fb82ac8fc5d54a2'; remote = '&lt;!--' - IGNORING 13.07.10 10:04:26 MESZ: [WARN] *** CHECKSUM FAILED - Checksum failed on download: local = '5e645760133f915dbc0da3d16edd304fdf8e8113'; remote = '&lt;!--' - IGNORING 13.07.10 10:04:26 MESZ: Maven Builder: FULL_BUILD requireFullBuild 13.07.10 10:04:28 MESZ: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 13.07.10 10:04:28 MESZ: [INFO] Copying 0 resource 13.07.10 10:04:28 MESZ: [INFO] No sources to compile 13.07.10 10:04:28 MESZ: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 13.07.10 10:04:28 MESZ: [INFO] skip non existing resourceDirectory C:\StudiPortal\Workspaces\Studentenportal\src\test\resources 13.07.10 10:05:05 MESZ: Refreshing [/Studentenportal/pom.xml] 13.07.10 10:05:05 MESZ: Maven Builder: AUTO_BUILD requireFullBuild 13.07.10 10:05:05 MESZ: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 13.07.10 10:05:05 MESZ: [INFO] Copying 0 resource 13.07.10 10:05:05 MESZ: [INFO] No sources to compile 13.07.10 10:05:05 MESZ: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 13.07.10 10:05:05 MESZ: [INFO] skip non existing resourceDirectory C:\StudiPortal\Workspaces\Studentenportal\src\test\resources </code></pre> <p>It doesn't look so good -.- Especially the Missing POM warnings are anxious.</p> <hr> <h2>Update</h2> <p>First I changed it to myfaces and then I added the appropriate repository to the settings.xml in the .m2 directory. Like that:</p> <pre><code>&lt;profile&gt; &lt;id&gt;jdk-1.6&lt;/id&gt; &lt;activation&gt; &lt;jdk&gt;1.6&lt;/jdk&gt; &lt;/activation&gt; &lt;repositories&gt; &lt;repository&gt; &lt;id&gt;JBOSS&lt;/id&gt; &lt;name&gt;JBoss Repository&lt;/name&gt; &lt;url&gt;http://repository.jboss.org/maven2/&lt;/url&gt; &lt;/repository&gt; &lt;/repositories&gt; &lt;/profile&gt; </code></pre> <p>But there is still the problem that maven can't find the artifacts. Pls help :-)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload