Thanks you JB and James. For anyone else trying to do this in the future,
this worked for me:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy</id>
<phase>generate-resources</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>...</groupId>
<artifactId>...</artifactId>
<version>...</version>
</artifactItem>
</artifactItems>
<outputDirectory>${project.build.directory}/assembly/deploy</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
Marc
On Tue, Jul 21, 2015 at 9:00 AM, Jean-Baptiste Onofré <[email protected]>
wrote:
> It should be possible using dependency plugin execution, in
> generate-resources phase, and after using the resource plugin.
>
> Regards
> JB
>
> On 07/21/2015 02:54 PM, Marc Durand wrote:
>
>> Thanks for your response James. I would like to get artifacts from a
>> maven repository and include them in the deploy folder. From what I
>> understand, the resources configuration cannot pull from a maven repo.
>>
>> Marc
>>
>> On Tue, Jul 21, 2015 at 8:10 AM, James Carman
>> <[email protected] <mailto:[email protected]>> wrote:
>>
>> You can use resources in your project.
>>
>> On Tue, Jul 21, 2015 at 7:07 AM Marc Durand <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>> Hi JB, sorry it wasn't clear. I want to create a custom
>> distribution and include some files in the deploy folder.
>> Thanks,
>> Marc
>>
>> On Jul 21, 2015 2:05 AM, "Jean-Baptiste Onofré" <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>> Hi Marc,
>>
>> Not sure to follow you: did you drop jar file in the deploy
>> folder ?
>> Or do you want to create a custom distribution including
>> some file in the deploy folder ?
>>
>> Regards
>> JB
>>
>> On 07/20/2015 06:02 PM, Marc Durand wrote:
>>
>> I have a Karaf custom distribution and I am unable to
>> figure out how to add
>> files into the "deploy" folder which is possible
>> according to:
>>
>> http://karaf.apache.org/manual/latest/developers-guide/custom-distribution.html
>>
>> I have tried to add my bundles as dependancies in the
>> pom.xml but there was
>> no effect. How would I go about doing this?
>>
>> Thanks in advance,
>> Marc
>>
>>
>>
>> --
>> View this message in context:
>>
>> http://karaf.922171.n3.nabble.com/Karaf-Custom-Distribution-and-the-deploy-folder-tp4041510.html
>> Sent from the Karaf - User mailing list archive at
>> Nabble.com.
>>
>>
>> --
>> Jean-Baptiste Onofré
>> [email protected] <mailto:[email protected]>
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>>
>>
> --
> Jean-Baptiste Onofré
> [email protected]
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>