Uploaded image for project: 'Maven Source Plugin'
  1. Maven Source Plugin
  2. MSOURCES-19

source plugin with phase 'package' does not upload sources.jar into repository

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.0.3
    • None
    • None
    • windows

    Description

      hallo

      when using the source plugin with phase install:

      <plugin>
      <artifactId>maven-source-plugin</artifactId>
      <configuration>
      <attach>true</attach>
      </configuration>
      <executions>
      <execution>
      <phase>install</phase>
      <goals>
      <goal>jar</goal>
      <goal>test-jar</goal>
      </goals>
      </execution>
      </executions>
      </plugin>

      the generated sources are uploaded into the snapshot repository just fine (when i execute 'mvn deploy')

      when the phase is changed to deploy:
      <plugin>
      <artifactId>maven-source-plugin</artifactId>
      <configuration>
      <attach>true</attach>
      </configuration>
      <executions>
      <execution>
      <phase>deploy</phase>
      <goals>
      <goal>jar</goal>
      <goal>test-jar</goal>
      </goals>
      </execution>
      </executions>
      </plugin>

      the sources jars are created but not copied into the local repository nor uploaded into the snapshot repository.

      i would like to create source jar's in a later phase than install because in eclipse/m2eclipse an install would take too long since it creates the sources jar every time.

      Attachments

        Activity

          People

            snicoll Stephane Nicoll
            werner.mueller@mimacom.ch Werner Mueller
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: