OpenJPA
  1. OpenJPA
  2. OPENJPA-951

Javadoc jar file does not contain legal files

    Details

      Description

      Donald's fix to use the ianal plugin revealed a problem in the javadoc plugin. The javadoc plugin does not include elements from the
      <resources> tags in pom.xml. The normal jar plugin and source plugin do include these resources.

      As a result we have no legal files in the javadoc jar and we're failing the ianal check. Quick browsing of the javadoc plugin mailing lists suggest a few workarounds for this problem which I'll test during the 1.2.1 release. After the release I'll migrate the changes to the other affected branches.

        Activity

        Michael Dick created issue -
        Michael Dick made changes -
        Field Original Value New Value
        Assignee Michael Dick [ mikedd ]
        Hide
        David Jencks added a comment -

        In my experience using the maven-remote-resources-plugin gets the legal files in both source and javadoc jars as well as the main artifact. I think all the plugins have to be configured in a profile for this to work (e.g. mvn source:jar doesn't run the m-r-r-p but mvn -Prelease does)

        Show
        David Jencks added a comment - In my experience using the maven-remote-resources-plugin gets the legal files in both source and javadoc jars as well as the main artifact. I think all the plugins have to be configured in a profile for this to work (e.g. mvn source:jar doesn't run the m-r-r-p but mvn -Prelease does)
        Hide
        Michael Dick added a comment -

        Hi David, I haven't tried the remote-resources-plugin yet.

        Since the proper license files are already there in the "main" jar file I just unzipped it from there into the javadoc location. Seemed to work for me, if it is a bit kludgy.

        If you can point me to an example with the maven-remote-resources-plugin I'm happy to take look.

        Show
        Michael Dick added a comment - Hi David, I haven't tried the remote-resources-plugin yet. Since the proper license files are already there in the "main" jar file I just unzipped it from there into the javadoc location. Seemed to work for me, if it is a bit kludgy. If you can point me to an example with the maven-remote-resources-plugin I'm happy to take look.
        Michael Dick made changes -
        Fix Version/s 1.0.4 [ 12313301 ]
        Fix Version/s 1.3.0 [ 12313326 ]
        Fix Version/s 2.0.0 [ 12313483 ]
        Fix Version/s 1.2.1 [ 12313328 ]
        Michael Dick made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Michael Dick
            Reporter:
            Michael Dick
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development