Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-11496

Customized Maven libraries not persisted correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 3.3.0.Beta3
    • 3.3.0.Beta2
    • maven
    • None
    • Hide
      • Create a new Dynamic web project
      • enter project name
      • click on the "modify" button
      • select JBoss Maven Integration and JPA version 1.0, click OK
      • click next till you get to the JPA Facet page
      • select Hibernate 1.x platform and type= Hibernate 3.3.2 libraries
      • set hibernate-core version to 4.1.1.Final, remove other dependencies
      • click finish
      • Open .metadata\.plugins\org.jboss.tools.maven.core\hibernate332-maven-library-provider\template.xml
      • ASSERT contains only one dependency : hibernate-core version 4.1.1.Final <= FAIL file contains same dependencies as originally displayed in wizard

      Repeat project creation procedure

      • ASSERT JPA Page contains only one dependency : hibernate-core version 4.1.1.Final <= FAIL page contains same dependencies as the first time
      Show
      Create a new Dynamic web project enter project name click on the "modify" button select JBoss Maven Integration and JPA version 1.0, click OK click next till you get to the JPA Facet page select Hibernate 1.x platform and type= Hibernate 3.3.2 libraries set hibernate-core version to 4.1.1.Final, remove other dependencies click finish Open .metadata\.plugins\org.jboss.tools.maven.core\hibernate332-maven-library-provider\template.xml ASSERT contains only one dependency : hibernate-core version 4.1.1.Final <= FAIL file contains same dependencies as originally displayed in wizard Repeat project creation procedure ASSERT JPA Page contains only one dependency : hibernate-core version 4.1.1.Final <= FAIL page contains same dependencies as the first time

      As said on the jbosstools-dev ML :

      I've been looking at the Maven Library provider lately for JBIDE-10911 and there's something I don't quite understand :
      In https://github.com/jbosstools/jbosstools-svn-mirror/blob/trunk/maven/plugins/org.jboss.tools.maven.core/src/org/jboss/tools/maven/core/libprov/MavenLibraryProviderInstallOperation.java#L96 when libraryResource is saved, the generated file (<workspace_area>/org.jboss.maven.core/<library_name>/template.xml) contains the original contents of the template, not those from libraryModel (chosen by the user in the JPA wizard page).

      I can't figure out what's wrong in the code. Do you have any idea?

            snjeza_jira Snjezana Peco (Inactive)
            fbricon@redhat.com Fred Bricon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: