deploying war artifact to nexus is failing; packaging as jar works.

2014-11-22 Thread John Smith
Hello, I'm trying to distribute my war's artifact to nexus but I'm getting the following error below. If I change the packaging in the pom.xml to jar it will deploy fine. Can anyone see what I am doing wrong? thanks, John. [INFO] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) @

i cannot add to my jar the xml files (help me please)

2014-11-22 Thread Aitor Iturriondobeitia
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

Re: i cannot add to my jar the xml files (help me please)

2014-11-22 Thread Paul Benedict
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 laudio.i...@gmail.com wrote: hello i have one problem and i am working two days an o dont solve

Re: i cannot add to my jar the xml files (help me please)

2014-11-22 Thread Aitor Iturriondobeitia
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

Re: i cannot add to my jar the xml files (help me please)

2014-11-22 Thread Adrien Rivard
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,

Re: i cannot add to my jar the xml files (help me please)

2014-11-22 Thread Ron Wheeler
+1 Good advice. On 22/11/2014 3:20 PM, Adrien Rivard wrote: 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

Re: deploying war artifact to nexus is failing; packaging as jar works.

2014-11-22 Thread Sartaj Hundal
You're getting an IOException (unexpected end of stream). Are you using the right URL? Just an idea. You might have to set some property to 'false' so that maven actually starts reading. Sorry if I couldn't be more help, it's been awhile.. but your problem is definitely to do with IO. On Sat, Nov

Re: deploying war artifact to nexus is failing; packaging as jar works.

2014-11-22 Thread Karl Heinz Marbaise
Hi, have you checked in Nexus if there where errors in the logs? Kind regards Karl Heinz Marbaise On 11/22/14 9:35 PM, Sartaj Hundal wrote: You're getting an IOException (unexpected end of stream). Are you using the right URL? Just an idea. You might have to set some property to 'false' so

[ANN] Apache Maven PMD Plugin 3.3 Released

2014-11-22 Thread Mirko Friedenhagen
The Maven team is pleased to announce the release of the Apache Maven PMD Plugin, version 3.3 A Maven plugin for the PMD toolkit, that produces a report on both code rule violations and detected copy and paste fragments, as well as being able to fail the build based on these metrics.