Uploaded image for project: 'Maven Install Plugin'
  1. Maven Install Plugin
  2. MINSTALL-45

Add documentation to automatically install a maven2 project in a maven1 repo local.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • install:install-file
    • None

    Description

      It would be better if we can find it in the Usage link. I use this configuration.

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-install-plugin</artifactId>
        <executions>
          <execution>
            <id>maven1</id>
            <phase>install</phase>
            <goals>
              <goal>install-file</goal>
            </goals>
            <configuration>
              <file>${project.build.directory}/${project.build.finalName}.${project.packaging}</file>
              <repositoryLayout>legacy</repositoryLayout>
              <localRepositoryId>local</localRepositoryId>
              <!--Property to specify in settings.xml -->
              <!-- If property not set, build not failed but install artifact in the maven2 local repo -->
              <localRepositoryPath>${maven1.repository.local.path}</localRepositoryPath>
              <pomFile>pom.xml</pomFile>
            </configuration>
          </execution>
        </executions>
      </plugin>
      

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            jsoula julien soula
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: