You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Mike Edwards <mi...@gmail.com> on 2008/12/08 23:54:58 UTC

[2.0] Problems with the Eclipse Maven plugin?

Folks,

When running mvn -Peclipse on the 2.0 code, I am noticing that the Eclipse project files generated 
by the plugin seem to have some problems.

Basically, I find that the project files have runtime dependencies missing so that tests either fail 
entirely or report non-fatal warnings.

The problem area seems to relate to dependencies that are runtime dependencies of the testcases 
(principally) - say, for example, that a testcase uses a composite file that requires handling of 
<interface.wsdl/> elements which requires the interface-wsdl-xml module present at test runtime.  It 
seems as if the plugin does not handle such things correctly.  If the dependency is not marked with 
a <scope/> in the POM, it is ignored entirely.  If it is marked <scope>test</scope> in the POM, then 
it has been my experience to get duplicate entries in the Eclipse dependencies, which have required 
manual exclusions in the POM to deal with.

Is this a bug in the Eclipse plugin or is it meant to work like this?


Yours,  Mike.

Re: [2.0] Problems with the Eclipse Maven plugin?

Posted by Raymond Feng <en...@gmail.com>.
There are a few issues with the pom.xml and MANIFEST.MF.

1) Abuse of maven transitive dependencies, for example, we listed 
tuscany-binding-ws-xml as a "compile" dependency to pull in 
"tuscany-binding-ws". But in fact, tuscany-binding-ws-xml is not required 
for compilation and it's only for runtime or test.

2) Unused OSGi Import-Package, for example, we had 
org.apache.tuscany.sca.xsd.xml in the Import-Package and PDE added 
tuscany-xsd-xml to the classpath. Meanwhile, the tuscany-xsd-xml is declared 
in pom.xml as a runtime or test dependency. We create an explicit classpath 
entry for that and it leads to duplicate classpath entries.

I have fixed the issues but I still cannot run the test cases as the current 
contribution processing aggressively loads all composites in the 
contribution and some of the policy declarations fail the loading.

Thanks,
Raymond
--------------------------------------------------
From: "Mike Edwards" <mi...@gmail.com>
Sent: Tuesday, December 09, 2008 3:16 PM
To: <de...@tuscany.apache.org>
Subject: Re: [2.0] Problems with the Eclipse Maven plugin?

> Raymond Feng wrote:
>> Hi,
>>
>> Can you point me to the project you see problems? I already have all the 
>> modules loaded in my Eclipse workspace and I can probably try what you 
>> are doing.
>>
>> Thanks,
>> Raymond
>>
> Raymond,
>
> Sure, the ones I was having most problems with were the ones in the 
> binding-ws-axis2 module, many of which start up complete composites 
> containing a variety of artifacts, each of which places a runtime 
> dependency on its related processing module (eg interface-wsdl-xml, etc).
>
>
> Yours,  Mike. 


Re: [2.0] Problems with the Eclipse Maven plugin?

Posted by Mike Edwards <mi...@gmail.com>.
Raymond Feng wrote:
> Hi,
> 
> Can you point me to the project you see problems? I already have all the 
> modules loaded in my Eclipse workspace and I can probably try what you 
> are doing.
> 
> Thanks,
> Raymond
> 
Raymond,

Sure, the ones I was having most problems with were the ones in the binding-ws-axis2 module, many of 
which start up complete composites containing a variety of artifacts, each of which places a runtime 
dependency on its related processing module (eg interface-wsdl-xml, etc).


Yours,  Mike.

Re: [2.0] Problems with the Eclipse Maven plugin?

Posted by Raymond Feng <en...@gmail.com>.
Hi,

Can you point me to the project you see problems? I already have all the 
modules loaded in my Eclipse workspace and I can probably try what you are 
doing.

Thanks,
Raymond

--------------------------------------------------
From: "Mike Edwards" <mi...@gmail.com>
Sent: Tuesday, December 09, 2008 9:26 AM
To: <de...@tuscany.apache.org>
Subject: Re: [2.0] Problems with the Eclipse Maven plugin?

> Raymond,
>
> Thanks for pointing me at the clarifications.
>
> However, the clarifications don't get us around the problems.  I'm not 
> convinced that we should be moving the tests into the itest bucket, since 
> that will lead to less frequent testing of individual modules.
>
> At the moment, the tool does not seem to deal correctly with some of the 
> explicit dependencies in the POM files when those dependencies relate to 
> test runtime dependencies - and this is a common thing where a test uses a 
> .composite file as part of its work - since then when the testcase runs 
> all the extensions that are necessary to process the composite file must 
> be present to run the testcase.  I have had to add things back in by hand 
> for the Web services stuff.
>
>
> Yours,  Mike.
>
>> Hi,
>>
>> Please see my clarification on the following thread:
>>
>> http://markmail.org/message/66wfto6z4ryfmx2r
>>
>> Thanks,
>> Raymond
>>
>> --------------------------------------------------
>> From: "Mike Edwards" <mi...@gmail.com>
>> Sent: Monday, December 08, 2008 2:54 PM
>> To: <de...@tuscany.apache.org>
>> Subject: [2.0] Problems with the Eclipse Maven plugin?
>>
>>> Folks,
>>>
>>> When running mvn -Peclipse on the 2.0 code, I am noticing that the 
>>> Eclipse project files generated by the plugin seem to have some 
>>> problems.
>>>
>>> Basically, I find that the project files have runtime dependencies 
>>> missing so that tests either fail entirely or report non-fatal warnings.
>>>
>>> The problem area seems to relate to dependencies that are runtime 
>>> dependencies of the testcases (principally) - say, for example, that a 
>>> testcase uses a composite file that requires handling of 
>>> <interface.wsdl/> elements which requires the interface-wsdl-xml module 
>>> present at test runtime.  It seems as if the plugin does not handle such 
>>> things correctly. If the dependency is not marked with a <scope/> in the 
>>> POM, it is ignored entirely.  If it is marked <scope>test</scope> in the 
>>> POM, then it has been my experience to get duplicate entries in the 
>>> Eclipse dependencies, which have required manual exclusions in the POM 
>>> to deal with.
>>>
>>> Is this a bug in the Eclipse plugin or is it meant to work like this?
>>>
>>>
>>> Yours,  Mike.
>>
>>
> 

Re: [2.0] Problems with the Eclipse Maven plugin?

Posted by Mike Edwards <mi...@gmail.com>.
Raymond,

Thanks for pointing me at the clarifications.

However, the clarifications don't get us around the problems.  I'm not convinced that we should be 
moving the tests into the itest bucket, since that will lead to less frequent testing of individual 
modules.

At the moment, the tool does not seem to deal correctly with some of the explicit dependencies in 
the POM files when those dependencies relate to test runtime dependencies - and this is a common 
thing where a test uses a .composite file as part of its work - since then when the testcase runs 
all the extensions that are necessary to process the composite file must be present to run the 
testcase.  I have had to add things back in by hand for the Web services stuff.


Yours,  Mike.

> Hi,
> 
> Please see my clarification on the following thread:
> 
> http://markmail.org/message/66wfto6z4ryfmx2r
> 
> Thanks,
> Raymond
> 
> --------------------------------------------------
> From: "Mike Edwards" <mi...@gmail.com>
> Sent: Monday, December 08, 2008 2:54 PM
> To: <de...@tuscany.apache.org>
> Subject: [2.0] Problems with the Eclipse Maven plugin?
> 
>> Folks,
>>
>> When running mvn -Peclipse on the 2.0 code, I am noticing that the 
>> Eclipse project files generated by the plugin seem to have some problems.
>>
>> Basically, I find that the project files have runtime dependencies 
>> missing so that tests either fail entirely or report non-fatal warnings.
>>
>> The problem area seems to relate to dependencies that are runtime 
>> dependencies of the testcases (principally) - say, for example, that a 
>> testcase uses a composite file that requires handling of 
>> <interface.wsdl/> elements which requires the interface-wsdl-xml 
>> module present at test runtime.  It seems as if the plugin does not 
>> handle such things correctly. If the dependency is not marked with a 
>> <scope/> in the POM, it is ignored entirely.  If it is marked 
>> <scope>test</scope> in the POM, then it has been my experience to get 
>> duplicate entries in the Eclipse dependencies, which have required 
>> manual exclusions in the POM to deal with.
>>
>> Is this a bug in the Eclipse plugin or is it meant to work like this?
>>
>>
>> Yours,  Mike. 
> 
> 


Re: [2.0] Problems with the Eclipse Maven plugin?

Posted by Raymond Feng <en...@gmail.com>.
Hi,

Please see my clarification on the following thread:

http://markmail.org/message/66wfto6z4ryfmx2r

Thanks,
Raymond

--------------------------------------------------
From: "Mike Edwards" <mi...@gmail.com>
Sent: Monday, December 08, 2008 2:54 PM
To: <de...@tuscany.apache.org>
Subject: [2.0] Problems with the Eclipse Maven plugin?

> Folks,
>
> When running mvn -Peclipse on the 2.0 code, I am noticing that the Eclipse 
> project files generated by the plugin seem to have some problems.
>
> Basically, I find that the project files have runtime dependencies missing 
> so that tests either fail entirely or report non-fatal warnings.
>
> The problem area seems to relate to dependencies that are runtime 
> dependencies of the testcases (principally) - say, for example, that a 
> testcase uses a composite file that requires handling of <interface.wsdl/> 
> elements which requires the interface-wsdl-xml module present at test 
> runtime.  It seems as if the plugin does not handle such things correctly. 
> If the dependency is not marked with a <scope/> in the POM, it is ignored 
> entirely.  If it is marked <scope>test</scope> in the POM, then it has 
> been my experience to get duplicate entries in the Eclipse dependencies, 
> which have required manual exclusions in the POM to deal with.
>
> Is this a bug in the Eclipse plugin or is it meant to work like this?
>
>
> Yours,  Mike.