Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DEF1A18322 for ; Thu, 3 Mar 2016 15:43:53 +0000 (UTC) Received: (qmail 32577 invoked by uid 500); 3 Mar 2016 15:43:53 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 32524 invoked by uid 500); 3 Mar 2016 15:43:53 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 32512 invoked by uid 99); 3 Mar 2016 15:43:53 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Mar 2016 15:43:53 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id E3DFBC1500 for ; Thu, 3 Mar 2016 15:43:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.821 X-Spam-Level: X-Spam-Status: No, score=-0.821 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id xwyBk5TT7bSW for ; Thu, 3 Mar 2016 15:43:52 +0000 (UTC) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com [209.85.217.174]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id A4CD25F56E for ; Thu, 3 Mar 2016 15:43:51 +0000 (UTC) Received: by mail-lb0-f174.google.com with SMTP id bc4so28128617lbc.2 for ; Thu, 03 Mar 2016 07:43:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=svqKowL0Udvs/fhIcBl69FUNWZdu8xjFGe4pBRWh/ic=; b=QLlPynsvTWR39UdJxI7mc771UtXfDexYIkx1Sd6pNEEsCedjiuTN6rNgHlBTBcHMK2 jIut1UIOuylNWLoaO+tEeEPpFvnAOIERJek5r1Ewh0t0vtLahpnVWsWSMON0fVAeclhk 8bNteiN4ycsEnOexJvxlBodC/Ke+dlAklZSitJuyi+brogMJqB8bCevsQZPS7HWPaAkJ H3I4LOM9/JBabVilH13pXXfJaVh9tHO7dek+a+8HQV4VYNNxOqrZpGtOryg7LMZzvehu 2YzRYw5ASPy1/7zdFZQuOS4z5fo8V+ZqM2Y16j96OcP6Gh0xWWmyp0ckWNA9JdYFxwvB Grgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=svqKowL0Udvs/fhIcBl69FUNWZdu8xjFGe4pBRWh/ic=; b=TJnC+d8Wb3S9w0covohWvlHpC4DoQy8n/0OIkA1ytgZ8VTfZ6CpsAydVX7puds45ld GMFq7yCrm/cIff7SJB3wWVR2N0gMso6bmyzh27PMUvSjCFeQgDop4cT+k079ydVkKkIN Kd1Om6IeoCF/h/Ss6SX069Jv2rYQHLGknYz8fdCNAYn0fGhpYs677P4D5XSwQcN/mmsh kunfHMDhiCRCR8yt1BIFciZFMoGPfNyXo13bRVnOiRZAbcsQG/Vu0oZ/Nx6nE2GS/juj SQw0hpKcp1QMurYDsn9rEM1E2RYAfVhSqsmMx5UI4CGAyZhB7Go1+kjkfD+uHCOhu9+N ph0Q== X-Gm-Message-State: AD7BkJJDjJXxxCksi0o92wuo8f4kD57SDj+YCRrI2RRhcVx9dIiL2qYA82Lh0sewZmDILCpfz3wuxvknyF4u9w== MIME-Version: 1.0 X-Received: by 10.25.161.131 with SMTP id k125mr1258553lfe.83.1457019830010; Thu, 03 Mar 2016 07:43:50 -0800 (PST) Received: by 10.114.109.5 with HTTP; Thu, 3 Mar 2016 07:43:49 -0800 (PST) In-Reply-To: References: Date: Thu, 3 Mar 2016 16:43:49 +0100 Message-ID: Subject: Re: yaml dataformat From: lb To: dev@camel.apache.org Content-Type: text/plain; charset=UTF-8 Hi, I've finally managed to solve this issue by including yaml-snakeyaml in org.apache.camel.maven.packaging.PackageDataFormatMojo's special data formats handling: private static String asModelName(String name) { // special for some data formats if ("json-gson".equals(name) || "json-jackson".equals(name) || "json-xstream".equals(name)) { return "json"; } else if ("bindy-csv".equals(name) || "bindy-fixed".equals(name) || "bindy-kvp".equals(name)) { return "bindy"; } else if ("zipfile".equals(name)) { // darn should have been lower case return "zipFile"; } else if ("yaml-snakeyaml".equals(name)) { return "yaml"; } return name; } On Wed, Mar 2, 2016 at 5:24 PM, lb wrote: > Hi, > > I'm writing a yaml dataformat which is implemented like the json > dataformat so with the possibility to choose the library to use (even > as today there is only one implementation) and I've an issue as my > component fails to install because of the following error: > > Error loading dataformat model from camel-core. Reason: > java.io.FileNotFoundException: > /opt/maven-repo/org/apache/camel/camel-core/2.17-SNAPSHOT/camel-core-2.17-SNAPSHOT.jar/org/apache/camel/model/dataformat/yaml-snakeyaml.json > (Not a directory) > > > If I change the service defintion name in META-INF from yaml-snakeyaml > to yaml it works however for json like data-formats, the service name > is - as example - json-gson. > > You can find my code here: > https://github.com/lburgazzoli/apache-camel/commit/b3d1e1b81fc599cf536091d9108974f229b4fd61 > > > Am I missing something ? > > > Best regards, > Luca