Re: Executing Apache CXF with Maven

2017-05-07 Thread Martin Gainty
Rupi


i followed the steps exactly and could not get web.xml to be produced for webapp

ping dan kulp

https://github.com/apache/cxf/tree/master/maven-plugins/archetypes/cxf-jaxws-javafirst


please keep us apprised of solution


Good Luck!

Martin
__



From: Stephen Connolly 
Sent: Saturday, May 6, 2017 5:49 PM
To: Maven Users List
Subject: Re: Executing Apache CXF with Maven

Sounds like the archetype is incorrect. You should ask whoever authored the
archetype (looks like CXF) to fix it

On Sat 6 May 2017 at 16:18, Rupinder Singh  wrote:

> Hi Stephen,
>
> Somehow mvn archetype:generate -Dfilter=org.apache.cxf.archetype:   did not
> generate the project properly. So I downloaded the CXF distribution, as
> suggested to me earlier in CXF mailing list, and used the same projects in
> its samples folder and  repeated the remaining steps. They work.
>
> Thanks.
>
> Rupinder
>
> On Sat, May 6, 2017 at 6:14 PM, Rupinder Singh  wrote:
>
> > Hi Stephen,
> > I took it there. From the initial response, I thought I should  bring it
> > here. I hope someone can look into it.
> >
> > Rupinder
> > On 6 May 2017 18:06, "Stephen Connolly"  >
> > wrote:
> >
> >> This is really an issue for the CXF mailing lists.
> >>
> >> I suggest you take your question there.
> >>
> >> On Sat 6 May 2017 at 12:26, Rupinder Singh  wrote:
> >>
> >> > Hi,
> >> > Following the simple tutorial at
> >> > http://www.cse.unsw.edu.au/~cs9322/labs/lab01/  I have created
> project
> >> > named HelloWorldCXF in my CXF working directory cxfwrk using maven.
> >> Then ,
> >> > I built it with mvn clean install. I copied the generated
> >> > war HelloWorldCXF-1.0-SNAPSHOT.war to webapps folder
> >> > of apache-tomcat-8.5.14. And re-started Tomcat. The soap service is
> >> > available at http://localhost:8080/HelloWorldCXF-1.0-SNAPSHOT.
> >> Finally, I
> >> > 'm trying to test it with client available in the project using maven,
> >> from
> >> > the root of the project. I'm seeing build failure as in the two
> outputs
> >> > attached. The class that it refers to as not found is very much there.
> >> >
> >> > Can anybody look into this?
> >> >
> >> > Rupinder
> >> >
> >> > -
> >> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >> > For additional commands, e-mail: users-h...@maven.apache.org
> >>
> >> --
> >> Sent from my phone
> >>
> >
>
--
Sent from my phone


Re: Executing Apache CXF with Maven

2017-05-07 Thread Rupinder Singh
Hi Martin,

Thanks.  Martin, resourceful as ever. know you frm axis2 list. I'd also
reverted to CXF users list earlier.

Regards
Rupinder
On 7 May 2017 17:27, "Martin Gainty"  wrote:

> Rupi
>
>
> i followed the steps exactly and could not get web.xml to be produced for
> webapp
>
> ping dan kulp
>
> https://github.com/apache/cxf/tree/master/maven-plugins/
> archetypes/cxf-jaxws-javafirst
>
>
> please keep us apprised of solution
>
>
> Good Luck!
>
> Martin
> __
>
>
> 
> From: Stephen Connolly 
> Sent: Saturday, May 6, 2017 5:49 PM
> To: Maven Users List
> Subject: Re: Executing Apache CXF with Maven
>
> Sounds like the archetype is incorrect. You should ask whoever authored the
> archetype (looks like CXF) to fix it
>
> On Sat 6 May 2017 at 16:18, Rupinder Singh  wrote:
>
> > Hi Stephen,
> >
> > Somehow mvn archetype:generate -Dfilter=org.apache.cxf.archetype:   did
> not
> > generate the project properly. So I downloaded the CXF distribution, as
> > suggested to me earlier in CXF mailing list, and used the same projects
> in
> > its samples folder and  repeated the remaining steps. They work.
> >
> > Thanks.
> >
> > Rupinder
> >
> > On Sat, May 6, 2017 at 6:14 PM, Rupinder Singh 
> wrote:
> >
> > > Hi Stephen,
> > > I took it there. From the initial response, I thought I should  bring
> it
> > > here. I hope someone can look into it.
> > >
> > > Rupinder
> > > On 6 May 2017 18:06, "Stephen Connolly"  com
> > >
> > > wrote:
> > >
> > >> This is really an issue for the CXF mailing lists.
> > >>
> > >> I suggest you take your question there.
> > >>
> > >> On Sat 6 May 2017 at 12:26, Rupinder Singh 
> wrote:
> > >>
> > >> > Hi,
> > >> > Following the simple tutorial at
> > >> > http://www.cse.unsw.edu.au/~cs9322/labs/lab01/  I have created
> > project
> > >> > named HelloWorldCXF in my CXF working directory cxfwrk using maven.
> > >> Then ,
> > >> > I built it with mvn clean install. I copied the generated
> > >> > war HelloWorldCXF-1.0-SNAPSHOT.war to webapps folder
> > >> > of apache-tomcat-8.5.14. And re-started Tomcat. The soap service is
> > >> > available at http://localhost:8080/HelloWorldCXF-1.0-SNAPSHOT.
> > >> Finally, I
> > >> > 'm trying to test it with client available in the project using
> maven,
> > >> from
> > >> > the root of the project. I'm seeing build failure as in the two
> > outputs
> > >> > attached. The class that it refers to as not found is very much
> there.
> > >> >
> > >> > Can anybody look into this?
> > >> >
> > >> > Rupinder
> > >> >
> > >> > 
> -
> > >> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > >> > For additional commands, e-mail: users-h...@maven.apache.org
> > >>
> > >> --
> > >> Sent from my phone
> > >>
> > >
> >
> --
> Sent from my phone
>


Re: [EXTERNAL] RE: Continuous Delivery with Maven now possible?

2017-05-07 Thread Bernd Eckenfels
Hello,

Only those specific properties are allowed. If I remember correctly the reason 
for it is a mixture between it is not possible to support full property 
resolving in this stage of the model builder and the intention to 
harmonize/restrict to familiarly named usecases.

https://git-wip-us.apache.org/repos/asf?p=maven.git;a=blobdiff;f=maven-model-builder/src/main/java/org/apache/maven/model/interpolation/AbstractStringBasedModelInterpolator.java;h=b47edbe9898b42e25e53afdfb0447ba59183f6a5;hp=cee376f1134db6d78a8bd78ff9f0c7108d86e448;hb=51cc76c32625be2f807dcf2ffbeb085984729b57;hpb=181b0215aa1199e152db9d2c08b1a01436547805

Gruss
Bernd
--
http://bernd.eckenfels.net

From: Eric Benzacar 
Sent: Monday, May 8, 2017 3:35:46 AM
To: Maven Users List
Cc: i...@soebes.de
Subject: Re: [EXTERNAL] RE: Continuous Delivery with Maven now possible?

I'm confused by something in Karl's blog as well as the instructions for
the flatten-maven-plugin and the actual release notes for Maven 3.5.

In all the above, they talk about the ${revision}, ${sha1}, ${changelist}
parameters.  But what is so special about those particular parameters?  Can
I not use any parameter named of my choosing?

Afterall, the ${revision} value is being set by an environment property, so
can I not just call it ${buildNumber} instead?

Ex:

com.soebes.examples.j2ee parent
1.2.1-${buildNumber} pom ..
 ... SNAPSHOT 


Why do I need to use ${revision}?
https://maven.apache.org/maven-ci-friendly.html specifically mentions the
above parameters.  Why?


Thanks,

Eric


On Thu, May 4, 2017 at 9:40 PM, Justin Georgeson  wrote:

> Yup :)
>
> -Original Message-
> From: Karl Heinz Marbaise [mailto:khmarba...@gmx.de]
> Sent: Thursday, May 4, 2017 4:52 PM
> To: Justin Georgeson ; Maven Users List <
> users@maven.apache.org>; i...@soebes.de
> Subject: Re: [EXTERNAL] RE: Continuous Delivery with Maven now possible?
>
> External Sender: Use caution with links/attachments.
>
>
>
> Hi,
>
> On 04/05/17 22:52, Justin Georgeson wrote:
> > Also I believe the partial reactor switches don't work for Tycho builds.
>
> You mean -pl ..option I suppose?
>
> As far as I know Tycho is handling that at the wrong time of the maven
> build and furthermore handles in this relationship some other things wrong
> which results in not working things like this..
>
> Kind regards
> Karl Heinz Marbaise
>
> >
> > -Original Message-
> > From: Robert Patrick [mailto:robert.patr...@oracle.com]
> > Sent: Thursday, May 4, 2017 3:18 PM
> > To: Maven Users List ; i...@soebes.de
> > Subject: [EXTERNAL] RE: Continuous Delivery with Maven now possible?
> >
> > External Sender: Use caution with links/attachments.
> >
> >
> >
> > Hard to train developers to break old habits but thanks... :-)
> >
> >
> >
> > -Original Message-
> > From: Karl Heinz Marbaise [mailto:khmarba...@gmx.de]
> > Sent: Thursday, May 04, 2017 3:16 PM
> > To: Robert Patrick; Maven Users List; i...@soebes.de
> > Subject: Re: Continuous Delivery with Maven now possible?
> >
> > Hi Robert,
> >
> > Ah now I see the issue.
> >
> > If you have a multi module build you should use
> >
> > mvn -pl moduleToBuild clean install
> >
> > but from root location and don't change into the module directory cause
> this can't work like this.
> >
> > Kind regards
> > Karl Heinz Marbaise
> >
> > On 04/05/17 22:08, Robert Patrick wrote:
> >> Hi Karl,
> >>
> >> If I define the revision property in the top-level POM, I cannot refer
> to it in the module POMs'  elements *and* still retain the ability
> to build from the module directory, right?  I tried this and it failed
> because it was unable to resolve the revision property variable.
> >>
> >> C:\rpatrick\work\projects\jcs-las\util>mvn clean install [INFO]
> >> Scanning for projects...
> >> [ERROR] [ERROR] Some problems were encountered while processing the
> POMs:
> >> [FATAL] Non-resolvable parent POM for
> >> oracle.jcs.lifecycle:util:[unknown-version
> >> ]: Failure to find oracle.jcs.lifecycle:app-to-cloud:pom:${revision}
> >> in
> >> https://urldefense.proofpoint.com/v2/url?u=http-3A__a=DwIDaQ=RoP1
> >> Y
> >> umCXCgaWHvlZYR8PQcxBKCX5YTpkKY057SbK10=Ql5uwmbofQMW0iErugdCnFgO-CBG
> >> r
> >> _pt_OzwdxJosG0=3nZZwc0AT7pfHVI5gfXOLR0kIk5Pd5HKhazn6HJu6HY=by9uci
> >> i pxSZU0-Wn16t7grG7a5Djk4ZH9440pGIayRE=
> >> https://urldefense.proofpoint.com/v2/url?u=http-3A__rtifactory-2Dslc.
> >> o
> >> raclecorp.com_artifactory_repo1=DwIFaQ=PskvixtEUDK7wuWU-tIg6oKuGY
> >> B
> >> RbrMXk2FZvF0UfTo=dLxYM3PBhAqFnkH7uKz_OVZL1uyui4QoEmBCjCmEiTk=mQrJ
> >> O
> >> CEKXlLF5VNECH6aqvyAu4kATrZgYUsiitvnfwY=oPO-3-7EEwzSMAr8-re0YxZdReMu
> >> 1 5_A4OMXDtdtFyA=  was cached in the local reposito ry, resolution
> >> will not be reattempted until the update interval of repo1 has el apsed
> or updates are forced and 'parent.relativePath' points at wrong local POM @
> line 7, column 13  @ [ERROR] The 

Re: [EXTERNAL] RE: Continuous Delivery with Maven now possible?

2017-05-07 Thread Eric Benzacar
I'm confused by something in Karl's blog as well as the instructions for
the flatten-maven-plugin and the actual release notes for Maven 3.5.

In all the above, they talk about the ${revision}, ${sha1}, ${changelist}
parameters.  But what is so special about those particular parameters?  Can
I not use any parameter named of my choosing?

Afterall, the ${revision} value is being set by an environment property, so
can I not just call it ${buildNumber} instead?

Ex:

com.soebes.examples.j2ee parent
1.2.1-${buildNumber} pom ..
 ... SNAPSHOT 


Why do I need to use ${revision}?
https://maven.apache.org/maven-ci-friendly.html specifically mentions the
above parameters.  Why?


Thanks,

Eric


On Thu, May 4, 2017 at 9:40 PM, Justin Georgeson  wrote:

> Yup :)
>
> -Original Message-
> From: Karl Heinz Marbaise [mailto:khmarba...@gmx.de]
> Sent: Thursday, May 4, 2017 4:52 PM
> To: Justin Georgeson ; Maven Users List <
> users@maven.apache.org>; i...@soebes.de
> Subject: Re: [EXTERNAL] RE: Continuous Delivery with Maven now possible?
>
> External Sender: Use caution with links/attachments.
>
>
>
> Hi,
>
> On 04/05/17 22:52, Justin Georgeson wrote:
> > Also I believe the partial reactor switches don't work for Tycho builds.
>
> You mean -pl ..option I suppose?
>
> As far as I know Tycho is handling that at the wrong time of the maven
> build and furthermore handles in this relationship some other things wrong
> which results in not working things like this..
>
> Kind regards
> Karl Heinz Marbaise
>
> >
> > -Original Message-
> > From: Robert Patrick [mailto:robert.patr...@oracle.com]
> > Sent: Thursday, May 4, 2017 3:18 PM
> > To: Maven Users List ; i...@soebes.de
> > Subject: [EXTERNAL] RE: Continuous Delivery with Maven now possible?
> >
> > External Sender: Use caution with links/attachments.
> >
> >
> >
> > Hard to train developers to break old habits but thanks... :-)
> >
> >
> >
> > -Original Message-
> > From: Karl Heinz Marbaise [mailto:khmarba...@gmx.de]
> > Sent: Thursday, May 04, 2017 3:16 PM
> > To: Robert Patrick; Maven Users List; i...@soebes.de
> > Subject: Re: Continuous Delivery with Maven now possible?
> >
> > Hi Robert,
> >
> > Ah now I see the issue.
> >
> > If you have a multi module build you should use
> >
> > mvn -pl moduleToBuild clean install
> >
> > but from root location and don't change into the module directory cause
> this can't work like this.
> >
> > Kind regards
> > Karl Heinz Marbaise
> >
> > On 04/05/17 22:08, Robert Patrick wrote:
> >> Hi Karl,
> >>
> >> If I define the revision property in the top-level POM, I cannot refer
> to it in the module POMs'  elements *and* still retain the ability
> to build from the module directory, right?  I tried this and it failed
> because it was unable to resolve the revision property variable.
> >>
> >> C:\rpatrick\work\projects\jcs-las\util>mvn clean install [INFO]
> >> Scanning for projects...
> >> [ERROR] [ERROR] Some problems were encountered while processing the
> POMs:
> >> [FATAL] Non-resolvable parent POM for
> >> oracle.jcs.lifecycle:util:[unknown-version
> >> ]: Failure to find oracle.jcs.lifecycle:app-to-cloud:pom:${revision}
> >> in
> >> https://urldefense.proofpoint.com/v2/url?u=http-3A__a=DwIDaQ=RoP1
> >> Y
> >> umCXCgaWHvlZYR8PQcxBKCX5YTpkKY057SbK10=Ql5uwmbofQMW0iErugdCnFgO-CBG
> >> r
> >> _pt_OzwdxJosG0=3nZZwc0AT7pfHVI5gfXOLR0kIk5Pd5HKhazn6HJu6HY=by9uci
> >> i pxSZU0-Wn16t7grG7a5Djk4ZH9440pGIayRE=
> >> https://urldefense.proofpoint.com/v2/url?u=http-3A__rtifactory-2Dslc.
> >> o
> >> raclecorp.com_artifactory_repo1=DwIFaQ=PskvixtEUDK7wuWU-tIg6oKuGY
> >> B
> >> RbrMXk2FZvF0UfTo=dLxYM3PBhAqFnkH7uKz_OVZL1uyui4QoEmBCjCmEiTk=mQrJ
> >> O
> >> CEKXlLF5VNECH6aqvyAu4kATrZgYUsiitvnfwY=oPO-3-7EEwzSMAr8-re0YxZdReMu
> >> 1 5_A4OMXDtdtFyA=  was cached in the local reposito ry, resolution
> >> will not be reattempted until the update interval of repo1 has el apsed
> or updates are forced and 'parent.relativePath' points at wrong local POM @
> line 7, column 13  @ [ERROR] The build could not read 1 project -> [Help 1]
> [ERROR]
> >> [ERROR]   The project oracle.jcs.lifecycle:util:[unknown-version]
> (C:\rpatrick\w
> >> ork\projects\jcs-las\util\pom.xml) has 1 error
> >> [ERROR] Non-resolvable parent POM for oracle.jcs.lifecycle:util:[
> unknown-ver
> >> sion]: Failure to find
> >> oracle.jcs.lifecycle:app-to-cloud:pom:${revision} in http
> >> ://artifactory-slc.oraclecorp.com/artifactory/repo1 was cached in the
> >> local repo sitory, resolution will not be reattempted until the
> >> update interval of repo1 ha s elapsed or updates are forced and
> >> 'parent.relativePath' points at wrong local POM @ line 7, column 13
> >> -> [Help 2] [ERROR] [ERROR] To see the full stack trace of the
> >> errors, re-run Maven with the -e swit ch.
> >> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> >> [ERROR]
> >> [ERROR] For more information 

Re: [EXTERNAL] RE: Continuous Delivery with Maven now possible?

2017-05-07 Thread Eric Benzacar
Hi,

Interesting.  Would something like this be functional then?  It seems to
work, but I don't know if it is working as expected, or by fluke:

com.soebes.examples.j2ee parent
${revision} pom .. 

1.2.1-${buildNumber}
SNAPSHOT



Then at the command line, I can either set the buildNumber in the case of a
build:
mvn installl -DbuildNumber=12345

This works, but I don't know if I am using this as designed/expected.

Thanks,

Eric


On Sun, May 7, 2017 at 9:59 PM, Bernd Eckenfels 
wrote:

> Hello,
>
> Only those specific properties are allowed. If I remember correctly the
> reason for it is a mixture between it is not possible to support full
> property resolving in this stage of the model builder and the intention to
> harmonize/restrict to familiarly named usecases.
>
> https://git-wip-us.apache.org/repos/asf?p=maven.git;a=
> blobdiff;f=maven-model-builder/src/main/java/org/apache/maven/model/
> interpolation/AbstractStringBasedModelInterpolator.java;h=
> b47edbe9898b42e25e53afdfb0447ba59183f6a5;hp=cee376f1134db6d78a8bd78ff9f0c7
> 108d86e448;hb=51cc76c32625be2f807dcf2ffbeb085984729b57;hpb=
> 181b0215aa1199e152db9d2c08b1a01436547805
>
> Gruss
> Bernd
> --
> http://bernd.eckenfels.net
> 
> From: Eric Benzacar 
> Sent: Monday, May 8, 2017 3:35:46 AM
> To: Maven Users List
> Cc: i...@soebes.de
> Subject: Re: [EXTERNAL] RE: Continuous Delivery with Maven now possible?
>
> I'm confused by something in Karl's blog as well as the instructions for
> the flatten-maven-plugin and the actual release notes for Maven 3.5.
>
> In all the above, they talk about the ${revision}, ${sha1}, ${changelist}
> parameters.  But what is so special about those particular parameters?  Can
> I not use any parameter named of my choosing?
>
> Afterall, the ${revision} value is being set by an environment property, so
> can I not just call it ${buildNumber} instead?
>
> Ex:
>
> com.soebes.examples.j2ee parent artifactId>
> 1.2.1-${buildNumber} pom ..
>  ... SNAPSHOT 
>
>
> Why do I need to use ${revision}?
> https://maven.apache.org/maven-ci-friendly.html specifically mentions the
> above parameters.  Why?
>
>
> Thanks,
>
> Eric
>
>
> On Thu, May 4, 2017 at 9:40 PM, Justin Georgeson 
> wrote:
>
> > Yup :)
> >
> > -Original Message-
> > From: Karl Heinz Marbaise [mailto:khmarba...@gmx.de]
> > Sent: Thursday, May 4, 2017 4:52 PM
> > To: Justin Georgeson ; Maven Users List <
> > users@maven.apache.org>; i...@soebes.de
> > Subject: Re: [EXTERNAL] RE: Continuous Delivery with Maven now possible?
> >
> > External Sender: Use caution with links/attachments.
> >
> >
> >
> > Hi,
> >
> > On 04/05/17 22:52, Justin Georgeson wrote:
> > > Also I believe the partial reactor switches don't work for Tycho
> builds.
> >
> > You mean -pl ..option I suppose?
> >
> > As far as I know Tycho is handling that at the wrong time of the maven
> > build and furthermore handles in this relationship some other things
> wrong
> > which results in not working things like this..
> >
> > Kind regards
> > Karl Heinz Marbaise
> >
> > >
> > > -Original Message-
> > > From: Robert Patrick [mailto:robert.patr...@oracle.com]
> > > Sent: Thursday, May 4, 2017 3:18 PM
> > > To: Maven Users List ; i...@soebes.de
> > > Subject: [EXTERNAL] RE: Continuous Delivery with Maven now possible?
> > >
> > > External Sender: Use caution with links/attachments.
> > >
> > >
> > >
> > > Hard to train developers to break old habits but thanks... :-)
> > >
> > >
> > >
> > > -Original Message-
> > > From: Karl Heinz Marbaise [mailto:khmarba...@gmx.de]
> > > Sent: Thursday, May 04, 2017 3:16 PM
> > > To: Robert Patrick; Maven Users List; i...@soebes.de
> > > Subject: Re: Continuous Delivery with Maven now possible?
> > >
> > > Hi Robert,
> > >
> > > Ah now I see the issue.
> > >
> > > If you have a multi module build you should use
> > >
> > > mvn -pl moduleToBuild clean install
> > >
> > > but from root location and don't change into the module directory cause
> > this can't work like this.
> > >
> > > Kind regards
> > > Karl Heinz Marbaise
> > >
> > > On 04/05/17 22:08, Robert Patrick wrote:
> > >> Hi Karl,
> > >>
> > >> If I define the revision property in the top-level POM, I cannot refer
> > to it in the module POMs'  elements *and* still retain the
> ability
> > to build from the module directory, right?  I tried this and it failed
> > because it was unable to resolve the revision property variable.
> > >>
> > >> C:\rpatrick\work\projects\jcs-las\util>mvn clean install [INFO]
> > >> Scanning for projects...
> > >> [ERROR] [ERROR] Some problems were encountered while processing the
> > POMs:
> > >> [FATAL] Non-resolvable parent POM for
> > >> oracle.jcs.lifecycle:util:[unknown-version
> > >> ]: Failure to find oracle.jcs.lifecycle:app-to-cloud:pom:${revision}
> > >> in
> > >>