2012-08-23 3 views
0

Play 프로젝트와 함께 Mailer 플러그인을 사용하려고하는데 약간의 문제가있었습니다. 이 프로젝트는 잘 컴파일 내 로컬 호스트에서 웹 사이트에 액세스 할 수 있습니다, 아직 일식 오류를 보여줍니다Eclipse 및 Play! 2 플러그인 관련 문제

def sendEmail = Action { 
    import play.api.Play.current 
    import com.typesafe.plugin._ 
    val mail = use[MailerPlugin].email 
    mail.setSubject("mailer") 
    mail.addRecipient("Peter Hausel Junior <[email protected]>","[email protected]") 
    mail.addFrom("Peter Hausel <[email protected]>") 
    //sends html 
    mail.sendHtml("<html>html</html>") 
    //sends text/text 
    mail.send("text") 
    //sends both text and html 
    mail.send("text", "<html>html</html>") 

    Ok(views.html.indexLoggedout()) 
    } 

오류 2 라인을 말한다 : 플러그인이 com.typesafe

여기

구축됩니다의 구성원이 아닙니다. 스칼라

val appDependencies = Seq(
    "com.typesafe" %% "play-plugins-mailer" % "2.0.4" 
) 

그리고 play.plugins는

1500:com.typesafe.plugin.CommonsMailerPlugin 

나는 프로젝트 공동 말했듯 mpiles play compile을 사용할 때 오류가있는 Eclipse 일뿐입니다. 이 문제를 어떻게 해결할 수 있습니까?

+0

eclipsify 명령을 시도 했습니까? – Ricardo

+0

예, 작동하지 않았습니다. –

+0

Eclipse에서 Scala IDE를 사용하고 있습니까? –

답변

1

다음은 해결책을 찾은 것입니다. Do :

play clean 
play compile 
play eclipsify 

그런 다음 Eclipse가 작업 영역을 다시 빌드 할 때까지 기다리십시오. 이렇게하면 모든 플러그인 종속성 문제가 해결됩니다.

+0

이 작품, 고마워요! – Amine