> 1)I keep getting this error in reference to the generic-war project:
>        'packaging' with value 'war' is invalid. Aggregator projects
> require 'pom' as packaging.
> I tried to changing it to pom but that doesn't seem right.  Is an
> Aggregator any project with sub modules?

Read my post again. You should have a top parent of type pom that has
modules. Those modules are subdirectories under the parent (with the
same directory name as the module) and those modules are typed jar,
war, etc.

> 2)In my war configuration, I try to access a resource that is already
> declared in the "lib" module.

What do you mean by "access a resource"? What are you going to do with it?

> I assume the issue is that ${basedir} now refers to my current location.
> How do I access this resource that is two layers up?

You don't. Each project is an independent project. If you need to use
a resource from another project, you need to reference that artifact
in this project and unpack the file you need to use. This quickly
leads you to a solutions where shared resources are in their own
project and you depend on this across various other artifacts.

> Do I manually reference the directory?
> Or should I be making this resource an artifact somehow?

Depends on what you want to do with it. What do you need to use it for?

Wayne

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

Reply via email to