Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

problem on pom file

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

i have downloaded the program from github ModeShape/modeshape-examples ยท GitHub

and when i import into eclipse and if do maven test i have the following errors :

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.modeshape:modeshape-web-explorer:war:3.7-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: javax.jcr:jcr:jar -> version 2.0 vs (?) @ line 72, column 15
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.modeshape:modeshape-common:jar -> version 3.7.4.Final vs 3.7.2.Final @ line 77, column 15
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: joda-time:joda-time:jar -> version 1.6.2 vs (?) @ line 83, column 15
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.modeshape:modeshape-web-jcr:jar -> duplicate declaration of version 3.7.2.Final @ line 90, column 15
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.slf4j:slf4j-api:jar -> version 1.6.1 vs (?) @ line 95, column 15
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.slf4j:slf4j-log4j12:jar -> version 1.6.1 vs (?) @ line 99, column 15
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: log4j:log4j:jar -> version 1.2.16 vs (?) @ line 103, column 15
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: junit:junit-dep:jar -> version 4.10 vs (?) @ line 107, column 15
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.googlecode.sardine:sardine:jar -> version 146 vs (?) @ line 111, column 15
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.google.gwt:gwt-servlet:jar -> version 2.5.1 vs (?) @ line 115, column 15
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.googlecode.sardine:sardine:jar -> duplicate declaration of version 146 @ line 144, column 15
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.slf4j:slf4j-log4j12:jar -> duplicate declaration of version 1.6.1 @ line 159, column 15
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.smartgwt:smartgwt-skins:jar -> version (?) vs 2.4 @ line 164, column 15
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: javax.validation:validation-api:jar -> duplicate declaration of version 1.0.0.GA @ line 169, column 15
[WARNING] 'parent.relativePath' of POM org.modeshape:modeshape-parent:3.7-SNAPSHOT (C:\Projet_Gestion_Documents\Projects\TEST_MODSHAPE\modeshape-master\modeshape-parent\pom.xml) points at org.modeshape:modeshape instead of org.jboss:jboss-parent, please verify your project structure @ org.modeshape:modeshape-parent:3.7-SNAPSHOT, C:\Projet_Gestion_Documents\Projects\TEST_MODSHAPE\modeshape-master\modeshape-parent\pom.xml, line 3, column 13
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:gwt-maven-plugin is missing. @ line 193, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building ModeShape Repository Explorer (Bare) 3.7-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.modeshape:modeshape-jcr-api:jar:3.7-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.modeshape:modeshape-common:jar:3.7-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for smartgwt:smartgwt:jar:2.4 is missing, no dependency information available
[WARNING] The POM for org.modeshape:modeshape-web-jcr:jar:3.7-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.974s
[INFO] Finished at: Mon Jun 30 15:46:22 CEST 2014
[INFO] Final Memory: 8M/152M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project modeshape-web-explorer: Could not resolve dependencies for project org.modeshape:modeshape-web-explorer:war:3.7-SNAPSHOT: Could not find artifact org.modeshape:modeshape-jcr-api:jar:3.7-SNAPSHOT -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException



this is my pom file



advance thanks
 
Saloon Keeper
Posts: 12254
259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The program requires org.modeshape:modeshape-jcr-api:jar:3.7-SNAPSHOT to be in your local repository.

This is a module of the master project. You can install it in the local repository by opening the master project and building it once.

You should also heed the warnings in the POM, you're redeclaring dependencies.
 
Dass Leyo Antoniraj
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

hello i'm new to this environment and i dont know what this sentence means You can install it in the local repository by opening the master project and building it once. .
what i understood is i should import the pom of parent and rebuild it ?
could you please correct me if i'm wrong
 
Stephan van Hulst
Saloon Keeper
Posts: 12254
259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The system on which you're building Maven projects contains a local repository. You can find it in your user folder, under .m2/repository. When Maven downloads artifacts, or installs your own artifacts, it puts them in there.

The project has a dependency on org.modeshape:modeshape-jcr-api:jar:3.7-SNAPSHOT. Maven will use the artifact in your local repository, or try to download it when it can not be found.

You can do a few things here. Either install the artifact yourself (open the project at modeshape-master and build it), or have Maven try to download it by specifying the remote repository where it can be found:
 
Stephan van Hulst
Saloon Keeper
Posts: 12254
259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will probably run into a lot of problems because you're forking a development branch. You should probably fork a release instead: https://github.com/ModeShape/modeshape/releases/tag/modeshape-3.8.0.Final
 
Dass Leyo Antoniraj
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for your reply.
as soon as i downloaded the project and imported into eclipse i have the follwoing error
error.jpg
[Thumbnail for error.jpg]
 
Stephan van Hulst
Saloon Keeper
Posts: 12254
259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure if I can help you with that, I rarely use Eclipse especially because I dislike how badly it works with Maven.

I would recommend first trying to install master pom by going to the modeshape main folder and executing mvn install.

Afterwards, you can use a maven archetype to make the project into an eclipse project. Do a Google search to find out how to exactly achieve this.
 
Dass Leyo Antoniraj
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok thank you.
just one question whether you have already executed and it works ?
thank you once again
 
Stephan van Hulst
Saloon Keeper
Posts: 12254
259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In NetBeans, sure.
 
Dass Leyo Antoniraj
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry to ask you like
is it possible send some screen shots how the web explorer works
sorry and thanks
 
Dass Leyo Antoniraj
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when i use mvn install in the comand prompt

i have this error
err.jpg
[Thumbnail for err.jpg]
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First line of your screen shot, and the line you have underlined, say it all: after the sources for the "JCR Repository" project were compiled, the unit tests were run and there were 22 failures and 2 errors. You have to fix those unit test problems before the build will continue.
 
Drove my Chevy to the levee but the levee was dry. A wrung this tiny ad and it was still dry.
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic