Re: Work-around for antrun AttachArtifact not working in external Ant build file

2017-06-03 Thread Guillaume Boué
That means you're missing inheritRefs=true in the  task. It is 
necessary for the references to be propagated to subprojects.


I've also added an integration test in 
https://github.com/apache/maven-plugins/tree/trunk/maven-antrun-plugin/src/it/attach-artifact-from-ant-task 
that you can maybe look at.


Guillaume


Le 02/06/2017 à 10:21, Jürgen Weber a écrit :

Hi,

no, still does not work.

Where is your changed source? I could run it in the debugger..

Juergen

Maven project reference not found: maven.project.ref

at
org.apache.maven.ant.tasks.AttachArtifactTask.execute(AttachArtifactTask.java:80)

Am 01.06.2017 19:17 schrieb "Guillaume Boué" :


It's currently in Apache snapshot repository located at
https://repository.apache.org/content/repositories/snapshots. You can add
this repository as a plugin repository to your settings or POM for the test.

 
   apache-snapshots-plugin
   https://repository.apache.org/content/repositories/snapshots/

   
 true
   
 


Le 01/06/2017 à 16:25, Jürgen Weber a écrit :


There is no 3.0.0-SNAPSHOT of maven-antrun-plugin, is it?
org/apache/maven/ant/tasks/AttachArtifactTask.class is in
maven-antrun-plugin-1.8.jar


Am 31.05.2017 19:57 schrieb "Guillaume Boué" :

Hi,

I looked into this issue and committed a fix for it. The core problem was
that the 'attachartifact' task launched from the external Ant build was
working from a clone of the Maven project, instead of the project itself.
Can you try the latest 3.0.0-SNAPSHOT and report back?



Le 31/05/2017 à 19:14, Jürgen Weber a écrit :

Hi,

I found a solution, not pretty, but it actually works:

in an pom-inline antrun task call a Javascript function with the
project as parameter, in Javascript one can do all interesting things
(loop over properties from an ant property file) and call the
attachartifact task.

Cheers,
Juergen


 



script.js:

var runtaskf = function(project) {
aa = project.createTask("attachartifact");
f = new java.io.File("my.jar");
aa.setFile(f);
aa.setType("jar");
aa.setClassifier("test");
aa.perform();
}

2017-05-31 18:32 GMT+02:00 Karl Heinz Marbaise :

Hi,

if i correctly understand you have a property file for each environment
and
maybe some other files and a base artifact (jar/war?) now it sounds you
have
to build for each environment a different jar/war ?

Maybe something like this could help here:

https://github.com/khmarbaise/multienv-maven-plugin/

or:

https://github.com/khmarbaise/iterator-maven-plugin/


Kind regards
Karl Heinz Marbaise


On 31/05/17 11:42, Jürgen Weber wrote:

Hi Jörg,

problem is, I have to build message driven beans, some 20, only
difference
is the queue name in the deployment descriptor. Queue names are listed
in
a
property file.
 I know that Maven wants no environment specific properties in
artifacts,
but Sun defined the activation spec for MDBs. And the activation spec
is
in
code or in ejb-jar.xml, both in the mdb jar. So I have to build a
different
MDB for each queue. And I have to iterate over the queues (which is
possible in ant + JavaScript. Yuck).
So I'd need to attach n artefacts, wherea in a Maven pom I have to list
each artefact individually.
Greetings, Jürgen

Am 30.05.2017 08:45 schrieb "Jörg Schaible"


Re: Executing Apache CXF with Maven

2017-06-03 Thread Martin Gainty
Rapinder


an you copy the source to github


as long as it builds a war one of us can deploy and take a look to see if the 
client will communicate successfully


Regards

Martin
__



From: Rupinder Singh 
Sent: Saturday, May 6, 2017 8:44 AM
To: Maven Users List
Subject: Re: Executing Apache CXF with Maven

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
Developing simple Web services with Apache CXF and 
Maven
www.cse.unsw.edu.au
Developing simple Web services with Apache CXF and Maven Introduction. In this 
lab exercise you will develop a simple Web service using Apache CXF and Maven.



> > 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
>