I am trying to move to netbeans for dev so it is a good question
whether I need the source or just the compiled code. Not finding the
symbols I assume is a failure to access the .class files? Or does
netbeans need access to the source?

How do I share the project between the client and the server? You mean
unify them into 1 project?

I am a bit stumped here because I imagine that this is such a normal
requirement. People write project that import classes from other local
projects all the time. The problem is just how to do this with maven?

Thanks for the feedback.

P

On Mon, Apr 20, 2009 at 6:58 PM, Siegfried Goeschl
<[email protected]> wrote:
> Hi Pieter,
>
> you would like to use transitive dependencies using a WAR - this did not
> work in the past and I doubt that it works now. Having said that I would
> help if you have shared project between client and server. And do really
> need the source or only the class files?! If yes that approach would not
> work either ...
>
> Cheers,
>
> Siegfried Goeschl
>
> pieter claassen wrote:
>> ok, I have narrowed the problem down as probably a maven issue.
>>
>> I have parent.pom and two modules client and server. Client is a war
>> and server is a jar. server needs to get hold of client's source
>> because db4o needs the source for both the client and server (to
>> configure it for each java.class it will store).
>>
>> I have the following dep in server.pom
>>        <dependency>
>>             <groupId>com.musmato</groupId>
>>             <artifactId>client.war</artifactId>
>>             <version>1.0</version>
>>             <type>war</type>
>>             <scope>compile</scope>
>>         </dependency>
>>
>> But when I run mvn clean install on the parent, I can see it build the
>> client.war, pop it in the local mvn repo and then the server build
>> fails to find any of the depedency code.
>>
>> Any ideas? Should this work? I assume it is pretty normal to share
>> code between different maven projects?? Even if one of them is a war?
>>
>> Cheers,
>> P
>>
>> On Mon, Apr 20, 2009 at 2:55 PM, pieter claassen <[email protected]> 
>> wrote:
>>
>>> I have a netbeans project that requires to access sourcecode and
>>> compiled code from a web project. If I set the dependency on the war
>>> file, it just doesn't work (it works on a jar file). How do I access
>>> code produced by a war project in netbeans?
>>>
>>> Regards,
>>> Pieter
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> 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]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to