AW: launching java process from maven

2005-08-08 Thread service
try sthg like this
 
...
ant:path id=jmeter.classpath
  ant:path refid=maven.dependency.classpath/
/ant:path
...


Mark

Hi,

 

I'm wondering if it would be possible to launch a java process from maven
providing it the project.xml dependencies classpath?

 

To be more precice I want to launch jmeter but i don't want to manually
create the classpath in a batch file or something because it already nicely
exists in a project file. 

 

I already got to the stage that i created an maven.xml file, included a new
goal and executed a process using ant:exec. But i'm stuck at the point in
which i have to insert the classpath value, where do i get it from?

 

Can anyone help?

 

Thanks,

Robin



**
For information, services and offers, please visit our web site: a 
href=http://www.klm.com.;http://www.klm.com./a This e-mail and any 
attachment may contain confidential and privileged material intended for the 
addressee only. If you are not the addressee, you are notified that no part of 
the e-mail or any attachment may be disclosed, copied or distributed, and that 
any other action related to this e-mail or attachment is strictly prohibited, 
and may be unlawful. If you have received this e-mail by error, please notify 
the sender immediately by return e-mail, and delete this message. Koninklijke 
Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its employees shall 
not be liable for the incorrect or incomplete transmission of this e-mail or 
any attachments, nor responsible for any delay in receipt.
**


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: RE: Adding a local jar to a module's classpath?

2005-08-08 Thread service
enter in your project.properties

maven.jar.artifactId=folder_with_the_archive/archive

You can choose the artifactId as you want. This artifactId must be used in 
project.xml
If you really want to use this solution, it would be a good idea to have a 
folder like ${basedir}/lib.

A better solution is to group it in your own way and put a versioned archive 
into the maven repository hierachy. So there is no need to use this solution.

I think this can only be a temporary solution for porting ant-projects!!!

Mark



You have to have a pom file in the repository.  

For example:

  4.0.0
  weblogic
  weblogic
  9.0


The best place to put it is the remote repository, but you can also put it in 
your local repository.

Also, you should rename the weblogic.jar file to weblogic-9.0.jar, or it will 
fail later on.

-Original Message-
From: Chris Wall [mailto:[EMAIL PROTECTED]
Sent: Friday, August 05, 2005 5:35 PM
To: users@maven.apache.org
Subject: Adding a local jar to a module's classpath?


Hey there.
 
Using Maven2, how do you add a local jar to a module's build classpath?
 
For instance, a module is dependent upon weblogic.jar.  In the module's
pom.xml, I added the following:
 

  weblogic
   weblogic
   9.0
   provided

 
And I've added weblogic.jar to the following structure:
 
C:\Documents and
Settings\Chris\.m2\repository\weblogic\weblogic\9.0\weblogic.jar
 
Unfortunately m2 install produces the following:
 
Downloading:
a 
href=http://repo1.maven.org/maven2/weblogic/weblogic/9.0/weblogic-9.0.pom;htt
p://repo1.maven.org/maven2/weblogic/weblogic/9.0/weblogic-9.0.pom/a
[WARNING] Unable to get resource from repository
a href=http://repo1.maven.org/maven2;http://repo1.maven.org/maven2/a
[INFO] BUILD FAILURE
 
Appreciate your help.  Thanks.
 
-Chris


--
The information contained in this transmission is intended only for
the personal and confidential use of the designated recipients named
herein.  If the reader of this transmission is not the intended
recipient or an agent responsible for delivering it to the intended
recipient, you are hereby notified that you have received this
transmission in error, and that any review, dissemination,
distribution, or copying of this transmission is strictly prohibited.
If you have received this communication in error, please notify the
sender and return and delete the original transmission immediately.
Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]