Hello!
To check if maven seeks eclipselink-2.3.0 in proper location I looked at lines in bold:
............
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: org.apache.maven.plugins:maven-compiler-plugin:2.0:testCo
mpile (default-testCompile)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<basedir>${basedir}</basedir>
<buildDirectory>${project.build.directory}</buildDirectory>
<classpathElements>${project.testClasspathElements}</classpathElements>
<compileSourceRoots>${project.testCompileSourceRoots}</compileSourceRoots>
<compilerId default-value="javac"/>
<debug default-value="true">${maven.compiler.debug}</debug>
<fork default-value="false"/>
<optimize default-value="false"/>
<outputDirectory>${project.build.testOutputDirectory}</outputDirectory>
<outputFileName>${project.build.finalName}</outputFileName>
<skip>${maven.test.skip}</skip>
<source>1.6</source>
<staleMillis default-value="0">${lastModGranularityMs}</staleMillis>
<target>1.6</target>
<verbose default-value="false"/>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: org.apache.maven.plugins:maven-surefire-plugin:2.10:
test
(default-test)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<argLine>${argLine}</argLine>
<basedir default-value="${basedir}"/>
<childDelegation default-value="false">${childDelegation}</childDelegation>
<classesDirectory default-value="${project.build.outputDirectory}"/>
<debugForkedProcess>${maven.surefire.debug}</debugForkedProcess>
<disableXmlReport default-value="false">${disableXmlReport}</disableXmlReport>
<enableAssertions default-value="true">${enableAssertions}</enableAssertions>
<excludedGroups>${excludedGroups}</excludedGroups>
<failIfNoTests>${failIfNoTests}</failIfNoTests>
<forkMode default-value="once">${forkMode}</forkMode>
<forkedProcessTimeoutInSeconds>${surefire.timeout}</forkedProcessTimeoutInSeco
nds>
<groups>${groups}</groups>
<junitArtifactName default-value="junit:junit">${junitArtifactName}</junitArti
factName>
<jvm>${jvm}</jvm>
<localRepository>${localRepository}</localRepository>
<objectFactory>${objectFactory}</objectFactory>
<parallel>${parallel}</parallel>
<parallelMavenExecution default-value="${session.parallel}"/>
<perCoreThreadCount default-value="true">${perCoreThreadCount}</perCoreThreadC
ount>
<pluginArtifactMap>${plugin.artifactMap}</pluginArtifactMap>
<printSummary default-value="true">${surefire.printSummary}</printSummary>
<project default-value="${project}"/>
<projectArtifactMap>${project.artifactMap}</projectArtifactMap>
<redirectTestOutputToFile default-value="false">${maven.test.redirectTestOutpu
tToFile}</redirectTestOutputToFile>
<remoteRepositories>${project.pluginArtifactRepositories}</remoteRepositories>
<reportFormat default-value="brief">${surefire.reportFormat}</reportFormat>
<reportNameSuffix default-value="">${surefire.reportNameSuffix}</reportNameSuf
fix>
<reportsDirectory default-value="${project.build.directory}/surefire-reports"/
>
<runOrder default-value="filesystem"/>
<session>${session}</session>
<skip default-value="false">${maven.test.skip}</skip>
<skipExec>${maven.test.skip.exec}</skipExec>
<skipTests default-value="false">${skipTests}</skipTests>
<test>${test}</test>
<testClassesDirectory default-value="${project.build.testOutputDirectory}"/>
<testFailureIgnore default-value="false">${maven.test.failure.ignore}</testFai
lureIgnore>
<testNGArtifactName default-value="org.testng:testng">${testNGArtifactName}</t
estNGArtifactName>
<testSourceDirectory default-value="${project.build.testSourceDirectory}"/>
<threadCount>${threadCount}</threadCount>
<trimStackTrace default-value="true">${trimStackTrace}</trimStackTrace>
<useFile default-value="true">${surefire.useFile}</useFile>
<useManifestOnlyJar default-value="true">${surefire.useManifestOnlyJar}</useMa
nifestOnlyJar>
<useSystemClassLoader default-value="true">${surefire.useSystemClassLoader}</u
seSystemClassLoader>
<useUnlimitedThreads default-value="false">${useUnlimitedThreads}</useUnlimite
dThreads>
<workingDirectory>${basedir}</workingDirectory>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: org.apache.maven.plugins:maven-war-plugin:2.1.1:war (defa
ult-war)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<archiveClasses default-value="false">${archiveClasses}</archiveClasses>
<attachClasses default-value="false"/>
<cacheFile default-value="${project.build.directory}/war/work/webapp-cache.xml
"/>
<classesClassifier default-value="classes"/>
<classesDirectory default-value="${project.build.outputDirectory}"/>
<containerConfigXML>${maven.war.containerConfigXML}</containerConfigXML>
<escapeString>${maven.war.escapeString}</escapeString>
<escapedBackslashesInFilePath default-value="false">${maven.war.escapedBacksla
shesInFilePath}</escapedBackslashesInFilePath>
<failOnMissingWebXml default-value="true">${failOnMissingWebXml}</failOnMissin
gWebXml>
<filteringDeploymentDescriptors default-value="false">${maven.war.filteringDep
loymentDescriptors}</filteringDeploymentDescriptors>
<outputDirectory default-value="${project.build.directory}"/>
<primaryArtifact default-value="true">${primaryArtifact}</primaryArtifact>
<project default-value="${project}"/>
<session default-value="${session}"/>
<useCache default-value="false">${useCache}</useCache>
<warName default-value="${project.build.finalName}"/>
<warSourceDirectory default-value="${basedir}/src/main/webapp"/>
<warSourceIncludes default-value="**"/>
<webXml>${maven.war.webxml}</webXml>
<webappDirectory default-value="${project.build.directory}/${project.build.fin
alName}"/>
<workDirectory default-value="${project.build.directory}/war/work"/>
</configuration>
[DEBUG] =======================================================================
[DEBUG] Verifying availability of C:\Documents and Settings\Admin\.m2\repository
\org\eclipse\persistence\eclipselink\2.3.0\eclipselink-2.3.0.pom from [central (
http://repo.maven.apache.org/maven2, releases)]
[DEBUG] Using connector WagonRepositoryConnector with priority 0 for
http://repo
.maven.apache.org/maven2
Downloading:
http://repo.maven.apache.org/maven2/org/eclipse/persistence/eclipse
link/2.3.0/eclipselink-2.3.0.pom
[DEBUG] Writing resolution tracking file C:\Documents and Settings\Admin\.m2\rep
ository\org\eclipse\persistence\eclipselink\2.3.0\eclipselink-2.3.0.pom.lastUpda
ted
[WARNING] The POM for org.eclipse.persistence:eclipselink:jar:2.3.0 is missing,
no dependency information available
[DEBUG] com.RestExample:RestExample:war:1.0
[DEBUG] javax.faces:jsf-api:jar:2.0:compile
[DEBUG] javax.ws.rs:jsr311-api:jar:1.1.1:compile
[DEBUG] org.glassfish:javax.ejb:jar:3.0.1-b20:compile
[DEBUG] org.glassfish:javax.transaction:jar:3.0.1-b20:compile
[DEBUG] org.glassfish:javax.annotation:jar:3.0.1-b20:compile
[DEBUG] org.eclipse.persistence:javax.persistence:jar:2.0.0:provided
[DEBUG] org.eclipse.persistence:eclipselink:jar:2.3.0:provided
[DEBUG] com.sun.jersey:jersey-server:jar:1.2:compile
[DEBUG] com.sun.jersey:jersey-core:jar:1.2:compile
[DEBUG] asm:asm:jar:3.1:compile
[DEBUG] com.sun.jersey:jersey-client:jar:1.2:compile
[DEBUG] com.sun.jersey:jersey-json:jar:1.2:compile
[DEBUG] org.codehaus.jettison:jettison:jar:1.1:compile
[DEBUG] stax:stax-api:jar:1.0.1:compile
[DEBUG] com.sun.xml.bind:jaxb-impl:jar:2.1.12:compile
[DEBUG] javax.xml.bind:jaxb-api:jar:2.1:compile
[DEBUG] javax.xml.stream:stax-api:jar:1.0-2:compile
[DEBUG] javax.activation:activation:jar:1.1:compile
[DEBUG] org.codehaus.jackson:jackson-core-asl:jar:1.1.1:compile
[DEBUG] com.sun.grizzly:grizzly-servlet-webserver:jar:1.8.6.3:test
[DEBUG] com.sun.grizzly:grizzly-http:jar:1.8.6.3:test
[DEBUG] com.sun.grizzly:grizzly-framework:jar:1.8.6.3:test
[DEBUG] com.sun.grizzly:grizzly-http-utils:jar:1.8.6.3:test
[DEBUG] com.sun.grizzly:grizzly-rcm:jar:1.8.6.3:test
[DEBUG] com.sun.grizzly:grizzly-portunif:jar:1.8.6.3:test
[DEBUG] com.sun.grizzly:grizzly-http-servlet:jar:1.8.6.3:test
[DEBUG] javax.servlet:servlet-api:jar:2.5:test
[DEBUG] Verifying availability of C:\Documents and Settings\Admin\.m2\repository
\org\eclipse\persistence\eclipselink\2.3.0\eclipselink-2.3.0.jar from [central (
http://repo.maven.apache.org/maven2, releases)
[DEBUG] Using connector WagonRepositoryConnector with priority 0 for
http://repo
.maven.apache.org/maven2
Downloading:
http://repo.maven.apache.org/maven2/org/eclipse/persistence/eclipse
link/2.3.0/eclipselink-2.3.0.jar
[DEBUG] Writing resolution tracking file C:\Documents and Settings\Admin\.m2\rep
ository\org\eclipse\persistence\eclipselink\2.3.0\eclipselink-2.3.0.jar.lastUpda
ted
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.047s
[INFO] Finished at: Sun May 27 10:30:33 GMT+02:00 2012
[INFO] Final Memory: 3M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project RestExample: Could not resolve depende
ncies for project com.RestExample:RestExample:war:1.0: Could not find artifact o
rg.eclipse.persistence:eclipselink:jar:2.3.0 in central (
http://repo.maven.apach
e.org/maven2) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
n project RestExample: Could not resolve dependencies for project com.RestExampl
e:RestExample:war:1.0: Could not find artifact org.eclipse.persistence:eclipseli
nk:jar:2.3.0 in central (
http://repo.maven.apache.org/maven2)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDe
pendencies(LifecycleDependencyResolver.java:210)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resol
veProjectDependencies(LifecycleDependencyResolver.java:117)
at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAr
eResolved(MojoExecutor.java:258)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:201)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not res
olve dependencies for project com.RestExample:RestExample:war:1.0: Could not fin
d artifact org.eclipse.persistence:eclipselink:jar:2.3.0 in central (
http://repo
.maven.apache.org/maven2)
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(D
efaultProjectDependenciesResolver.java:189)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDe
pendencies(LifecycleDependencyResolver.java:185)
... 22 more
Caused by: org.sonatype.aether.resolution.DependencyResolutionException: Could n
ot find artifact org.eclipse.persistence:eclipselink:jar:2.3.0 in central (http:
//repo.maven.apache.org/maven2)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDepe
ndencies(DefaultRepositorySystem.java:375)
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(D
efaultProjectDependenciesResolver.java:183)
... 23 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not
find artifact org.eclipse.persistence:eclipselink:jar:2.3.0 in central (
http://
repo.maven.apache.org/maven2)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(Def
aultArtifactResolver.java:538)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArti
facts(DefaultArtifactResolver.java:216)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDepe
ndencies(DefaultRepositorySystem.java:358)
... 24 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not fin
d artifact org.eclipse.persistence:eclipselink:jar:2.3.0 in central (
http://repo
.maven.apache.org/maven2)
at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(W
agonRepositoryConnector.java:947)
at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(W
agonRepositoryConnector.java:941)
at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.
run(WagonRepositoryConnector.java:669)
at org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(Run
nableErrorForwarder.java:60)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908)
at java.lang.Thread.run(Thread.java:619)
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso
lutionException
C:\Documents and Settings\Admin\RestExample>
Exactly at that location I see all those files
I have tried
doc,
rtf, txt, xml, zip, rar, css, java file extensions and none is allowed to give my output!!! Which extension is allowed to be attached here?
Result of dir at C:\Documents and Settings\Admin\.m2\repository\org\eclipse\persistence\eclipselink\2.3.0:
Unfortunately it is sometimes impossible to copy output from command line. Maybe you know where this output is available on disk C:\ at Windows XP.
Also I give result of dir at C:\Documents and Settings\Admin\.m2\repository\org\eclipse\persistence\javax.persistence\2.0.0:
I should confess that before giving this question on JavaRanch I decided to resolve it by reinstalling my maven. So, I downloaded maven and unpacked it at the same location (previous folder I removed).
It didn't make any difference. Also I wanted to update maven repository (C:\Documents and Settings\Admin\.m2\ folder) and I cut it out of C:\Documents and Settings\Admin and pasted it on my desktop. Then I realised that I didn't have any idea how to do updating and moved my .m2 folder back at C:\Documents and Settings\Admin!
dir command still works correctly but IntelliJ doesn't give now available versions of dependency which had worked well before. I don't know how to install dependency manually on IntelliJ. I had a few small projects on NetBeans where it is easy to set location of jar manually. Now I am on Eclipse Indigo (because it works fast on my Windows XP 2002) and it doesn't give me neither available artifacts nor their versions through Ctrl+Space. Maybe you now what to do on Eclipse in order to link managed bean property with
JSF component on xhtml page in maven project. EL expression doesn't work at all, ctrl+click results in nothing as well as F3. This is simple project from Chapter15 about Restful web service in "Beginning JavaEE6 with Glassfish3+".