You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by manukm07 <ma...@gmail.com> on 2011/06/09 13:06:55 UTC

How to print (echo) values from pom.xml

Hi,

Is there a way to print/echo some values in the console, from pom.xml
without using maven-antrun-plugin.  ?

Thanks in advance
Manu.

--
View this message in context: http://maven.40175.n5.nabble.com/How-to-print-echo-values-from-pom-xml-tp4472327p4472327.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to print (echo) values from pom.xml

Posted by Jesse Farinacci <ji...@gmail.com>.
Greetings,

On Thu, Jun 9, 2011 at 7:06 AM, manukm07 <ma...@gmail.com> wrote:
> Is there a way to print/echo some values in the console, from pom.xml
> without using maven-antrun-plugin.  ?

There's no first class way of doing it. Use the maven-antrun-plugin,
or try your luck with http://code.google.com/p/maven-echo-plugin/

-Jesse

-- 
There are 10 types of people in this world, those
that can read binary and those that can not.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to print (echo) values from pom.xml

Posted by Kees van Dieren <in...@squins.com>.
You can use maven help plugin, goal evaluate, for example:
mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate
-Dexpression=project.version

See also:
http://maven.apache.org/plugins/maven-help-plugin/evaluate-mojo.html
Best regards / Met vriendelijke groet,

Kees van Dieren
Squins | IT, Honestly
Oranjestraat 23
2983 HL Ridderkerk
The Netherlands
Phone: +31 (0)180 415559
Mobile: +31 (0)6 30413841
www.squins.com
http://twitter.com/keesvandieren
Chamber of commerce Rotterdam: 24435130
Boeken voor school en werk bestel je op studieboekencenter.nl
2011/6/9 manukm07 <ma...@gmail.com>

> Hi,
>
> Is there a way to print/echo some values in the console, from pom.xml
> without using maven-antrun-plugin.  ?
>
> Thanks in advance
> Manu.
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/How-to-print-echo-values-from-pom-xml-tp4472327p4472327.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: How to print (echo) values from pom.xml

Posted by manukm07 <ma...@gmail.com>.
Thanks for the information 

--
View this message in context: http://maven.40175.n5.nabble.com/How-to-print-echo-values-from-pom-xml-tp4472327p4475153.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to print (echo) values from pom.xml

Posted by Manfred Moser <ma...@mosabuam.com>.
e.g. the gmaven plugin..

> Hi,
>
> Is there a way to print/echo some values in the console, from pom.xml
> without using maven-antrun-plugin.  ?
>
> Thanks in advance
> Manu.
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/How-to-print-echo-values-from-pom-xml-tp4472327p4472327.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org