project organization [message #203672] |
Fri, 06 April 2007 09:54 |
Eclipse User |
|
|
|
Originally posted by: eclipse.open-doors.ch
Hello,
I've to organize multiple projects within eclipse using Axis2 (implementing
some web services).
I've had the idea to use base projects which contains only the axis2 jars, a
second with different other external jars (i.e. jakarta commons).
So the projects used
- axis2: axis2 jars
- libs: other 3rd party libraries
- generated: sources generated by WSDL2java
- common: shared project specific classes.
- locator: implementing a WSDL service
- soe:implementing other WSDL service
- ...
The dependencies are:
generated->axis2
common->axis2
common->libs
common->generated
locator->common
locator->generated
locator->libs
locator->axis2
soe->common
soe->generated
soe->libs
soe->axis2
I know how to relate the projects (project->properties->java build
path->projects). But building projects fails until the libraries of the sub
projects (i.e. axis2) has been added. I've seen that this is possible
without adding the jars of the sub project, but I don't know how. Could
anybody help? Thanks in advance.
|
|
|
Re: project organization [message #203735 is a reply to message #203672] |
Fri, 06 April 2007 15:37 |
Eclipse User |
|
|
|
Originally posted by: wegener.cboenospam.com
Marko Umek wrote:
> Hello,
>
> I've to organize multiple projects within eclipse using Axis2 (implementing
> some web services).
>
> I've had the idea to use base projects which contains only the axis2 jars, a
> second with different other external jars (i.e. jakarta commons).
>
> So the projects used
> - axis2: axis2 jars
> - libs: other 3rd party libraries
> - generated: sources generated by WSDL2java
> - common: shared project specific classes.
>
> - locator: implementing a WSDL service
> - soe:implementing other WSDL service
> - ...
>
> The dependencies are:
>
> generated->axis2
>
> common->axis2
> common->libs
> common->generated
>
> locator->common
> locator->generated
> locator->libs
> locator->axis2
>
> soe->common
> soe->generated
> soe->libs
> soe->axis2
>
> I know how to relate the projects (project->properties->java build
> path->projects). But building projects fails until the libraries of the sub
> projects (i.e. axis2) has been added. I've seen that this is possible
> without adding the jars of the sub project, but I don't know how. Could
> anybody help? Thanks in advance.
>
>
Go the the Order and Export tab on the Java Build Path dialog for the
sub projects. Check the jar files that you want the top level projects
to have access to. This makes the jar files available to dependent
projects (it "exports" the classpath entry for the selected jars). Go
to the top level projects, remove the explicit references to the sub
project jar files. Make sure that the top level projects refer to the
sub projects on the Projects tab.
|
|
|
Powered by
FUDForum. Page generated in 0.08154 seconds