Good day to you, Alexander,
In addition to what Dan mentioned, you may want to use those expressions as
a default:
/**
* @parameter default-value="${project.artifactId}"
*/
pivate String my_artifact_id;
Cheers,
Franz
dan tran wrote:
>
> did you anotate your "my_artifact_id"
> like
> /** <---- 2 ** are need
> * @pamameter
> *
> **/
>
> did you try a regular strign to see it is pushed thru?
>
> -D
>
>
> On 11/9/06, Morgovsky, Alexander (US - Glen Mills)
> <[EMAIL PROTECTED]>
> wrote:
>>
>> I have a short pom.xml.
>>
>> <project>
>> <artifactId>a</artifactId>
>> <groupId>a<groupId>
>> <version>1.0</version>
>> <build>
>> <plugins>
>> <plugin>
>> <artifactId>b</artifactId>
>> <groupId>b</groupId>
>> <version>2.0</version>
>> ...
>> <configuration>
>>
>> <my_artifact_id>${project.artifactId}</my_artifact_id>
>>
>> <my_group_id>${project.groupId}</my_group_id>
>> </configuration>
>> ...
>> </plugin>
>> </plugins>
>> </build>
>> </project>
>>
>> For some reason, the variables my_artifact_id and my_group_id are
>> getting resolved by the plugin b-b-2.0 as null, so they are not being
>> resolved correctly according to the configured values. I cannot see why
>> what I am doing is wrong. May someone please tell me what is happening?
>> Thanks.
>>
>>
>> This message (including any attachments) contains confidential
>> information
>> intended for a specific individual and purpose, and is protected by law.
>> If
>> you are not the intended recipient, you should delete this message.
>>
>>
>> Any disclosure, copying, or distribution of this message, or the taking
>> of
>> any action based on it, is strictly prohibited. [v.E.1]
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/Regular-Plugin-parameters-are-not-working-tf2605439s177.html#a7275966
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]