Results 1 to 9 of 9

Thread: how to configure my own template projects

  1. #1
    Join Date
    Oct 2012
    Location
    Tokyo
    Posts
    4

    Default how to configure my own template projects

    hi all,
    I'd like to create my own template project. However i couldn't find how to configure it.
    i tried by guessing the configuration from http://dist.springsource.com/release...iptors-3.0.xml

    But error occured in selection template projects.
    Code:
     Error while downloading or parsing descriptors file 'file:/Users/XXX/workspace/springmvc-jpa-blank/descriptor.xml':
    (I tried with STS 3.1.0.RELEASE)

    Is there any document?

  2. #2
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,637

    Default

    Hey!

    We are working on a blog posting about this that explains all the details. Unfortunately we weren't able to push that out yet.
    In the meantime, if you send us your descriptors.xml file, we can take a look and help, if you want.

    HTH,
    Martin
    Martin Lippert
    SpringSource, a division of VMware
    SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/martinlippert

  3. #3
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,637

    Default

    I would also guess that you would need to configure "file:///Users/..." to make this a valid URI to a local file system...
    Martin Lippert
    SpringSource, a division of VMware
    SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/martinlippert

  4. #4
    Join Date
    Oct 2012
    Location
    Tokyo
    Posts
    4

    Default

    Dear Martin
    Thank you for your quick respose

    I've found that my xml is invalid... and successfully downloaded.

    this is first sample
    http://dl.dropbox.com/u/342817/sts-t...descriptor.xml

    but after created a project by template wizard, there were no source code...
    I seem to have something wrong to package..

    original project is here
    https://github.com/making/springmvc-jpa-blank

    I'm looking forward to reading your post!

  5. #5

    Default

    Hi making

    Unfortunately your template is hitting this bug https://issuetracker.springsource.com/browse/STS-2710 where the token replacement is stepping over the project name. Since your template package is com.example.mvc and your template project name is springmvc-jpa-blank, the {mvc} portion of the path is renamed, and the result is that source files aren't copied over properly.

    For now, if you need to get this to work I'd suggest you avoid using package tokens in your project name until this bug can get fixed.
    Leo Dos Santos
    Committer, SpringSource Tool Suite

  6. #6
    Join Date
    Oct 2012
    Location
    Tokyo
    Posts
    4

    Default

    Dear community

    Thank you for your help!

    I successfully made my custom template project!
    https://github.com/making/spring-webapp-template

    decriptors.xml is here
    https://raw.github.com/making/spring...escriptors.xml

    you can use my template like the screescreenshot.jpgn shot

  7. #7
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,637

    Default

    Hey!

    Awesome to see new template projects coming up!!! Great!!!

    The screenshot got scaled down too much to read it, but you just need to go to the preferences and put the second URL (the one to the descriptors.xml) in as a new Spring Template location.

    Some comments:
    When I use it, it says I would need to download something of around 415000 bytes? I think that is not the right number, right?
    When I used it, it doesn't configure the project as a Maven project and it doesn't configure source folders, etc. It doesn't look like a ready-to-use project that gets created. Is that intended? Just asking...

    Cheers,
    -Martin
    Last edited by Martin Lippert; Nov 1st, 2012 at 12:04 PM.
    Martin Lippert
    SpringSource, a division of VMware
    SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/martinlippert

  8. #8
    Join Date
    Oct 2012
    Location
    Tokyo
    Posts
    4

    Default

    Dear Martin Lippert

    I just wrote wiki page to use it.
    https://github.com/making/spring-web...GettingStarted

    > I think that is not the right number, right?
    yes, it's adhock size... should be modified.

    > it doesn't configure the project as a Maven project
    I don't know why the output is not created as java project, so i convert to Maven project manually as i mentioned in wiki page.

  9. #9
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,637

    Default

    Hey!

    I think you "just" would need to include the .project and .classpath metadata files in your project to get the project configured as a ready-to-use Maven project.

    HTH,
    Martin
    Martin Lippert
    SpringSource, a division of VMware
    SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/martinlippert

Posting Permissions

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