Results 1 to 10 of 10

Thread: The current version of Spring Social Showcase build fails

Hybrid View

  1. #1

    Default The current version of Spring Social Showcase build fails

    The following line breaks the build
    Code:
    @EnableLinkedIn(appId="${linkedin.consumerKey}", appSecret="${linkedin.consumerSecret}")
    due to the undefined @EnableLinkedIn
    [URL="http://vicina.info"] 新闻,社区新闻,分类广告

  2. #2
    Join Date
    Aug 2004
    Posts
    1,099

    Default

    Thanks for letting me know. The @EnabledLinkedIn element was added in a snapshot build of Spring Social LinkedIn and I thought I had confirmed it working. But I'll take a look and see what I can find. I'll let you know.
    Craig Walls
    Spring Social Project Lead

  3. #3
    Join Date
    Aug 2004
    Posts
    1,099

    Default

    Followup: I just confirmed that I can build Spring Social Showcase with no problems. The @EnableLinkedIn element is in spring-social-linkedin-1.0.0.BUILD-SNAPSHOT and that's the version that the showcase build depends on. So, I'm not sure why it doesn't work for you, unless your snapshot build of Spring Social LinkedIn is out of date. Or, perhaps, your showcase version is out of date. I can't say for sure.
    Craig Walls
    Spring Social Project Lead

  4. #4

    Default

    Thanks for your reply, Craig. I don't make any changes and after running "mvn -e install", I get the following message:
    Code:
    + Error stacktraces are turned on.
    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Spring Social Showcase
    [INFO]    task-segment: [install]
    [INFO] ------------------------------------------------------------------------
    [INFO] [resources:resources {execution: default-resources}]
    [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
    [INFO] Copying 36 resources
    [INFO] [compiler:compile {execution: default-compile}]
    [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
    [INFO] Compiling 1 source file to c:\Users\smith\myProjects\spring-social-samples\spring-social-showcase\target\classes
    [INFO] -------------------------------------------------------------
    [ERROR] COMPILATION ERROR :
    [INFO] -------------------------------------------------------------
    [ERROR] \Users\smith\myProjects\spring-social-samples\spring-social-showcase\src\main\java\org\springframework\social\showcase\config\SocialConfig.java:[35,60] package org.springframework.soc
    ial.linkedin.config.annotation does not exist
    [ERROR] \Users\smith\myProjects\spring-social-samples\spring-social-showcase\src\main\java\org\springframework\social\showcase\config\SocialConfig.java:[55,1] cannot find symbol
    symbol: class EnableLinkedIn
    @EnableLinkedIn(appId="${linkedin.consumerKey}", appSecret="${linkedin.consumerSecret}")
    [INFO] 2 errors
    [INFO] -------------------------------------------------------------
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Compilation failure
    
    \Users\smith\myProjects\spring-social-samples\spring-social-showcase\src\main\java\org\springframework\social\showcase\config\SocialConfig.java:[35,60] package org.springframework.social.link
    edin.config.annotation does not exist
    \Users\smith\myProjects\spring-social-samples\spring-social-showcase\src\main\java\org\springframework\social\showcase\config\SocialConfig.java:[55,1] cannot find symbol
    symbol: class EnableLinkedIn
    @EnableLinkedIn(appId="${linkedin.consumerKey}", appSecret="${linkedin.consumerSecret}")
    
    [INFO] ------------------------------------------------------------------------
    [INFO] Trace
    org.apache.maven.BuildFailureException: Compilation failure
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
            at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
            at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
            at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
            at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
            at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
            at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
            at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
    Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
            at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:656)
            at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
            at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
            ... 17 more
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 3 seconds
    [INFO] Finished at: Sat Oct 20 11:43:47 PDT 2012
    [INFO] Final Memory: 18M/43M
    [INFO] ------------------------------------------------------------------------
    I don't know whether it is caused by file retrieval with git or not if there isn't any problem in the project.
    [URL="http://vicina.info"] 新闻,社区新闻,分类广告

  5. #5
    Join Date
    Aug 2004
    Posts
    1,099

    Default

    Well, I'm puzzled as to why it wouldn't work. Could you dig into a few things for me?

    - Confirm that the pom.xml file references version 1.0.0.BUILD-SNAPSHOT of the Spring Social LinkedIn dependency.
    - Go to your Maven repo folder (mine is at ~/.m2/repository; so I cd ~/.m2/repository/org/springframework/social/spring-social-linkedin/1.0.0.BUILD-SNAPSHOT/). Then check the date/time on the spring-social-linkedin-1.0.0.BUILD-SNAPSHOT.jar file to ensure that it's relatively current and then dig into it (I use "unzip -l spring-social-linkedin-1.0.0.BUILD-SNAPSHOT.jar") and ensure that the file contains and EnableLinkedIn class.
    - Extreme measures: Delete the .m2/repository/org/springframework/social/spring-social-linkedin folder and try to build again.
    Craig Walls
    Spring Social Project Lead

  6. #6
    Join Date
    Oct 2008
    Posts
    26

    Default

    I've got the same problem today, the `spring-social-linkedin-1.0.0.BUILD-SNAPSHOT.jar` simply doesn't contain any config package!
    And the download came fresh from `http://repo.springsource.org/snapshot/`:
    [INFO] snapshot org.springframework.social:spring-social-linkedin:1.0.0.BUILD-SNAPSHOT: checking for updates from org.springframework.maven.snapshot
    Downloading: http://repo.springsource.org/snapsho...081557-453.pom
    1K downloaded (spring-social-linkedin-1.0.0.BUILD-20120412.081557-453.pom)
    Downloading: http://repo.springsource.org/snapsho...081557-453.jar
    240K downloaded (spring-social-linkedin-1.0.0.BUILD-20120412.081557-453.jar)
    `jar tvf spring-social-linkedin-1.0.0.BUILD-SNAPSHOT.jar | grep config` yields nothing and 'mvn compile' in spring-social-showcase gives me:
    ...
    INFO] Compilation failure
    /Users/robin/dev/3rd-party/spring-social-samples/spring-social-showcase/src/main/java/org/springframework/social/showcase/config/SocialConfig.java:[35,60] error: package org.springframework.social.linkedin.config.annotat ion does not exist
    /Users/robin/dev/3rd-party/spring-social-samples/spring-social-showcase/src/main/java/org/springframework/social/showcase/config/SocialConfig.java:[55,1] error: cannot find symbol
    Maybe your version of spring-social-linkedin-1.0.0.BUILD-SNAPSHOT is from a local build you made yourself using the latest sources? (that's one of the reasons using snapshots isn't recommended, you can't reproduce a build reliably)

    BTW: is there a policy regarding the creation of new issues in githup's issue tracker vs. using jira.springsource.org?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •