You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jason Dillon (JIRA)" <ji...@codehaus.org> on 2007/04/04 00:51:20 UTC

[jira] Commented: (MINSTALL-29) Can't use maven-install-plugin with install-file in POM

    [ http://jira.codehaus.org/browse/MINSTALL-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_91950 ] 

Jason Dillon commented on MINSTALL-29:
--------------------------------------

The latest {{2.2-SNAPSHOT}} resolves this problem.  To use add this to your pom:

{code}
 <pluginRepositories>
    <pluginRepository>
        <id>apache-snapshots</id>
        <name>Apache Snapshots Repository</name>
        <url>http://people.apache.org/repo/m2-snapshot-repository</url>
        <layout>default</layout>
        <snapshots>
            <enabled>true</enabled>
            <updatePolicy>daily</updatePolicy>
            <checksumPolicy>ignore</checksumPolicy>
        </snapshots>
        <releases>
            <enabled>false</enabled>
        </releases>
    </pluginRepository>
</pluginRepositories>

<build>
    <pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-install-plugin</artifactId>
                <version>2.2-SNAPSHOT</version>
            </plugin>
        </plugins>
    </pluginManagement>
</build>
{code}


> Can't use maven-install-plugin with <goal>install-file</goal> in POM
> --------------------------------------------------------------------
>
>                 Key: MINSTALL-29
>                 URL: http://jira.codehaus.org/browse/MINSTALL-29
>             Project: Maven 2.x Install Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2
>         Environment: WinXP, running M2 in Cygwin
>            Reporter: Brad Harper
>            Priority: Minor
>
> This issue is related  to another I submitted recently.  In fact, the earlier issue was encounted
> in an earlier attempt to get the same results. (see bottom, below.)
> Consider the POM descriptor containing
> <pluginRepositories>
>   <pluginRepository>
>     <id>snapshots</id>
>     <url>http://svn.apache.org/maven-snapshot-repository</url>
>   </pluginRepository>
> </pluginRepositories>
>   <build>
>     <plugins>
>       <plugin>
>         <artifactId>maven-install-plugin</artifactId>
>         <version>2.2-SNAPSHOT</version>
>         <executions>
>           <execution>
>             <id>install-library</id>
>             <phase>install</phase>
>             <goals>
>               <goal>install-file</goal>
>             </goals>
>             <configuration>
>               <groupId>com.epsiia.dxr.third-party</groupId>
>               <artifactId>dxr-third-party-WINDOWS-X86-com-emc-centera-fplibrary-lib</artifactId>
>               <version>2.0SP1</version>
>               <packaging>lib</packaging>
>               <file>FPLibrary.lib</file>
>             </configuration>
>           </execution>
>         </executions>
>       </plugin>
>     </plugins>
>   </build>
> M2 fails to build in this project because all </configuration> elements are read-only.  [I'm attempting
> to use the 2.2-SNAPSHOT because I get the same error in stable versions. ]
> Shouldn't this execution be allowable and equivalent to the CLI invocation
>    % mvn install:install-file -DgroupId=com.epsiia.dxr.third-party ..
> I'm trying to create a mind-numbingly simple environment, so that other less-experienced developers
> aren't required to know which of the third-party libraries need to be manually installed via once-only
> occurances should the local repository need to be re-constructed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira