[
https://issues.apache.org/jira/browse/CAMEL-13386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16810617#comment-16810617
]
Zoran Regvart commented on CAMEL-13386:
---------------------------------------
>From 2.20 we no longer publish examples to the Maven repository
>([https://search.maven.org/search?q=g:org.apache.camel%20AND%20a:examples&core=gav)]
> we seem to have published them for some time after that only for snapshots
>but that ceased also
>([https://repository.apache.org/#nexus-search;gav~org.apache.camel.example~examples~~~)].
I think you got an error because of the missing {{org.apache.example:examples}}
POM. An error should look like:
{code}
[ERROR] Failed to execute goal on project camel-example-opentracing-service1:
Could not resolve dependencies for project
org.apache.camel.example:camel-example-opentracing-service1:jar:3.0.0-M2:
Failed to collect dependencies at
org.apache.camel.example:camel-example-opentracing-loggingtracer:jar:3.0.0-M2:
Failed to read artifact descriptor for
org.apache.camel.example:camel-example-opentracing-loggingtracer:jar:3.0.0-M2:
Could not find artifact org.apache.camel.example:examples:pom:3.0.0-M2 in
central (https://repo.maven.apache.org/maven2) -> [Help 1]
{code}
To build and run the opentracing example you need to:
{code:sh}
$ unzip apache-camel-3.0.0-M2-src.zip
$ cd apache-camel-3.0.0-M2/examples
$ mvn -N install
$ cd camel-example-opentracing
$ mvn install
$ cd service1
$ mvn spring-boot:run
{code}
There is an unrelated (I think) issue that I logged in CAMEL-13393.
> Error assembling JAR: Manifest file:
> /home/camel/camel/target/checkout/parent/target/classes/META-INF/MANIFEST.MF
> does not exist
> --------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-13386
> URL: https://issues.apache.org/jira/browse/CAMEL-13386
> Project: Camel
> Issue Type: Bug
> Components: examples
> Reporter: Gary Brown
> Assignee: Zoran Regvart
> Priority: Major
>
> Tried building the 3.0.0-M2 opentracing example, and got:
> {noformat}
> INFO]
> [INFO] --- maven-bundle-plugin:4.1.0:manifest (bundle-manifest) @
> camel-example-opentracing-loggingtracer ---
> [WARNING] Manifest
> org.apache.camel.example:camel-example-opentracing-loggingtracer:jar:3.0.0-M2
> : Unused Import-Package instructions: [org.apache.camel.*]
> [INFO]
> [INFO] --- maven-jar-plugin:3.1.1:jar (default-jar) @
> camel-example-opentracing-loggingtracer ---
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary for Camel :: Example :: OpenTracing 3.0.0-M2:
> [INFO]
> [INFO] Camel :: Example :: OpenTracing .................... SUCCESS [ 1.046
> s]
> [INFO] Camel :: Example :: OpenTracing :: LoggingTracer ... FAILURE [ 1.596
> s]
> [INFO] Camel :: Example :: OpenTracing :: Client .......... SKIPPED
> [INFO] Camel :: Example :: OpenTracing :: Service 1 ....... SKIPPED
> [INFO] Camel :: Example :: OpenTracing :: Service 2 ....... SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 3.245 s
> [INFO] Finished at: 2019-04-01T12:24:50+01:00
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-jar-plugin:3.1.1:jar (default-jar) on project
> camel-example-opentracing-loggingtracer: Error assembling JAR: Manifest file:
> /home/camel/camel/target/checkout/parent/target/classes/META-INF/MANIFEST.MF
> does not exist. -> [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
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR] mvn <goals> -rf :camel-example-opentracing-loggingtracer{noformat}
> Also got the same error when building in the examples folder, with the
> camel-example-aggregate example.
> The manifest file path mentioned in the error is included in a file
> ".flattened-pom.xml" present in many of the examples folder. This file is not
> present in 3.0.0-M1 which builds fine.
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)