maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Bhole <dbh...@redhat.com>
Subject Re: Using an ant task inside maven 1.1b2
Date Fri, 13 Jan 2006 01:54:13 GMT
On Fri, 2006-01-13 at 12:18 +1100, Dion Gillard wrote:
> You're confused.
> 
> On 1/13/06, Deepak Bhole <dbhole@redhat.com> wrote:
> >
> > HI,
> >
> > I am using maven 1.1b2, and need to run a Java class from inside maven.
> > >From what I found so far, I gather that I need to use ant from inside
> > maven. I tried this but got an error. I have two questions:
> >
> > 1. Is it possible to execute something from within maven 1.1b2 without
> >    using ant/antrun plugin? If so, how?
> 
> yes, write the same code that you would put in an ant build.xml in maven.xml.
> 

Done, and it worked.

> > 2. Assuming not, I guess I have to use ant afterall.
> >
> > I tried the instructions from this page:
> > http://maven.apache.org/guides/mini/guide-using-ant.html (It doesn't say
> > file name, but I assume project.xml, which is what I updated)
> 
> Nope, that's a maven2 page. You need maven 1 docs:
> http://maven.apache.org/maven-1.x/
> 
> 
> > But as soon as I run "maven" after that, I get an error. I have attached
> > output at the end of this message.
> >
> > Any response would be appreciated.
> 
> The error below is a bad project.xml. You've put maven2 stuff in your
> maven1 project.xml. Badness.

I had encountered a similar issue (unexpected tag) before when packaging
some rpms that went from 1.0 to 1.1b2, but I figured since the maven
page has that particular tag, it should have worked. Ofcourse I didn't
realize that I was looking at the wrong page :)

Thanks!

Deepak


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message