Details

    • Type: Task Task
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Component/s: None
    • Labels:
      None
    • Global Rank:
      1456

      Description

      Problem is: even thought I have maven setup NOT to produce any source.jar file, release:perform somehow creates and uploads my sources. Not sure how to include a fake sources.jar file. Can you offer some help?

        Activity

        Hide
        Juven Xu added a comment -

        see the parent pom: http://repo1.maven.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom

        when release:perform runs, the config of maven-release-plugin activates a 'sonatype-oss-release' profile, which in turn enables maven-source-plugin, which build the sources jar.

        so you can configure maven-source-plugin in your pom, to only include a very simple readme txt while building the sources jar, see this: http://maven.apache.org/plugins/maven-source-plugin/jar-no-fork-mojo.html

        the includes parameter is what you want to use.

        thanks,
        Juven

        Show
        Juven Xu added a comment - see the parent pom: http://repo1.maven.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom when release:perform runs, the config of maven-release-plugin activates a 'sonatype-oss-release' profile, which in turn enables maven-source-plugin, which build the sources jar. so you can configure maven-source-plugin in your pom, to only include a very simple readme txt while building the sources jar, see this: http://maven.apache.org/plugins/maven-source-plugin/jar-no-fork-mojo.html the includes parameter is what you want to use. thanks, Juven

          People

          • Assignee:
            Juven Xu
            Reporter:
            Sergio Oliveira Jr.
            Last Updated By:
            Juven Xu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Date of First Response: