• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

The POM for org.eclipse.persistence:eclipselink:jar:2.3.0 is missing

 
Ranch Hand
Posts: 514
1
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could you help me to resolve one issue?

The problem is:

Downloading: http://repo.maven.apache.org/maven2/org/eclipse/persistence/eclipse
link/2.3.0/eclipselink-2.3.0.pom
[WARNING] The POM for org.eclipse.persistence:eclipselink:jar:2.3.0 is missing,
no dependency information available

Downloading: http://repo.maven.apache.org/maven2/org/eclipse/persistence/eclipse
link/2.3.0/eclipselink-2.3.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.781s
[INFO] Finished at: Wed May 23 08:56:44 GMT+02:00 2012
[INFO] Final Memory: 3M/15M

It's quite strange because when I go into maven repositories -- .m2 /repository /org /eclipse /persistence /eclipselink
I see folder "2.3.0" with many files inside including "eclipselink-2.3.0.jar", "eclipselink-2.3.0.pom"

Fragment from pom.xml that declares missing dependency:
<dependency>
<!-- Dependency for PersistenceProvider -->
<groupId>org.eclipse.persistence</groupId>
<artifactId>eclipselink</artifactId>
<version>2.3.0</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But Maven is not trying to get that POM from your local repository, it is trying to get it from Maven Central (notice the word "downloading" and the URL given), and it doesn't exist there. I would need to know more about your build to give a better reply. Perhaps the full build output, or even the output when the -X option is used.

Are you sure that the local repository location has not been changed?

By the way, this has nothing to do with IDEs, so moving to the build tools forum.
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Or wait, I don't think that the "missing" pom has anything to do with why the build failed. The full build output would really help...
 
Bin Smith
Ranch Hand
Posts: 514
1
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Peter Johnson wrote:Or wait, I don't think that the "missing" pom has anything to do with why the build failed. The full build output would really help...



Hi!

I am much grateful that you decided to assist me. These are only my first steps in maven.
So, here is my full output from command-line

C:\Documents and Settings\Admin>cd /restexample

C:\Documents and Settings\Admin\RestExample>mvn package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building RestfulExample 1.0
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.eclipse.persistence:eclipselink:jar:2.3.0 is missing,
no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.360s
[INFO] Finished at: Thu May 24 21:53:19 GMT+02:00 2012
[INFO] Final Memory: 2M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project RestExample: Could not resolve depende
ncies for project com.RestExample:RestExample:war:1.0: Failure to find org.eclip
se.persistence:eclipselink:jar:2.3.0 in http://repo.maven.apache.org/maven2 was
cached in the local repository, resolution will not be reattempted until the upd
ate interval of central has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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

After the first execution today(25.05) I have a little different output. Look:
C:\Documents and Settings\Admin\RestExample>mvn package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building RestfulExample 1.0
[INFO] ------------------------------------------------------------------------
Downloading: http://repo.maven.apache.org/maven2/org/eclipse/persistence/eclipse
link/2.3.0/eclipselink-2.3.0.pom
[WARNING] The POM for org.eclipse.persistence:eclipselink:jar:2.3.0 is missing,
no dependency information available
Downloading: http://repo.maven.apache.org/maven2/org/eclipse/persistence/eclipse
link/2.3.0/eclipselink-2.3.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.000s
[INFO] Finished at: Fri May 25 16:45:02 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]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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
Here is my pom.xml:

 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The difference between the first and second run is that on the first run, when it could not find the JAR file in Maven Central, Maven kept track of when it last looked for the JAR. Maven also has a timer and it will not look for the JAR again until the timer runs out. So that is why the second error message is different - it is saying that you don't have the JAR in the local repository and that it is not going to look in Maven Central because the timer has not run out.

Try running the build again, this time adding the -X option. That will print out a lot of stuff. One of the things it will print out is the location of the local repository. Make sure that Maven is looking at the proper location.

Also, do a dir of C:\Documents and Settings\Admin\.m2\org\eclipse\persistence\javax.persistence\2.0.0 and post the results.

By the way, I reformatted your pom.xml file - reading the unformatted one you posted was impossible.
 
Bin Smith
Ranch Hand
Posts: 514
1
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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+".
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please post the contents of eclipselink-2.3.0.pom. It could be that the POM is referencing another artifact and that is what cannot be found. I have found that the error messages in that case are misleading. Loading an artifact into your local repository manually, when it is not available in a global repository, is always tricky. By the way, if the book uses an artifact that isn't in Maven Central, and the book recommends using Maven for builds, didn't the book also give the URL for a global repository that contains those artifacts?

If you want to move the location of the local repository, modify the <localRepository> value in the settings.xml file. See this: http://maven.apache.org/settings.html
Reinstalling Maven, whether to the same directory or different one makes little difference because very little of Maven actually comes with the installation. Mostly what you get are the framework and some core plugins. All the rest is downloaded from Maven Central and stored in the local repository. Moving the .m2/repository directory without also changing settings.xml simply causes Maven to download all of the files again.
In Eclipse, I assume that you have the m2e plugin installed (with recent version of Eclipse IDE For Java Developers, it comes pre-installed). Check the Maven preferences (Window | Preferences | Maven) to see how it is configured. I usually change the Installations section to reference the copy of Maven (I'm using 3.0.4) - the 3.0.2 version that comes with m2e has some issues with dependency resolution with multi-module projects. I also verify in the User Settings that my local repository is referenced correctly (I always move my local repository out of my home directory). Usually when you do both of those things that you run into fewer issues in Eclipse (though archetype resolution can still be tricky).
 
Bin Smith
Ranch Hand
Posts: 514
1
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello!

You are right!!! The book really gives urls to download repositories. They are in parent pom and I didn't include them. This is library exactly for me:

So dependency :

includes probably all packages for org.eclipse.persistence involving org.eclipse.persistence.jpa, org.eclipse.persistence.internal, org.eclipse.persistence.transaction, org.eclipse.persistence.sessions, org.eclipse.persistence.platform and so on!
Content of eclipselink-2.3.0.pom I have examined. As for me, everything is correct there.
After I added this correct <repository> I executed "mvn package" resulting in BUILD SUCCESS! After a few reclamations I ended with NO warnings! Only INFO!
Then I redeployed my RestExample-1.0.war on Glassfish. After a few hours of careful mental work I got required result! Now I am able to open XHTML page to fill in form that creates new book and stores it in database and displays table of all books on other XHTML page. After all there is a miracle. I can use power of Restful Web Service. I type path where I include id of certain book and can see XML represenation of required book. XML is not very exciting, but I can create my own restful web service after all!
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Now you are asking a JSF question. We have a forum specifically for those questions. I would split off your last post and move it to the JSF forum, but that post also provides the results of how you fixed your original issue. So instead, please repeat only the JSF portion of your question at: https://coderanch.com/forums/f-82/JSF
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic