You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-commits@incubator.apache.org by "Brett Porter (Closed) (JIRA)" <ji...@apache.org> on 2012/03/20 12:33:38 UTC

[jira] [Closed] (NPANDAY-375) When building an executable project, by default it is not executable from target

     [ https://issues.apache.org/jira/browse/NPANDAY-375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter closed NPANDAY-375.
--------------------------------

       Resolution: Duplicate
    Fix Version/s:     (was: 2.0)
    
> When building an executable project, by default it is not executable from target
> --------------------------------------------------------------------------------
>
>                 Key: NPANDAY-375
>                 URL: https://issues.apache.org/jira/browse/NPANDAY-375
>             Project: NPanday
>          Issue Type: Improvement
>          Components: Maven Plugins
>    Affects Versions: 1.4-incubating
>            Reporter: Joe Ocaba
>
> Since the dependencies are not in the target directory the exe file will not run successfully. As proposed solution by Lars in the devlist would be to use the maven-dependency-plugin. We could automate the adding of the plugin on executable project types.
> <plugin>
>  <groupId>org.apache.maven.plugins</groupId>
>  <artifactId>maven-dependency-plugin</artifactId>
>  <version>2.2</version>
>  <executions>
>   <execution>
>    <id>copy-dependencies</id>
>    <phase>package</phase>
>    <goals>
>      <goal>copy-dependencies</goal>
>    </goals>
>    <configuration>
>      <outputDirectory>${project.build.directory}</outputDirectory>
>      <stripVersion>true</stripVersion>
>    </configuration>
>   </execution>
>  </executions>
> </plugin>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira