Re: Embedding Maven in an application

2013-09-18 Thread Wayne Fay
> Im creating an application where I would like to do the following: Parse a pom > and add a specific dependency to classpath. ... > Maven itself solve this very easily. Is there an easy way to embed this > functionality > from Maven into an application? Most likely you will want to look at/lever

Re: Cannot find 'httpConfiguration' in class org.apache.maven.wagon.providers.http.LightweightHttpsWagon

2013-09-18 Thread Stuart McCulloch
Wagon is trying to apply a given configuration, but it fails because it has a property that doesn't exist in the chosen wagon provider. Which version of Maven (and Wagon) are you using? Do you have a httpConfiguration section in your settings.xml? On 18 Sep 2013, at 21:37, Richard Sand wrote:

Cannot find 'httpConfiguration' in class org.apache.maven.wagon.providers.http.LightweightHttpsWagon

2013-09-18 Thread Richard Sand
Can anyone tell me the providence of this error message? [WARNING] Could not apply configuration for idfconnect.com to wagon org.apache.maven.wagon.providers.http.LightweightHttpsWagon:Cannot find 'httpConfiguration' in class org.apache.maven.wagon.providers.http.LightweightHttpsWagon Best regard

Embedding Maven in an application

2013-09-18 Thread Halvor Platou
Hi Im creating an application where I would like to do the following: Parse a pom and add a specific dependency to classpath. Some additional information: - The version of the dependency is defined in dependencyManagement in a parent pom - The parent pom is not available locally,

Re: Maven parsing pom.xml incorrectly

2013-09-18 Thread Andrew Pennebaker
Thanks for the clarification. Apologies to Maven, curses to W3C. I guess I'll use a silly -- instead of -- for commented command line flags. On Wed, Sep 18, 2013 at 10:11 AM, Stuart McCulloch wrote: > On 18 Sep 2013, at 15:09, Paul Benedict wrote: > > > I believe this behavior is correct. IIRC,

Re: Maven parsing pom.xml incorrectly

2013-09-18 Thread Stuart McCulloch
On 18 Sep 2013, at 15:09, Paul Benedict wrote: > I believe this behavior is correct. IIRC, XML does not allow double-dashes > inside a comment. Specifically http://www.w3.org/TR/REC-xml/#sec-comments "For compatibility, the string " -- " (double-hyphen) must not occur within comments."

Re: Maven parsing pom.xml incorrectly

2013-09-18 Thread Paul Benedict
I believe this behavior is correct. IIRC, XML does not allow double-dashes inside a comment. On Wed, Sep 18, 2013 at 9:06 AM, Andrew Pennebaker wrote: > I'm using Thrift in my Maven project, compiling my .thrift code to .java as > part of the generate-sources step. To do this, I use the maven an

Maven parsing pom.xml incorrectly

2013-09-18 Thread Andrew Pennebaker
I'm using Thrift in my Maven project, compiling my .thrift code to .java as part of the generate-sources step. To do this, I use the maven antrun plugin in my pom.xml, which executes a command line call to the thrift executable, and sends it the appropriate argument flags, such as "-out" and "--gen

Re: 'unnamed' in module names in the maven site plugin

2013-09-18 Thread Ziga GREGORIC
I like the idea of having this is every pom to avoid confusion between 'names' and 'artifactIds'. ${project.artifactId} On Wed, Sep 18, 2013 at 12:53 AM, Benson Margulies wrote: > When a pom has no element, the generated site says 'unnamed'. with > site 3.3. Didn't it used to just use the ar