I'm not sure running server from eclipse will work. Right now, we use only
command-line. But you can try what Puneet is suggesting.

Puneet, it would be good to document above details on cwiki at
https://cwiki.apache.org/confluence/display/LENS/Apache+Lens+Home . Would
be useful for new contributors as well.

Thanks
Amareshwari

On Wed, Oct 28, 2015 at 8:01 AM, Puneet Gupta <[email protected]>
wrote:

> Hi Sandeep,
>
> Many of us use intellij idea. I am still on eclipse. I mostly run the
> server from outside eclipse and remote debug via eclipse if required (java
> remote debug parameters to be added to lesn-ctl script file where jvm is
> lauched during server start). Some idea user can comment on this as well
> from their perspective.
>
> I feel it should be possible to run the server via eclipse too ( have a
> look at the script file in bin directory : lens-ctl. Check the lens-server
> start part and echo the final call to JVM. Simulate the same via eclipse
> and add required jars to class-path. The main class is
> org.apache.lens.server.LensServer)
> Do share the details if you are able to run it successfully via eclipse.
>
> One more point (which i missed in my earlier mail), Install TestNG plugin
> for eclipse (http://testng.org/doc/download.html) to run the test cases
> from eclipse.
>
> Thanks,
> Puneet Gupta
>
> On Wed, Oct 28, 2015 at 1:38 AM, Sandeep <[email protected]> wrote:
>
>> Thanks puneet,
>> This was helpful.
>> Do you guys run lens server directly from eclipse or do you only use it
>> for changing the code?
>>
>> Thanks
>> sandeep
>>
>>
>> On Tue, Oct 27, 2015 at 10:24 AM, Puneet Gupta <[email protected]>
>> wrote:
>>
>>> Hi
>>>
>>> I have noted a few points that I followed while making eclipse setup for
>>> lens few months ago. Listing them below ( Your problem should be solved by
>>> point 5)
>>>
>>> 1. Use Eclipse Luna or below. Eclipse Mars does not support lombok
>>> library as plugin/agent which is used in lens.
>>> 2. Lombok needs to be used a javaagent while running eclipse for lombok
>>> based code to compile in eclipse. This can be done in two ways
>>>
>>>    -      Manually edit eclipse.ini by adding below entry
>>>
>>>   "-javaagent:lombok.jar" Entry should be added to eclipse.ini
>>>
>>>
>>>    -       OR run lombok jar as java app (java -jar lombo.jar) and
>>>    point to eclipse.ini in the app GUI . This will update eclipse.ini
>>>    (make sure eclipse is not running)
>>>
>>>    [image: Inline image 1]
>>>
>>>
>>> 3.For easy project setup in eclipse, use lens as a Maven project inside
>>> eclipse(rather than a simple java project). For this M2Eclipse plugin
>>> is required in eclipse (It can be installed ineclipse via "Install new
>>> software" --> Add plugin .url 
>>> *http://download.eclipse.org/technology/m2e/releases
>>> <http://download.eclipse.org/technology/m2e/releases>*).
>>>
>>> 4. Once plugin is installed. Import lens directory as Existing Maven
>>> Project .
>>>
>>> [image: Inline image 1]
>>>
>>>
>>> 5. Ignore any errors (Approx 6 errors) of type "Plugin execution not
>>> covered by lifecycle configuration:
>>> org.apache.maven.plugins:maven-dependency-plugin". This can be done by
>>> selecting quick fix (option1 preferably as it will not update pom file) in
>>> eclipse.
>>> More on this in 
>>> *https://www.eclipse.org/m2e/documentation/m2e-execution-not-covered.html
>>> <https://www.eclipse.org/m2e/documentation/m2e-execution-not-covered.html>*
>>>
>>>
>>>
>>> Thanks,
>>> Puneet Gupta
>>>
>>> On Tue, Oct 27, 2015 at 10:42 PM, amareshwarisr . <[email protected]
>>> > wrote:
>>>
>>>> We have seen issues with eclipse setup. Puneet would help with this.
>>>>
>>>> Thanks
>>>> Amareshwari
>>>>
>>>> On Tue, Oct 27, 2015 at 10:37 AM, Sandeep <[email protected]> wrote:
>>>>
>>>> > hi,
>>>> > I am trying to setup lens code on eclipse, by importing a maven
>>>> project
>>>> > from the root folder.
>>>> > I am getting this error (attached).
>>>> > do you know why? is there any documentation to help setup IDE.
>>>> >
>>>> >
>>>> > -Sandeep
>>>> >
>>>>
>>>
>>>
>>> _____________________________________________________________
>>> The information contained in this communication is intended solely for
>>> the use of the individual or entity to whom it is addressed and others
>>> authorized to receive it. It may contain confidential or legally privileged
>>> information. If you are not the intended recipient you are hereby notified
>>> that any disclosure, copying, distribution or taking any action in reliance
>>> on the contents of this information is strictly prohibited and may be
>>> unlawful. If you have received this communication in error, please notify
>>> us immediately by responding to this email and then delete it from your
>>> system. The firm is neither liable for the proper and complete transmission
>>> of the information contained in this communication nor for any delay in its
>>> receipt.
>>
>>
>>
>
> _____________________________________________________________
> The information contained in this communication is intended solely for the
> use of the individual or entity to whom it is addressed and others
> authorized to receive it. It may contain confidential or legally privileged
> information. If you are not the intended recipient you are hereby notified
> that any disclosure, copying, distribution or taking any action in reliance
> on the contents of this information is strictly prohibited and may be
> unlawful. If you have received this communication in error, please notify
> us immediately by responding to this email and then delete it from your
> system. The firm is neither liable for the proper and complete transmission
> of the information contained in this communication nor for any delay in its
> receipt.
>

Reply via email to