Hello Michal,
I tried to understand how to use that API, from what I can see the
following
public void build(Project projectValue) requires already the Project
avalable it means :
something like
File f=new File(s);
if (f.exists()){
Project p=MavenUtils.getProject(f); // Using Maven 1 parser
DependencyDescriberBean dependency=new DependencyDescriberBean
();
dependency.build(p);
System.out.println("OK");
}
..
my problem relies in the first line. The parsing itself fails. Telling me
that the dependency id does not exist ....... that were I am stuck .... I
have a file POM I want to parse it and crete the Project object.
Probably I have misunderstand you ....sorry for wasting in case your time.
Best Regards
Michele
|---------+---------------------------->
| | Maczka Michal |
| | <[EMAIL PROTECTED]|
| | tf.ch> |
| | |
| | |
| | 17/05/2004 13:49 |
| | Please respond to|
| | "Maven Users |
| | List" |
| | |
|---------+---------------------------->
>------------------------------------------------------------------------------------------------------------------------------|
|
|
|
|
|
|
|
|
|
|
| To: "'Maven Users List'" <[EMAIL
PROTECTED]> |
| cc: (bcc: Michele Forte/SwissRe)
|
| bcc: Michele Forte/SwissRe
|
| Subject: RE: Again about the POM Parser
in Maven 1 |
>------------------------------------------------------------------------------------------------------------------------------|
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 17, 2004 1:32 PM
> To: Maven Users List
> Cc: Maven Users List
> Subject: RE: Again about the POM Parser in Maven 1
>
>
> Hello Michal,
>
> Probably I was not precise enough. My initial aim is to be
> able to parse
> using the API an already working project.xml. Using the
> maven.bat I can
> normally work with it. I made before using it in this test also a
> verification using the POM plugin.
>
>
No you were precise enough... :)
Have you looked at this example which to which I have pointed you.
It really does the same things which you want to do ... but it works :)
Michal
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This e-mail, including attachments, is intended for the person(s) or
company named and may contain confidential and/or legally privileged
information. Unauthorized disclosure, copying or use of this information
may be unlawful and is prohibited. If you are not the intended recipient,
please delete this message and notify the sender
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]