Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Failed to resolve dependencies #26

Open
filipowski opened this issue Mar 16, 2014 · 4 comments
Open

Error Failed to resolve dependencies #26

filipowski opened this issue Mar 16, 2014 · 4 comments
Labels

Comments

@filipowski
Copy link

I have a problem with running app in Grails. After "grails run-app" I got this:

Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):

  • com.enernoc.open.oadr2:oadr2-xmpp:0.3-SNAPSHOT
@thom-nic
Copy link
Contributor

Did you mvn install the dependency as described in the readme?

@thom-nic
Copy link
Contributor

So perhaps the README is not as clear as it could be, but you need to
install the oadr2-ven project first, which will make the oadr2-model
artifact available in Maven.

On Mon, May 19, 2014 at 3:46 AM, fleimgruber [email protected]:

For me this does not work either using Maven via mvn install
-Dmaven.test.skip=true described in the readme. I also tried wiping the
Maven repo and install to clean repo (full trace at the end). It seems that
there are no .pom files for oadr2-model and oadr2-xmpp.

I noticed another issue with the Java clienthttps://github.com/EnerNOC/oadr2-venthat might be related. I also use Eclipse 4.3 and its Maven plugin for
development. On oadr2-model project build, I get many errors of the form:

The attribute required is undefined for the annotation type XmlElementRef

all of which in the
/oadr2-model/target/generated-sources/xjc/com/enernoc/open/oadr2/model/v20bdir.

D:\oadr2-vtn-new> mvn install -Dmaven.test.skip=true -U
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread
count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building oadr2-vtn-groovy 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml (592 B
at 2.5 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml (678 B a
t 7.5 KB/sec)
Downloading: http://repo.grails.org/grails/plugins/com/enernoc/open/oadr2/oadr2-model/0.3-SNAPSHOT/maven-metadata.xml
Downloading: http://repo.grails.org/grails/core/com/enernoc/open/oadr2/oadr2-model/0.3-SNAPSHOT/maven-metadata.xml
Downloading: http://repo.grails.org/grails/core/com/enernoc/open/oadr2/oadr2-model/0.3-SNAPSHOT/oadr2-model-0.3-SNAPSHOT
.pom
Downloading: http://repo.grails.org/grails/plugins/com/enernoc/open/oadr2/oadr2-model/0.3-SNAPSHOT/oadr2-model-0.3-SNAPS
HOT.pom
[WARNING] The POM for com.enernoc.open.oadr2:oadr2-model:jar:0.3-SNAPSHOT is missing, no dependency information availabl
e
Downloading: http://repo.grails.org/grails/core/com/enernoc/open/oadr2/oadr2-xmpp/0.3-SNAPSHOT/maven-metadata.xml
Downloading: http://repo.grails.org/grails/plugins/com/enernoc/open/oadr2/oadr2-xmpp/0.3-SNAPSHOT/maven-metadata.xml
Downloading: http://repo.grails.org/grails/core/com/enernoc/open/oadr2/oadr2-xmpp/0.3-SNAPSHOT/oadr2-xmpp-0.3-SNAPSHOT.p
om
Downloading: http://repo.grails.org/grails/plugins/com/enernoc/open/oadr2/oadr2-xmpp/0.3-SNAPSHOT/oadr2-xmpp-0.3-SNAPSHO
T.pom
[WARNING] The POM for com.enernoc.open.oadr2:oadr2-xmpp:jar:0.3-SNAPSHOT is missing, no dependency information available

Downloading: http://repo.grails.org/grails/core/com/enernoc/open/oadr2/oadr2-xmpp/0.3-SNAPSHOT/oadr2-xmpp-0.3-SNAPSHOT.j
ar
Downloading: http://repo.grails.org/grails/core/com/enernoc/open/oadr2/oadr2-model/0.3-SNAPSHOT/oadr2-model-0.3-SNAPSHOT
.jar
Downloading: http://repo.grails.org/grails/plugins/com/enernoc/open/oadr2/oadr2-model/0.3-SNAPSHOT/oadr2-model-0.3-SNAPS
HOT.jar
Downloading: http://repo.grails.org/grails/plugins/com/enernoc/open/oadr2/oadr2-xmpp/0.3-SNAPSHOT/oadr2-xmpp-0.3-SNAPSHO
T.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.144 s
[INFO] Finished at: 2014-05-19T09:42:19+01:00
[INFO] Final Memory: 12M/222M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project oadr2-vtn-groovy: Could not resolve dependencies for project com.enernoc.open.
oadr2.vtn:oadr2-vtn-groovy:grails-app:0.1-SNAPSHOT: The following artifacts could not be resolved: com.enernoc.open.oadr
2:oadr2-model:jar:0.3-SNAPSHOT, com.enernoc.open.oadr2:oadr2-xmpp:jar:0.3-SNAPSHOT: Could not find artifact com.enernoc.
open.oadr2:oadr2-model:jar:0.3-SNAPSHOT in grails (http://repo.grails.org/grails/core) -> [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


Reply to this email directly or view it on GitHubhttps://github.com//issues/26#issuecomment-43474060
.

@fleimgruber
Copy link

@tomstrummer Thanks for checking back. I thought it was safe to delete my post since I solved it quickly after posting and there were no answers. The issue was with oadr2-xmpp not installing because of some failing tests (google talk). With a -Dmaven.test.skip=true (for oadr2-ven instead of oadr-vtn, my bad) it worked well. I just noticed you added this part explicitly to the README, thanks for the prompt response.

@thom-nic
Copy link
Contributor

Good to hear, glad you figured it out :)

On Mon, May 19, 2014 at 11:06 AM, fleimgruber [email protected]:

@tomstrummer https://github.com/tomstrummer Thanks for checking back. I
thought it was safe to delete my post since I solved it quickly after
posting. The issue was with oadr2-xmpp not compiling because of some
failing tests (google talk). With a -Dmaven.test.skip=true it worked
well. I just noticed you added this part explicitly to the README.


Reply to this email directly or view it on GitHubhttps://github.com//issues/26#issuecomment-43515912
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants