Ok, i finally figured out the real problem. It has got to do with these 3
files that are generated via Antlr when i run "mvn clean install" on
command line:
 
/phoenix/phoenix-core/target/generated-sources/antlr3//org/apache/phoenix/parse/PhoenixSQLLexer.java
/phoenix/phoenix-core/target/generated-sources/antlr3//org/apache/phoenix/parse/PhoenixSQL.tokens
/phoenix/phoenix-core/target/generated-sources/antlr3//org/apache/phoenix/parse/PhoenixSQLParser.java

These files are generated via antlr3. Whenever, i was doing clean and build
project in Eclipse these files were not there. Now, both 2.2.3 and
master-apache projects are building successfully in my eclipse! Thanks
everyone.
Actually, i am trying to build Phoenix project using
hbase-0.94.12-security.jar(instead of hbase-0.94.12.jar) for fixing jira
Phoenix-19. Hbase-0.94.12-security.jar is not published in Maven Repo due
to this i have to explicitly include following dependency in Phoenix 2.2.3:
     <!-- ***Start***  Dependency added because of lack of Maven Artifact
of HBase Security -->
<dependency><groupId>com.yammer.metrics</groupId><artifactId>metrics-core</artifactId><version>2.1.2</version></dependency>
<dependency><groupId>commons-configuration</groupId><artifactId>commons-configuration</artifactId><version>1.6</version></dependency>
<dependency><groupId>com.github.stephenc.high-scale-lib</groupId><artifactId>high-scale-lib</artifactId><version>1.1.1</version></dependency>
<dependency><groupId>commons-io</groupId><artifactId>commons-io</artifactId><version>2.1</version></dependency>
<dependency><groupId>commons-lang</groupId><artifactId>commons-lang</artifactId><version>2.5</version></dependency>
<dependency><groupId>commons-logging</groupId><artifactId>commons-logging</artifactId><version>1.1.1</version></dependency>
<dependency><groupId>log4j</groupId><artifactId>log4j</artifactId><version>1.2.16</version></dependency>
<dependency><groupId>org.apache.avro</groupId><artifactId>avro-ipc</artifactId><version>1.5.3</version></dependency>
<dependency><groupId>org.apache.zookeeper</groupId><artifactId>zookeeper</artifactId><version>3.4.5</version></dependency>
<dependency><groupId>org.apache.thrift</groupId><artifactId>libthrift</artifactId><version>0.8.0</version></dependency>
<dependency><groupId>org.jruby</groupId><artifactId>jruby-complete</artifactId><version>1.6.5</version></dependency>
<dependency><groupId>org.slf4j</groupId><artifactId>slf4j-api</artifactId><version>1.4.3</version></dependency>
<dependency><groupId>org.slf4j</groupId><artifactId>slf4j-log4j12</artifactId><version>1.4.3</version></dependency>
<dependency><groupId>org.jamon</groupId><artifactId>jamon-runtime</artifactId><version>2.3.1</version></dependency>
<dependency><groupId>com.google.protobuf</groupId><artifactId>protobuf-java</artifactId><version>2.4.0a</version></dependency>
<dependency><groupId>com.sun.jersey</groupId><artifactId>jersey-core</artifactId><version>1.8</version></dependency>
<dependency><groupId>com.sun.jersey</groupId><artifactId>jersey-json</artifactId><version>1.8</version></dependency>
<dependency><groupId>com.sun.jersey</groupId><artifactId>jersey-server</artifactId><version>1.8</version></dependency>
<dependency><groupId>javax.xml.bind</groupId><artifactId>jaxb-api</artifactId><version>2.1</version></dependency>
<!-- ***End***  Dependency added because of lack of Maven Artifact of HBase
Security -->

Still it seems like there is a long way to go before Phoenix-19 is fixed. I
am also going to try to modify pom files of master-apache branch also and
try to get it compiling with hbase-0.94.12-security.jar.

Thanks,
Anil Gupta



On Wed, Apr 16, 2014 at 3:22 PM, James Taylor <[email protected]>wrote:

> FWIW, my typical development process wrt moving to a new version/branch of
> Phoenix in Eclipse is to delete all the top level projects in Eclipse and
> then re-import them through File->Import...->Maven->Existing Maven
> Projects. I find that Eclipse gets confused easily, and this is a simple
> way to get it "unconfused".
>
> Thanks,
> James
>
>
> On Tue, Apr 15, 2014 at 11:56 PM, anil gupta <[email protected]>
> wrote:
>
> > I just see this one when i run "find . -name antlr3" command under src :
> > ./src/main/antlr3
> >
> >
> > On Tue, Apr 15, 2014 at 12:10 AM, Anoop John <[email protected]>
> > wrote:
> >
> > > So which all are the src directories under phoenix-core project in
> > eclipse?
> > >
> > > -Anoop-
> > >
> > > On Tue, Apr 15, 2014 at 12:37 PM, anil gupta <[email protected]>
> > > wrote:
> > >
> > > > Hi Anoop,
> > > >
> > > > Previously, i was trying 2.2.3 branch which doesn't have phoenix-core
> > > > project. But, now i am also trying to set up master-apache branch
> > phoenix
> > > > on my Eclipse. I don't see both the directories that you mentioned
> > under
> > > > src. Are you sure that above path are correct? Can you also explain
> me
> > > why
> > > > it happens?
> > > >
> > > > Thanks,
> > > > Anil Gupta
> > > >
> > > >
> > > > On Sat, Apr 12, 2014 at 11:37 PM, Anoop John <[email protected]>
> > > > wrote:
> > > >
> > > > > Anil
> > > > >         Just see phoenix-core project in Eclipse and configure its
> > > build
> > > > > path.  I guess u will see
> > phoenix-core/target/generated-sources/antlr3
> > > >  as
> > > > > well as
> > > > >
> phoenix-core/target/generated-sources/antlr3/org/apache/phoenix/parse
> > > > > under the src.    Just delete the second one. Things will work...
> > > > >
> > > > > -Anoop-
> > > > >
> > > > > On Sat, Apr 12, 2014 at 10:40 PM, anil gupta <
> [email protected]>
> > > > > wrote:
> > > > >
> > > > > > Hi All,
> > > > > >
> > > > > > I am setting up Phoenix 2.2.3 on my eclipse. I am getting
> following
> > > > error
> > > > > > swhile building project:
> > > > > > 1. PhoenixSQLLexer cannot be resolved to a type in SQLParser.java
> > > > > > 2. The import com.salesforce.phoenix.parse.PhoenixSQLParser
> cannot
> > be
> > > > > > resolved    PhoenixParserException.java
> > > > > >
> > > > > > Please help me in resolving these errors.
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Thanks & Regards,
> > > > > > Anil Gupta
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Thanks & Regards,
> > > > Anil Gupta
> > > >
> > >
> >
> >
> >
> > --
> > Thanks & Regards,
> > Anil Gupta
> >
>



-- 
Thanks & Regards,
Anil Gupta

Reply via email to