This is a common theme in plugins I've seen - the need to refer to a
particular artifact listed in the dependencies. How about a new class,
org.apache.maven.artifact.ArtifactPath:
+ArtifactPath(path:String)
+isMatch(artifact:Artifact):boolean

I see a use for it in the webstart plugin as well, since it will identify
artifacts containing the application(s).

Kris

> I think
>
> <schmaJar implemenetation="org.apache.maven.artifact.DefaultArtifact">
>   <groupId>javax.j2ee</groupId>
>   ...
> </schemaJar>
>
> will work, but I'm hesitant to recommend it.
>
> I think the notation below is easier to read, and can be left as a
> string. The plugin should digest that and search the project artifacts
> for the relevant artifact (which it will need to do anyway, thus giving
> a "real" artifact object).
>
> - Brett
>
> Kris Bravo wrote:
>
>>I'd like to be able to refer to a dependency defined in a pom within the
>>configuration of the xml beans plugin.
>>
>><configuration>
>>  <schemaJar implementation="???">javax.j2ee:j2ee-schemas:1.0</schemaJar>
>></configuration>
>>
>>Is it possible to define the schemaJar file as an artifact? If so, what
>>should I put in "implementation" above?
>>
>>/**
>> * @parameter
>> */
>>private Artifact schemaJar
>>
>>Kris Bravo
>>Corridor Software, Inc.
>>http://www.corridor-software.us
>>
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to