Announcement Announcement Module
No announcement yet.
What IDE do you use for spring-security-saml-master? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • What IDE do you use for spring-security-saml-master?

    I tried opening it in Eclipse but it didn't seem to behave. What IDE do you use? If it's Eclipse, what optional bits might you have?

  • #2
    Have you tried running "gradlew eclipse"? It will generate the Eclipse project files for you. Although personally I'm an IntelliJ fan



    • #3
      I hadn't. I have now. Thanks very much.


      • #4
        i have problems with STS and gradle.

        i have imported spring-security-saml as a gradle project in STS (with gradle module)

        then run "gradlew.bat eclipse" as you suggest.

        but project doesnt "run on server" (local eclipse tomcat)
        i'm not talking about generating the .war and deploy but runing directly in eclipse.

        i then tried to do this in spring-security-saml2-sample:

        apply plugin: 'war'
        apply plugin: 'eclipse'
        apply plugin: 'eclipse-wtp'

        the project now can be "run on server" but failet to start, it has a lib problems,
        first of all:
        java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListe ner

        is there an easy way to import and run the project on local eclipse tomcat as there was for the maven/pom version ?

        thanks in advance



        • #5
          I will answer to the question myself; I know of gradle existence since you have introduced it in the project but i really think eclipse doesnt like Gradle ..for conflict resolution.

          So if you in

          compile "$springSecurityVersion"

          and in

          compile project(":spring-security-saml2-core"),

          you will get multiple spring libs of different versions es 312, 307 ...

          to run it on eclipse-tomcat you must do resolution yourself ...


          in spring-security-saml:

          configure(allprojects) { project ->
          group = ""
          apply plugin: 'eclipse-wtp' // for run it on server local tomcat


          in spring-security-saml2-core

          description = "Spring Security SAML v2 library"
          dependencies {

          compile "org.springframework:spring-core:$springVersion", //to avoid conflict resolution
          compile "$springSecurityVersion",
          compile ("$springSecurityVersion") {
          exclude group: "org.springframework", module: "spring-jdbc"
          exclude group: "org.springframework", module: "spring-tx"
          compile ("org.opensaml:opensaml:2.5.3") {
          exclude group: "org.slf4j", module: "jcl-over-slf4j"
          exclude group: "org.slf4j", module: "log4j-over-slf4j"
          exclude group: "org.apache.xerces", module: "xml-apis"
          exclude group: "org.apache.xerces", module: "serializer"
          provided "javax.servlet:servlet-api:2.5"

          testCompile "org.slf4j:slf4j-log4j12:1.6.3",
          testCompile ("org.springframework:spring-test:$springVersion") {
          exclude group: "commons-logging", module: "commons-logging"

          am i doing this right ?


          • #6

            I've just been playing around with this a bit and e.g. adding the following into dependencies of saml2-sample/build.gradle produces a neat war with Spring 3.2.2 only (no sign of 3.0.7).

            compile "org.springframework:spring-webmvc:3.2.2.RELEASE"
            Also running "gradle eclipse" gives me a project file without any duplicates.



            • #7
              I have been using Netbeans 7.3 with spring related gradle projects and it has been working very well. Gradle support is new in Netbeans 7.3. NB 7.3 does hang occasionally which seems to be an unrelated bug. IN such cases I just kill the IDE process and restart. In general Netbeans IDE provides much more natural supports for maven and gardle compared to Eclipse in my experience.