Perfect, thanks Craig - I've applied your patch.

Regards
Carsten

2012/2/8 Craig S. Dickson <[email protected]>:
> Done.
>
> https://issues.apache.org/jira/browse/SLING-2404
>
> Patch file with proposed resolution also attached.
>
> Regards
>
>
>
>
> On Feb 7, 2012, at 11:11 PM, Carsten Ziegeler wrote:
>
>> Hi Craig,
>>
>> no, it seems there is no way to get the classifier in, so please file
>> an enhancement bug.
>>
>> Regards
>> Carsten
>>
>> 2012/2/7 Craig S. Dickson <[email protected]>:
>>> Hi,
>>>
>>> I am trying to use the maven-sling-plugin to install an artifact using 
>>> Maven coordinates. Something like:
>>>
>>>                    <plugin>
>>>                        <groupId>org.apache.sling</groupId>
>>>                        <artifactId>maven-sling-plugin</artifactId>
>>>                        <configuration>
>>>                            
>>> <slingUrlSuffix>/apps/myapp/install</slingUrlSuffix>
>>>                            <usePut>true</usePut>
>>>                            <failOnError>true</failOnError>
>>>                        </configuration>
>>>                        <executions>
>>>                            <execution>
>>>                                <goals>
>>>                                    <goal>install-file</goal>
>>>                                </goals>
>>>                                <phase>install</phase>
>>>                                <configuration>
>>>                                    <groupId>com.mygroup</groupId>
>>>                                    <artifactId>myartifact</artifactId>
>>>                                    <version>1.0.0-SNAPSHOT</version>
>>>                                </configuration>
>>>                            </execution>
>>>                        </executions>
>>>                    </plugin>
>>>
>>> However, now I have an artifact that has a classifier as part of its 
>>> coordinates. I read through the source of 
>>> org.apache.sling.maven.bundlesupport.BundleInstallFileMojo and it looks 
>>> like the code only supports groupId, artifactId, version and type, but not 
>>> classifier.
>>>
>>> Anybody know of an existing work around?
>>>
>>> I will log an enhancement request if not.
>>>
>>> Cheers
>>>
>>> ==========================
>>> Craig S. Dickson
>>> http://craigsdickson.com
>>> http://www.linkedin.com/in/craigsdickson
>>>
>>
>>
>>
>> --
>> Carsten Ziegeler
>> [email protected]
>



-- 
Carsten Ziegeler
[email protected]

Reply via email to