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 819791051A for ; Sat, 10 Aug 2013 20:14:45 +0000 (UTC) Received: (qmail 47462 invoked by uid 500); 10 Aug 2013 20:14:45 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 47424 invoked by uid 500); 10 Aug 2013 20:14:45 -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 47416 invoked by uid 99); 10 Aug 2013 20:14:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Aug 2013 20:14:45 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=URI_HEX X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Aug 2013 20:14:41 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1V8FXz-00044V-OL for dev@camel.apache.org; Sat, 10 Aug 2013 13:13:59 -0700 Date: Sat, 10 Aug 2013 13:13:59 -0700 (PDT) From: Babak Vahdat To: dev@camel.apache.org Message-ID: <1376165639747-5737074.post@n5.nabble.com> In-Reply-To: References: <1375837296061-5736873.post@n5.nabble.com> <9E94BB06C75941908CE42DB57341BEE3@gmail.com> <31377402-1F64-4801-816F-92B38FED353A@swissonline.ch> Subject: Re: About the spi-annotations dependency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I used to have the same problem with eclipse BUT using Java 6 for which I'v= e added a "note" about it while ago (see the green box below): http://camel.apache.org/building.html That said your Java 7 build seems to be pretty old which may cause this problem (I've got /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre) Can you try setting the apt profile explicitly to see if that would help: mvn -Papt idea:clean idea:idea Babak saltnlight5 wrote > Hi Babak, >=20 > I use these: >=20 > zemian@ZEMIANs-iMac:~/projects/camel > bash> mvn -version > Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500) > Maven home: /Users/zemian/apps/maven > Java version: 1.7.0_11, vendor: Oracle Corporation > Java home: > /Library/Java/JavaVirtualMachines/jdk1.7.0_11.jdk/Contents/Home/jre > Default locale: en_US, platform encoding: UTF-8 > OS name: "mac os x", version: "10.8.4", arch: "x86_64", family: "mac" >=20 >=20 >=20 > On Sat, Aug 10, 2013 at 10:01 AM, Babak Vahdat > < > babak.vahdat@ > >wrote: >=20 >> Hi >> >> Which Java version do you use for building, 6 or 7? >> >> Babak >> >> Am 10.08.2013 um 14:51 schrieb Zemian Deng < > saltnlight5@ > >: >> >> > Willem, >> > >> > I will vote to make spi-annotation non-optional in camel-core since it >> only >> > has 4 classes, and they are already used in quite of few sub modules. >> > >> > But if you stick to optional in camel-core, then any modules that uses >> > @UriParam should has a hard dependency on spi-annotation, not optional= . >> We >> > should add spi-annotation in camel-jms/pom.xml as regular dependency. >> Here >> > is a list of modules that I can see using @UriParam: >> > >> > camel-jms >> > camel-salesforce >> > camel-sap-netweaver >> > camel-sjms >> > camel-sql >> > camel-ssh >> > camel-twitter >> > camel-weather >> > camel-yammer >> > >> > Same need to be check on other annotations usage, which I haven't >> check. >> > >> > >> > >> > On Sat, Aug 10, 2013 at 3:08 AM, Willem jiang < > willem.jiang@ > > >wrote: >> > >> >> >> >> How about add the spi-annotation dependency as optional in the >> >> camel-jms/pom.xml? >> >> >> >> -- >> >> Willem Jiang >> >> >> >> Red Hat, Inc. >> >> FuseSource is now part of Red Hat >> >> Web: http://www.fusesource.com | http://www.redhat.com >> >> Blog: http://willemjiang.blogspot.com >> (http://willemjiang.blogspot.com/ >> ) >> >> (English) >> >> http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) >> >> Twitter: willemjiang >> >> Weibo: =E5=A7=9C=E5=AE=81willem >> >> >> >> >> >> >> >> >> >> >> >> On Wednesday, August 7, 2013 at 9:01 AM, saltnlight5 wrote: >> >> >> >>> Hi, >> >>> >> >>> I have a question on camel pom usage. >> >>> >> >>> In camel-core/pom.xml, the spi-annotations dependency is added as >> >>>=20 > > true > > , however other modules such as >> >> camel-jms/pom.xml >> >>> do not include this dependency explicitly. Is that intentional? How >> does >> >>> camel-jms resolve this spi-annotations jar if it's only optional fro= m >> the >> >>> core? >> >>> >> >>> When I use IntelliJ IDE to open the camel project, and it complains >> the >> >>> @UriParam is not resolvable in JmsEndpoint.java until I add this >> >>> spi-annotations into camel-jms/pom.xml. I wonder if any of you >> experience >> >>> this, or just my misunderstanding of the maven usage? >> >>> >> >>> Zemian >> >>> >> >>> >> >>> >> >>> -- >> >>> View this message in context: >> >> >> http://camel.465427.n5.nabble.com/About-the-spi-annotations-dependency-t= p5736873.html >> >>> Sent from the Camel Development mailing list archive at Nabble.com ( >> >> http://Nabble.com). >> >> >> >> >> >> >> >> >> -- View this message in context: http://camel.465427.n5.nabble.com/About-the-s= pi-annotations-dependency-tp5736873p5737074.html Sent from the Camel Development mailing list archive at Nabble.com.