Olivier, thank you very much for the advice. Unfortunately, my quick test of
build-classpath did did not solve my runtime classpath problem. First of
all, the examples of the build-classpath goal that I saw, show how to output
the project's classpath to a file. What I need is to add project
dependencies to a runtime of a maven's "exec" plugin. I did use an <attach>
tag that I set to true, hoping that this will take care of putting all the
dependencies into the runtime, but it didn't. Second, the output file with a
classpath that build-classpath goal produced, did not resolved the artifacts
that are packaged as wars. It does put wars in the classpath, but this,
naturally, does not make classes inside these wars available in the runtime. 


Olivier Dehon-2 wrote:
> 
> Have a look at the build-classpath goal of the dependency plugin:
> http://maven.apache.org/plugins/maven-dependency-plugin/build-classpath-mojo.html
> 
> -Olivier
> 
> On Tue, 2008-05-13 at 11:23 -0700, vicki wrote:
>> Hello,
>> I have a maven's subproject that runs tests against the artifacts of its
>> piers subprojects. Obviously, In other words, to run my tests I need to
>> create dependencies on the artifacts produced by the other subprojects. I
>> run my tests with maven's "exec" plugin. All the artifacts packaged as
>> jars
>> are indeed on my classpath when I run maven exec. But dependencies on the
>> artifacts packaged as wars are not resolved in such a way that classes
>> directory inside these wars are put on the classpath. I do not want to
>> explicitly specify a classpath in the configuration of maven exec plugin.
>> Instead I'd like to have a classpath that is build with project's
>> dependencies.  Can anyone advise a good way of doing this?
>> Thanks a lot.
>> Vicki
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Modify-Classpath-tp17215208p17220036.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to