سؤال

Build part of POM

<plugin>
            <artifactId>maven-jar-plugin</artifactId>
            <version>2.2</version>
            <configuration>
               <classesDirectory>./</classesDirectory>
               <includes>
                  <include>*.wsdl</include>
                  <include>*.xsd</include>
                  <include>sources/</include>
                  <include>../configuration.doc</include>
               </includes>
            </configuration>
         </plugin>  

In target jar I have all wsdl from root dir, xsds from root dir and sources dir.
But no configuration.doc file in jar.

Any ideas?

هل كانت مفيدة؟

المحلول

You should move the configuration.doc into the appropriate directory like src/main/resources.

نصائح أخرى

How about adding the relevant folder from where you want the .doc to be picked up to your project pom using maven resources plugin - specifically the <resources> configuration - there are examples here. This will make the contents available to the jar plugin.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top