glassfish
  1. glassfish
  2. GLASSFISH-20266

Maven artifacts not in sync with 4.0 releases

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0_b83
    • Fix Version/s: 4.0_b85
    • Component/s: docs, embedded
    • Labels:
      None

      Description

      The Maven Embedded Plugin is not in sync with the current release process of GlassFish 4.0 beta, but some other Embedded artifacts are. As described in my blog [1], it is already possible to use the plugin 3.1.2.2 to run GF 4.0 if the correct dependencies are overridden in the POM file.

      Artifacts missing sync:

      • simple-glassfish-api
      • maven-embedded-glassfish-plugin

      Other issues I encountered during this investigation:

      • some artifacts are published in different groupIds, for different versions
      • there isn't a clear documentation of what Maven plugins GlassFish offers
      • developers may find themselves confused about what are the differences between GlassFish plugin [4], Embedded Plugin [3], and AsAdmin Plugin [2]

      Some artifacts published are not documented on what exactly is their objective and functionality, for example:
      1) groupId: org.glassfish.main.extras
      artifactId: embedded
      2) groupId: org.glassfish.main.extras
      artifactId: javaee

        • and so many others

      StackOverflow has a reference for this confusion [5]

      [1] https://blogs.oracle.com/brunoborges/entry/glassfish_4_beta_and_maven
      [2] https://github.com/Codeartisans/asadmin
      [3] http://embedded-glassfish.java.net/nonav/plugindocs/3.1/plugin-info.html
      [4] http://maven-glassfish-plugin.java.net/
      [5] http://stackoverflow.com/questions/1836317/which-maven-glassfish-plugin-to-use/1836691#1836691

        Activity

        Hide
        Romain Grécourt added a comment -

        #2 is not official.
        #3 has moved to https://svn.java.net/svn/glassfish~svn/trunk/maven-plugin/ which is even more confusing.
        #4 needs a refresh for 4.0
        org.glassfish.main.extras.javaee is a manifest jar intended for classpath within a GlassFish installation, it should actually not endup in any maven repository.

        Regarding the groupIds, I agree that embedded artifacts should not use .extras but something more relevant.
        Why don't you start a thread on dev@glassfish.java.net ?

        Show
        Romain Grécourt added a comment - #2 is not official. #3 has moved to https://svn.java.net/svn/glassfish~svn/trunk/maven-plugin/ which is even more confusing. #4 needs a refresh for 4.0 org.glassfish.main.extras.javaee is a manifest jar intended for classpath within a GlassFish installation, it should actually not endup in any maven repository. Regarding the groupIds, I agree that embedded artifacts should not use .extras but something more relevant. Why don't you start a thread on dev@glassfish.java.net ?
        Hide
        Bruno Borges added a comment -

        #2 I know, but without a clear documentation on all Maven-related artifacts and plugins, it's becoming a mess where nobody knows which plugin they should use to what.
        #3 Agreed.

        Several artifacts that are not for dependency nor plugins are on public repos, and this doesn't help but makes the situation even worse.

        A discussion on dev@glassfish would lead to someone asking me to submit a bug. Guess this is the right way.

        Show
        Bruno Borges added a comment - #2 I know, but without a clear documentation on all Maven-related artifacts and plugins, it's becoming a mess where nobody knows which plugin they should use to what. #3 Agreed. Several artifacts that are not for dependency nor plugins are on public repos, and this doesn't help but makes the situation even worse. A discussion on dev@glassfish would lead to someone asking me to submit a bug. Guess this is the right way.
        Hide
        Romain Grécourt added a comment -

        The discussion would help gathering more opinions around the groupIds for embedded artifacts.

        Show
        Romain Grécourt added a comment - The discussion would help gathering more opinions around the groupIds for embedded artifacts.
        Hide
        Bhavanishankar added a comment -

        Fixed with check-in rev 61385 (http://java.net/projects/glassfish/lists/commits/archive/2013-04/message/309)

        From the end user's perspective, the maven plugin's co-ordinates remain the same as earlier releases i.e., org.glassfish.embedded:maven-embedded-glassfish-plugin, the version off course is 4.0-SNAPSHOT

        Embedded Plugin documentations are at http://embedded-glassfish.java.net/nonav/plugindocs/3.1/plugin-info.html

        Show
        Bhavanishankar added a comment - Fixed with check-in rev 61385 ( http://java.net/projects/glassfish/lists/commits/archive/2013-04/message/309 ) From the end user's perspective, the maven plugin's co-ordinates remain the same as earlier releases i.e., org.glassfish.embedded:maven-embedded-glassfish-plugin, the version off course is 4.0-SNAPSHOT Embedded Plugin documentations are at http://embedded-glassfish.java.net/nonav/plugindocs/3.1/plugin-info.html

          People

          • Assignee:
            Bhavanishankar
            Reporter:
            Bruno Borges
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: