You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Kris Bravo <kr...@corridor-software.us> on 2005/10/06 22:09:31 UTC
Implementation type for artifact?
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Implementation type for artifact?
Posted by Brett Porter <br...@apache.org>.
I believe there is already an artifact filter (groupId:artifactId) you
can use for this.
- Brett
Kris Bravo wrote:
>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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Implementation type for artifact?
Posted by Kris Bravo <kr...@corridor-software.us>.
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: dev-unsubscribe@maven.apache.org
>>For additional commands, e-mail: dev-help@maven.apache.org
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Implementation type for artifact?
Posted by Brett Porter <br...@apache.org>.
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: dev-unsubscribe@maven.apache.org
>For additional commands, e-mail: dev-help@maven.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org