maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From virg g <>
Subject maven-antrun-plugin in interactive mode
Date Tue, 12 Mar 2013 10:24:32 GMT
I am using maven-antrun-plugin 1.8 in interactive mode to accept user
inputs for build version for my project.  i want to use this version to be
updated in all manifests file of all the jars of my project creates.
I have added this plugin in the parent pom, which has all the modules to be
built and also the plugin for jar to add manifest info. But the input
received from prompt i.e build version, not able to update the manifest
info from this variable (build version). I getting this value as empty. How
to make this value available to all the jars while updating manifest info.
This is my sample code in the parent POM. I dont want to pass these
parameters as command line arguments which i am able to update manifest
info. My option is only interactive mode. I have set
<inherited>false</inherited> without this, it prompts for each jar which
when it creates. Any help is highly appreciated.

                                        message="Please enter the new build
version : "
                                        addproperty=build-version" />






  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message