I think I need some help form somebody with a better understanding (than 
me) of how maven dependencies work.

Because the Java sdo/impl project includes an optional stax 
loader/serializer it  includes this in its pom.xml file:

        <!-- dependencies for optional StAX functions -->
        <dependency>
            <groupId>stax</groupId>
            <artifactId>stax-api</artifactId>
            <version>1.0.1</version>
            <scope>provided</scope>
            <optional>true</optional>
        </dependency>

One of the new implementation classes in the the sdo/impl project also 
uses the StAX function itself, internally in its implementation.

Now, in the sdo/tools project, we have a test program that calls the 
implementation class that uses the StAX stuff (indirectly though an SDO 
helper interface). Note that the test program in the sdo/tools project has 
no import or direct use of any StAX interfaces.

However, when we now run mvn in the sdo/tools project, the test program, 
mentioned above, fails with the following error:

        java.lang.NoClassDefFoundError: 
javax/xml/stream/XMLStreamException

I was able to fix the problem by copying the stax dependency from the 
sdo/impl pom.xml file and adding it to the pom.xml in the sdo/tools 
project, but this seems a bit ridiculous, since as I mentioned above, the 
use of stax is really only in the sdo/impl project.

Can anybody see what the problem might be, or suggest how to fix this?

Thanks in advance,
Frank.


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

Reply via email to