build-helper will literally attach the file to the artifact. So when
you install or deploy the project, it will copy the xml file into your
repo alongside the jar and pom files. I don't think this is what you
want.

What I think you want is to just copy the xml file into the proper
directory in target/ so that it gets bundled up with the rest of the
classes and related files, right? So use Ant or something to copy it
where it needs to go, or modify the plugin you're using to generate
the WSDL to attach its output to the MavenProject so it is bundled
with the JAR.

Wayne

On 2/14/08, Pankaj Tandon <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I'm using build-helper-plugin to move class files from the generated-sources
> folder to the final jar file (pom packaging is jar). (The generated-sources
> files are client classes generated from a web-service wsdl2java). One of the
> generated file is an xml file (MyService.xml) that describes the service.
>
> I tried using the build-helper-plugin to get this xml file into the jar'red
> up artifact in the following way:
>
>               <execution>
>                    <id>attach-artifacts</id>
>                    <phase>add-source</phase>
>                    <goals>
>                      <goal>attach-artifact</goal>
>                    </goals>
>                    <configuration>
>                      <artifacts>
>                        <artifact>
>
> <file>target/generated-sources/clientgen/com/path/to/UnifiedViewService.xml</file>
>                          <type>xml</type>
>                        </artifact>
>                      </artifacts>
>                    </configuration>
>                  </execution>
>                </executions>
>
> Does not add the xml file into the artifact. I tried the other goals in the
> plugin, namely add-source and add-test-source. Both did not help.
>
> Can someone please suggest a way I can get the xml file that is generated by
> WSDL2Java into the jar file (artifact)?
>
> Thanks
> Pankaj
>
> --
> View this message in context: 
> http://www.nabble.com/How-to-get-build-helper-plugin-to-place-xml-files-in-the-build-tp15489379s177p15489379.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to