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

Camel-cookbook-structuring-routes wont build #95

Open
sigma85 opened this issue Sep 29, 2017 · 3 comments
Open

Camel-cookbook-structuring-routes wont build #95

sigma85 opened this issue Sep 29, 2017 · 3 comments

Comments

@sigma85
Copy link

sigma85 commented Sep 29, 2017

I am trying to build the code I downloaded with mvn clean install, but I get the error.

~/IdeaProjects/camel-cookbook-examples-master/01-structuring-routes$ mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Camel Cookbook Examples :: 01 - Structuring Routes 2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ 01-structuring-routes ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce) @ 01-structuring-routes ---
[WARNING]
Dependency convergence error for org.springframework:spring-expression:4.3.10.RELEASE paths to dependency are:
+-org.camelcookbook.examples:01-structuring-routes:2.0-SNAPSHOT
+-org.apache.camel:camel-spring:2.20.0-20170915.191130-191
+-org.springframework:spring-context:4.3.10.RELEASE
+-org.springframework:spring-expression:4.3.10.RELEASE
and
+-org.camelcookbook.examples:01-structuring-routes:2.0-SNAPSHOT
+-org.apache.camel:camel-spring:2.20.0-20170915.191130-191
+-org.springframework:spring-expression:4.3.11.RELEASE

[WARNING] Rule 0: org.apache.maven.plugins.enforcer.DependencyConvergence failed with message:
Failed while enforcing releasability the error(s) are [
Dependency convergence error for org.springframework:spring-expression:4.3.10.RELEASE paths to dependency are:
+-org.camelcookbook.examples:01-structuring-routes:2.0-SNAPSHOT
+-org.apache.camel:camel-spring:2.20.0-20170915.191130-191
+-org.springframework:spring-context:4.3.10.RELEASE
+-org.springframework:spring-expression:4.3.10.RELEASE
and
+-org.camelcookbook.examples:01-structuring-routes:2.0-SNAPSHOT
+-org.apache.camel:camel-spring:2.20.0-20170915.191130-191
+-org.springframework:spring-expression:4.3.11.RELEASE
]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.347 s
[INFO] Finished at: 2017-09-29T11:23:07+02:00
[INFO] Final Memory: 17M/440M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce (enforce) on project 01-structuring-routes: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [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/MojoExecutionException
`

@wdvvgy
Copy link

wdvvgy commented Feb 12, 2018

i got a same error.

@beezerbt
Copy link

I get the same error and it seems there are multiple errors in the projects.

  1. The camel maven plugin placeholder does not work you have to explicitly set the version number in the root POM (this causes a defect in ALL the projects)
  2. After the above fix, there is a missing Payment class that is not in the Classpath anywhere
    (this is utter rubbish, and the authors should be ashamed man...how can you publish a book and not take care of the examples for a COOK BOOK ??

@beezerbt
Copy link

beezerbt commented Feb 25, 2018

The weird thing is that from the command line, mvn clean install -DskipTests succeeded!!!
In Intellij though there are multiple issues with maven dependencies.
I solved it ALL the latter build issues, except the one for 14-web-services module in Intellij.
For the latter I cannot find multiple artefacts including the Payment class.
Once I solve the latter, I will push it to my fork.

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

No branches or pull requests

3 participants