Hi Steven,
Maring, Steven wrote at Donnerstag, 25. Februar 2010 14:29:
> I am trying to deploy plain-text files (specifically, a WSDL and XSD) as
> part of a project with pom packaging. I would like other developers to
> be able to directly reference the WSDL as deployed in our local Nexus
> repository.
[snip]
Use the attach-artifact goal of the build-helper plugin:
=============== %< =================
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>xml-schema</id>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>src/main/xsd/my.xsd</file>
<type>xsd</type>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
=============== %< =================
It shares the GAV of the pom. The nice thing is, you can now address it as
dep of type "xsd" and you have on top a direct URL where it is accessible in
the Maven repo.
- Jörg
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]