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. I have no difficulty deploying these with the "zip"
format. However, the "dir" format always seems to result in something
like:
[WARNING] Assembly file:
C:\workspace\webservice-java-example\contract\target\contract-1.0.0-0000
-SNAPSHOT-webservice-java-example-contracts is not a regular file (it
may be a directory). It cannot be attached to the project build for
installation or deployment.
If I am interpreting the assembly plugin documentation properly, it
would seem to suggest that this is possible.
Here is what I have been doing ...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-5</version>
<configuration>
<descriptors>
<descriptor>src/main/assembly/contracts.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<assembly>
<id>webservice-java-example-contracts</id>
<formats>
<format>dir</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>src/main/resources</directory>
<includes>
<include>example.xsd</include>
<include>example.wsdl</include>
</includes>
<outputDirectory></outputDirectory>
</fileSet>
</fileSets>
</assembly>
-Steve Maring
Tampa, FL