Thank you. I finally figure out a solution, which may help others to setup 
up server quickly. But I think apereo still needs a better document to 
describe how to getting start. ^ ^

First, import cas-overlay-template project into Eclipse:

        Eclipse->File->Import->Existing Maven Projects->Select 
cas-overlay-template project.
        
       change 
src/main/webapp/WEB-INF/spring-configuration/propertyFileConfigurer.xml to 
meet your need, I debug it on windows, so I change it like this:
   
        <util:properties id="casProperties" 
location="file:D:\\git\\cas-overlay-template\\etc\\cas.properties" />
      
       Right click project->Debug as ->Debug on Server-> choose Tomcat 
8.0->add cas-overlay->Finish, make sure it works, visit 
http://localhost:8080/cas/login with casuser/Mellon.

Second, add the follow to pom.xml , which add all dependencies to your 
Maven Dependencies:

       <dependencies>
        <dependency>
            <groupId>org.apereo.cas</groupId>
            <artifactId>cas-server-support-yubikey</artifactId>
            <version>5.0.0</version>
        </dependency>
        
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
            <version>1.4.1.RELEASE</version>
            <scope>provided</scope>
        </dependency>
        
        <dependency>
            <groupId>org.jasig.cas</groupId>
            <artifactId>cas-server-webapp</artifactId>
            <version>${cas.version}</version>
            <type>war</type>
            <scope>runtime</scope>
        </dependency>
    </dependencies>

    important ! delete Servers, and setup it again like former.  
    Debug As->Debug on Server->choose tomcat 8.0->add cas-overlay->Finish.
    add a breakpoint on DispatcherServlet.doDispatch(), it works~

On Thursday, November 10, 2016 at 5:18:34 PM UTC+8, john c wrote:
>
> add some cas dependency to your project,e.g.
>
> <dependency>
>     <groupId>org.apereo.cas</groupId>
>     <artifactId>cas-server-support-yubikey</artifactId>
>     <version>${cas.version}</version>
> </dependency>
> this will import those cas core library to project,and you will see them 
> in "Java Resources/Libraries/Maven Dependencies"
>
> then, you can set debug point 
> ,e.g. 
> org.jasig.cas.authentication.PolicyBasedAuthenticationManager.PolicyBasedAuthenticationManager.authenticateInternal
>  
>
>
> 在 2016年11月9日星期三 UTC+8下午2:28:32,Dong Wenting写道:
>>
>> I'm a newer to cas. I have succeeded in importing cas-overlay project 
>> into eclipse, but I want to debug the source file. Maven dependencies is 
>> empty because of using maven overlay. How can I debug cas server in eclipse 
>> ? Thank you for answering! 
>> <https://lh3.googleusercontent.com/-iRQbQ7k9Q7k/WCLByuy8HqI/AAAAAAAAAAg/mzRTdU6PyboqOXxYyREKi5pPac6-dzHPgCLcB/s1600/QQ%25E6%2588%25AA%25E5%259B%25BE20161109102542.png>
>>
>>
>>
>> <https://lh3.googleusercontent.com/-iRQbQ7k9Q7k/WCLByuy8HqI/AAAAAAAAAAg/mzRTdU6PyboqOXxYyREKi5pPac6-dzHPgCLcB/s1600/QQ%25E6%2588%25AA%25E5%259B%25BE20161109102542.png>
>>
>>
>> <https://lh3.googleusercontent.com/-iRQbQ7k9Q7k/WCLByuy8HqI/AAAAAAAAAAg/mzRTdU6PyboqOXxYyREKi5pPac6-dzHPgCLcB/s1600/QQ%25E6%2588%25AA%25E5%259B%25BE20161109102542.png>
>>  
>> <https://lh3.googleusercontent.com/-nXeWzYD310g/WCLB9ffTuOI/AAAAAAAAAAk/uW5JSvinuI8fR1XU3-OYWN6hEd-KktuDQCLcB/s1600/QQ%25E6%2588%25AA%25E5%259B%25BE20161109102700.png>
>>
>>
>> -- 
>> - CAS gitter chatroom: https://gitter.im/apereo/cas
>> - CAS mailing list guidelines: 
>> https://apereo.github.io/cas/Mailing-Lists.html
>> - CAS documentation website: https://apereo.github.io/cas
>> - CAS project website: https://github.com/apereo/cas
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "CAS Community" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to cas-user+u...@apereo.org.
>> To view this discussion on the web visit 
>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/56f3bde1-0009-4a9e-beb1-79f5106f79da%40apereo.org
>>  
>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/56f3bde1-0009-4a9e-beb1-79f5106f79da%40apereo.org?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/2ad97edc-021b-4139-af90-ce7e135a4f29%40googlegroups.com.

Reply via email to