Hi, Your pom seems overly complicated for what you seems to need , normally a pom with nearly nothing should put ressources( xml ... ) files of src/main/resources in the jar. I would start again with a fresh empty pom and add back the necessary stuff you need and see where it broke.
On Sat, Nov 22, 2014 at 7:23 PM, Aitor Iturriondobeitia < [email protected]> wrote: > i have put them into src/main/resources > (src/main/resources/es/project/classes/utils/security/) and doesn't appers > into: > myjar.jar\es\project\classes\utils\security\ > i have the xml files into that directory > them doesn't appears into the jar > > what must i make? > > Thanks > > 2014-11-22 18:56 GMT+01:00 Paul Benedict <[email protected]>: > > > Get your XML and XSLT files out of src/main/java -- and you're filtering > > that directory too. Put them in src/main/resources > > > > > > Cheers, > > Paul > > > > On Sat, Nov 22, 2014 at 11:47 AM, Aitor Iturriondobeitia < > > [email protected]> wrote: > > > > > hello > > > i have one problem and i am working two days an o dont solve it > > > y have into may app (jar) several xml fiels into one dir. > > > when i install the the project, the jar file doesn't constains the xml > > > files. can you help me please? > > > the files are into src/main/java/es.midomain/ernesto/security/templates > > ans > > > are xml files > > > > > > my pom is this: > > > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi=" > > > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" > > > http://maven.apache.org/POM/4.0.0 > > > http://maven.apache.org/xsd/maven-4.0.0.xsd"> > > > <modelVersion>4.0.0</modelVersion> > > > <artifactId>Classes</artifactId> > > > <name>Classes</name> > > > <description>clasess</description> > > > <build> > > > <filters> > > > > > > <filter>${maven.filters.generic.path}/Filters.properties</filter> > > > </filters> > > > <resources> > > > <resource> > > > <directory>${basedir}</directory> > > > <filtering>false</filtering> > > > <includes> > > > <include>myfiles/**/*.*</include> > > > </includes> > > > </resource> > > > <resource> > > > <directory>src/main/java/</directory> > > > <filtering>true</filtering> > > > <includes> > > > <include>**/*.xml</include> > > > <include>**/*.xslt</include> > > > </includes> > > > </resource> > > > </resources> > > > <plugins> > > > <plugin> > > > <artifactId>maven-compiler-plugin</artifactId> > > > <version>3.1</version> > > > <configuration> > > > <source>${jdk.compilation.version}</source> > > > <target>${jdk.compilation.version}</target> > > > <encoding>${charSetEnconding}</encoding> > > > </configuration> > > > </plugin> > > > <plugin> > > > <artifactId>maven-resources-plugin</artifactId> > > > <version>2.6</version> > > > <executions> > > > <execution> > > > <id>copy-resources</id> > > > <phase>validate</phase> > > > <goals> > > > <goal>copy-resources</goal> > > > </goals> > > > <configuration> > > > > > > <outputDirectory>${basedir}/config</outputDirectory> > > > <resources> > > > <resource> > > > > > > <directory>${basedir}/configTemplates</directory> > > > <filtering>true</filtering> > > > </resource> > > > </resources> > > > </configuration> > > > </execution> > > > <execution> > > > <id>copy-resources</id> > > > <phase>validate</phase> > > > <goals> > > > <goal>copy-resources</goal> > > > </goals> > > > <configuration> > > > <outputDirectory>target</outputDirectory> > > > <resources> > > > <resource> > > > <directory>${basedir}/src/main/java</directory> > > > <filtering>false</filtering> > > > <excludes> > > > <exclude>**/*.java</exclude> > > > </excludes> > > > </resource> > > > </resources> > > > </configuration> > > > </execution> > > > </executions> > > > </plugin> > > > </plugins> > > > <pluginManagement> > > > <plugins> > > > <plugin> > > > <groupId>org.eclipse.m2e</groupId> > > > <artifactId>lifecycle-mapping</artifactId> > > > <version>1.0.0</version> > > > <configuration> > > > <lifecycleMappingMetadata> > > > <pluginExecutions> > > > <pluginExecution> > > > <pluginExecutionFilter> > > > > > > <groupId>org.apache.maven.plugins</groupId> > > > > > > <artifactId>maven-dependency-plugin</artifactId> > > > > > > <versionRange>[1.0.0,)</versionRange> > > > <goals> > > > > > <goal>copy-dependencies</goal> > > > </goals> > > > </pluginExecutionFilter> > > > <action> > > > <ignore /> > > > </action> > > > </pluginExecution> > > > </pluginExecutions> > > > </lifecycleMappingMetadata> > > > </configuration> > > > </plugin> > > > </plugins> > > > </pluginManagement> > > > </build> > > > <dependencies> > > > <dependency> > > > <groupId>postgresql</groupId> > > > <artifactId>postgresql</artifactId> > > > <version>9.1-901.jdbc4</version> > > > </dependency> > > > <dependency> > > > <groupId>commons-lang</groupId> > > > <artifactId>commons-lang</artifactId> > > > <version>2.6</version> > > > </dependency> > > > <dependency> > > > <groupId>commons-codec</groupId> > > > <artifactId>commons-codec</artifactId> > > > <version>1.5</version> > > > </dependency> > > > <dependency> > > > <groupId>javax.ejb</groupId> > > > <artifactId>ejb-api</artifactId> > > > <version>3.0</version> > > > </dependency> > > > <dependency> > > > <groupId>javax.transaction</groupId> > > > <artifactId>jta</artifactId> > > > <version>1.1</version> > > > </dependency> > > > </dependencies> > > > </project> > > > > > > -- Adrien Rivard
