Announcement Announcement Module
Collapse
No announcement yet.
What IDE do you use for spring-security-saml-master? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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

    Cheers,
    Vladi

    Comment


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

      Comment


      • #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

        alessandro

        Comment


        • #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

          (spring-security-saml2-core)
          compile "org.springframework.security:spring-security-core:$springSecurityVersion"

          and in

          (spring-security-saml2-sample)
          compile project(":spring-security-saml2-core"),
          "org.springframework:spring-core:$springVersion",

          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 = "org.springframework.security.extensions"
          ......
          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
          "org.springframework:spring-beans:$springVersion",
          "org.springframework:spring-context:$springVersion",
          "org.springframework:spring-aop:$springVersion",
          "org.springframework:spring-web:$springVersion",
          "org.springframework:spring-webmvc:$springVersion",
          "org.springframework.security:spring-security-config:$springSecurityVersion",
          "org.slf4j:slf4j-log4j12:$slf4jVersion",
          "javax.servlet:jstl:1.2"
          compile "org.springframework.security:spring-security-core:$springSecurityVersion",
          "org.springframework.security:spring-security-config:$springSecurityVersion",
          "org.slf4j:slf4j-api:$slf4jVersion"
          compile ("org.springframework.security:spring-security-web:$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",
          "org.easymock:easymock:2.4",
          "junit:junit:4.4",
          "commons-logging:commons-logging:1.1.1",
          "xmlunit:xmlunit:1.0"
          testCompile ("org.springframework:spring-test:$springVersion") {
          exclude group: "commons-logging", module: "commons-logging"
          }
          }
          -----------------------------------------------------------

          So,
          am i doing this right ?

          Comment


          • #6
            Hi,

            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).

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

            Vladi

            Comment


            • #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.

              Comment

              Working...
              X