Where to put context.xml in webapp archetype ?

2015-08-07 Thread Sreyan Chakravarty
I am using Maven for building a simple webapp that uses JDBC connection pooling along with Hibernate. I am using the Maven Webapp Archetype to build the project. Where do I put context.xml and persistence.xml that I normally put under META-INF in a normal dynamic web project.

Archetype for Hibernate Project

2015-08-07 Thread Sreyan Chakravarty
I have just started using Maven for my Hibernate projects. What archetype would be best suited for a simple Hibernate project ?

Plugin Configuration params take precedence over CLI Arguments?

2015-08-07 Thread Daniel Johnson (danijoh2)
Hi, I am facing an issue I really did not expect, where a plugins parameters in the POM take precedence over CLI –Dparam=value parameter values. My plugin takes a string parameter: @Mojo(name = "showValue", requiresProject = true, aggregator = true, defaultPhase = LifecyclePhase.PACKAGE, threa

RE: Facing problem whith Maven for Portals-pom 1.4

2015-08-07 Thread Lalitha Bourishetty
Hi Team, When I tried to build Jetspeed 2.3 source code with maven 3.3.1 , got below error: Downloading: https://repo.maven.apache.org/maven2/org/apache/portals/portals-pom/1.4/portals-pom-1.4.pom [ERROR] [ERROR] Some problems were encountered while processing the POMs: [FATAL] Non-reso

RE: Finding transitive dependencies imported into our code

2015-08-07 Thread Endo Alejandro
Ben's suggestion should be enough. dependency:analyze will output declared, unused dependencies and undeclared, used dependencies (what you want) Mind you, I've had quite a few false positives in the first category. I think things like reflection will fool the analysis. But since you are intere

Re: Finding transitive dependencies imported into our code

2015-08-07 Thread Baptiste Mathus
+1 dependency:analyze seems to be the one. Le 7 août 2015 2:17 PM, "Ben Podgursky" a écrit : > I think you want mvn dependency:analyze -DfailOnWarning=true > > > https://maven.apache.org/plugins/maven-dependency-plugin/analyze-mojo.html#failOnWarning > > On Fri, Aug 7, 2015 at 4:38 AM, Russell Go

Re: Finding transitive dependencies imported into our code

2015-08-07 Thread Hilco Wijbenga
On 7 August 2015 at 04:14, James Green wrote: > See in-line > > On 7 August 2015 at 12:05, Björn Raupach > wrote: > >> hi, >> >> > On 07 Aug 2015, at 12:33, James Green wrote: >> > >> > Hi, >> > >> > I want to know about any imports within our package base that are >> resolved >> > by a transiti

Re: Finding transitive dependencies imported into our code

2015-08-07 Thread Ron Wheeler
You IDE should do that if it is Maven aware. Foe example, Eclipse/STS, which the m2e plugin built-in, gives you a view in the POM editor that shows the origin of the need for each dependency and shows the whole chain of transitive dependencies. It shows what versions of dependencies will be dr

Re: Finding transitive dependencies imported into our code

2015-08-07 Thread Ben Podgursky
I think you want mvn dependency:analyze -DfailOnWarning=true https://maven.apache.org/plugins/maven-dependency-plugin/analyze-mojo.html#failOnWarning On Fri, Aug 7, 2015 at 4:38 AM, Russell Gold wrote: > mvn -X compile > > Look at the listing; it will show you all of the dependencies. > > > On

Re: Finding transitive dependencies imported into our code

2015-08-07 Thread Russell Gold
mvn -X compile Look at the listing; it will show you all of the dependencies. > On Aug 7, 2015, at 7:14 AM, James Green wrote: > > See in-line > > On 7 August 2015 at 12:05, Björn Raupach > wrote: > >> hi, >> >>> On 07 Aug 2015, at 12:33, James Green wrote: >>> >>> Hi, >>> >>> I want to

Re: Finding transitive dependencies imported into our code

2015-08-07 Thread James Green
See in-line On 7 August 2015 at 12:05, Björn Raupach wrote: > hi, > > > On 07 Aug 2015, at 12:33, James Green wrote: > > > > Hi, > > > > I want to know about any imports within our package base that are > resolved > > by a transitive dependency. > > > > There must be a command or tool for this

Re: Finding transitive dependencies imported into our code

2015-08-07 Thread Björn Raupach
hi, > On 07 Aug 2015, at 12:33, James Green wrote: > > Hi, > > I want to know about any imports within our package base that are resolved > by a transitive dependency. > > There must be a command or tool for this - I'm not sure I've ever seen one > though? Maybe this helps: mvn dependency:res

Finding transitive dependencies imported into our code

2015-08-07 Thread James Green
Hi, I want to know about any imports within our package base that are resolved by a transitive dependency. There must be a command or tool for this - I'm not sure I've ever seen one though? This probably should form a report of warnings during the build... Thanks, James