Ah, my mistake, didn't notice that the jbi:generateInstaller has been
replaced by the simpler jbi:jbi for 3.0
cheers,
j.
On 17/01/06, Jamie Le Grange <[EMAIL PROTECTED]> wrote:
> The maven-jbi-plugin wasn't working for me (I was getting .zip file
> cannot contain itself when I ran it a second time), it looks like
> there was a reference to a property that doesn't exist,
> ${jbi.build.dir} whereas ${maven.jbi.build.dir} does. Renaming the
> property in the maven.xml seems to work (i.e. generate an installer
> correctly). I am getting errors deploying it that seem to be unrelated
> so here's the patch:
>
> Index: C:/dev/servicemix-3.0/tooling/maven-jbi-plugin/plugin.jelly
> ===================================================================
> --- C:/dev/servicemix-3.0/tooling/maven-jbi-plugin/plugin.jelly (revision
> 369767)
> +++ C:/dev/servicemix-3.0/tooling/maven-jbi-plugin/plugin.jelly (working copy)
> @@ -201,22 +201,22 @@
>
>
> <goal name="jbi:generateInstaller" prereqs="jar:jar"
> description="Generates a JBI installer">
> - <ant:mkdir dir="${jbi.build.dir}/lib"/>
> - <ant:mkdir dir="${jbi.build.dir}/META-INF"/>
> - <j:file name="${jbi.build.dir}/META-INF/jbi.xml" prettyPrint="true"
> + <ant:mkdir dir="${maven.jbi.build.dir}/lib"/>
> + <ant:mkdir dir="${maven.jbi.build.dir}/META-INF"/>
> + <j:file name="${maven.jbi.build.dir}/META-INF/jbi.xml" prettyPrint="true"
> outputMode="xml" escapeText="false">
> <j:import file="${jbi.xml.template}" inherit="true" />
> </j:file>
>
> <util:file var="jbiDirectory" name="${jbi.base.directory}"/>
> <j:if test="${servicesFile.exists()}">
> - <copy todir="${jbi.build.dir}">
> + <copy todir="${maven.jbi.build.dir}">
> <fileset dir="${jbi.base.directory}"/>
> </copy>
> </j:if>
> - <ant:copy file="${plugin.resources}/jbi.xsd" todir="${jbi.build.dir}"/>
> - <ant:copy file="${plugin.resources}/service.xsd"
> todir="${jbi.build.dir}"/>
> - <ant:zip
> destfile="${maven.build.dir}/${maven.final.name}-jbi-installer.zip"
> basedir="${jbi.build.dir}">
> + <ant:copy file="${plugin.resources}/jbi.xsd"
> todir="${maven.jbi.build.dir}"/>
> + <ant:copy file="${plugin.resources}/service.xsd"
> todir="${maven.jbi.build.dir}"/>
> + <ant:zip
> destfile="${maven.build.dir}/${maven.final.name}-jbi-installer.zip"
> basedir="${maven.jbi.build.dir}">
> <include name="**/*"/>
> </ant:zip>
> </goal>
>