making jar with conf files

2014-09-15 Thread Aitor Iturriondobeitia
hello i have one java maven proyecto. into this proyect i have one dir myconf with the conf files whe i make the jar install (mvn clean install) it creates the jar files with the code but no the con files. the structure is: myproyecto |-src/java/main/. |-myconf |-miconf.properties

Re: making jar with conf files

2014-09-15 Thread Anders Hammar
You shouldn't really configure a new resources folder (with an hard-coded path) for this. Just use the standard src/main/resources and put your config folder there with it's files. If you want filtering you need to configure that though, but start without that and make sure you get what you want

Re: making jar with conf files

2014-09-15 Thread Martin Todorov
Hi Aitor, You should place all your configuration files under src/main/resources. For example: src/main/resources/myconf/myconf.properties. All files under src/main/resources will get packaged into your artifact's jar file. Furthermore, all your test resources should be placed (likewise) under

dependency exclusion with wildward does not work

2014-09-15 Thread Jackie Xiao
Dear I just started using maven ant task, and one issue I found today was, when the pom contains wildward exclusion, seems the artifacts won't be excluded. My script snippet below: Ant: artifact:dependencies filesetId=ls.jar.all pom file=ls-jar-all.pom.xml / /artifact:dependencies

Classpath issue in custom maven plugin

2014-09-15 Thread Kavita Gupta
Hi! I have created my own custom maven plugin(api-docs) for developing apiary blueprint. While triggering my custom plugin using m2Eclipse I am getting a classpath issue that classPath.getresources is fetching resources from plexus jar, while when I debug the swagger plugin (which I am taking as

Re: Classpath issue in custom maven plugin

2014-09-15 Thread shailesh mangal
Limitation perhaps comes from OSGi where each bundle has its own class loader. Did u try to run it from command line? On Sep 15, 2014 6:36 AM, Kavita Gupta kavita.gpt1...@gmail.com wrote: Hi! I have created my own custom maven plugin(api-docs) for developing apiary blueprint. While

RE: Maven clean plugin not deleting file

2014-09-15 Thread Martin Gainty
Date: Sat, 13 Sep 2014 18:30:10 +0530 Subject: Re: Maven clean plugin not deleting file From: saurav.sark...@gmail.com To: users@maven.apache.org Hi Martin, Thanks for the reply. directory is properly mentioned because a.so is getting deleted. Please note a.b.so has been

RE: dependency exclusion with wildward does not work

2014-09-15 Thread Martin Gainty
From: jackie.x...@ebaotech.com To: users@maven.apache.org Subject: dependency exclusion with wildward does not work Date: Mon, 15 Sep 2014 11:19:33 + Dear I just started using maven ant task, and one issue I found today was, when the pom contains wildward exclusion, seems the

RE: Classpath issue in custom maven plugin

2014-09-15 Thread Martin Gainty
Date: Mon, 15 Sep 2014 19:06:56 +0530 Subject: Classpath issue in custom maven plugin From: kavita.gpt1...@gmail.com To: users@maven.apache.org CC: shailesh.man...@gmail.com Hi! I have created my own custom maven plugin(api-docs) for developing apiary blueprint. While triggering my custom