I guess this "functionality" isn't present in Maven, as it goes against the
"best practice" Maven is trying to enforce.
If an artifact is supposed to be used as both an external dependency and a
webapp, it should be bundled in its own jar, and user as a normal dependency
in both project. To be more precise, the buisness logic (which is to be
re-used as a dependency in another project) should be in another project,
well the user interface, and all the webapp related stuff should stay in the
war project.

Well, at least, that's my point of view on the matter.

Denis.


Matt Raible-3 wrote:
> 
> I discovered this same thing last week.
> 
> http://www.nabble.com/Re%3A-Converting-AppFuse-to-a-Maven-2-Project-p5870757.html
> 
> Seems like a bug to me, but it's probably more of a missing feature.
> What would it take to add this functionality?
> 
> Thanks,
> 
> Matt
> 
> On 8/22/06, alexsun <[EMAIL PROTECTED]> wrote:
>>
>> I use this configuration in my pom file
>> ...
>> <dependency>
>>           <groupId><!-- groupId of the war --></groupId>
>>           <artifactId><!-- artifactId of the war --></artifactId>
>>           <version><! -- version of the war --></version>
>>           <type>war</type>
>> </dependency>
>> ...
>>
>> but during build process get error that classes from war-package not
>> found.
>>
>> Why?
>> --
>> View this message in context:
>> http://www.nabble.com/Maven-cannot-find-dependencies-classes-from-WEB-INF-classes-tf2147059.html#a5928069
>> Sent from the Maven - Users forum at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Maven-cannot-find-dependencies-classes-from-WEB-INF-classes-tf2147059.html#a5930280
Sent from the Maven - Users forum at Nabble.com.


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

Reply via email to