You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by WhiteMarlin <we...@cytoanalytics.com> on 2011/09/16 22:43:55 UTC

Re: Incorrect assembly created with Maven 3.0.3

Thorsten Heit wrote:
> 
> ...snip ...
> 
> But what puzzles me is that the archives created by Maven 2.2.1 and Maven
> 3.0.3 are different, and I don't see a reason why...
> 
> ...snip...
> 

Hi there,

Did you ever get anywhere with this? I'm seeing the same problem: Maven
3.0.3 adds batik-js-1.7.jar and omits serializer-2.7.1.jar.

Though I am not positive, I believe this is the cause of an exception I see
at runtime, the stack trace of which starts like this:

java.lang.IllegalAccessError:
org/apache/xml/serializer/ExtendedContentHandler
	at
org.apache.xalan.transformer.TransformerImpl.createSerializationHandler(TransformerImpl.java:1233)
        ...

Thanks!


--
View this message in context: http://maven.40175.n5.nabble.com/Incorrect-assembly-created-with-Maven-3-0-3-tp4393328p4811951.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Antwort: Re: Incorrect assembly created with Maven 3.0.3

Posted by Thorsten Heit <th...@vkb.de>.
Hi,

> Thorsten Heit wrote:
> > 
> > ...snip ...
> > 
> > But what puzzles me is that the archives created by Maven 2.2.1 and 
Maven
> > 3.0.3 are different, and I don't see a reason why...
> > 
> > ...snip...
> > 
> 
> Hi there,
> 
> Did you ever get anywhere with this? I'm seeing the same problem: Maven
> 3.0.3 adds batik-js-1.7.jar and omits serializer-2.7.1.jar.
> 
> Though I am not positive, I believe this is the cause of an exception I 
see
> at runtime, the stack trace of which starts like this:
> 
> java.lang.IllegalAccessError:
> org/apache/xml/serializer/ExtendedContentHandler
>    at
> org.apache.xalan.transformer.TransformerImpl.createSerializationHandler
> (TransformerImpl.java:1233)
>         ...

I get a ClassNotFoundException at runtime. I don't know exactly which 
class, but it was one from the serializer jar...

Unfortunately the only solution I have so far is to directly add a 
dependency to the serializer jar in the pom although no class in the 
project uses it - it is used transitively by xerces or xalan I guess...


Regards

Thorsten

Re: Re: Incorrect assembly created with Maven 3.0.3

Posted by Thorsten Heit <th...@vkb.de>.
Hi,

> Just a wild guess, do you have a dependencyManagament handling these
> artifacts where the scope is defined? I've seen different behavior
> between Maven 2.x and 3.0.x due to this (MJBOSSPACK-40 [1]).

No, I haven't used dependency management. I simply referenced xerces 
and/or xalan (don't remember it exactly because I changed the project in 
the meantime...)


Regards

Thorsten

Re: Incorrect assembly created with Maven 3.0.3

Posted by Anders Hammar <an...@hammar.net>.
Just a wild guess, do you have a dependencyManagament handling these
artifacts where the scope is defined? I've seen different behavior
between Maven 2.x and 3.0.x due to this (MJBOSSPACK-40 [1]).

/Anders

[1] http://jira.codehaus.org/browse/MJBOSSPACK-40

On Fri, Sep 16, 2011 at 22:43, WhiteMarlin <we...@cytoanalytics.com> wrote:
>
> Thorsten Heit wrote:
>>
>> ...snip ...
>>
>> But what puzzles me is that the archives created by Maven 2.2.1 and Maven
>> 3.0.3 are different, and I don't see a reason why...
>>
>> ...snip...
>>
>
> Hi there,
>
> Did you ever get anywhere with this? I'm seeing the same problem: Maven
> 3.0.3 adds batik-js-1.7.jar and omits serializer-2.7.1.jar.
>
> Though I am not positive, I believe this is the cause of an exception I see
> at runtime, the stack trace of which starts like this:
>
> java.lang.IllegalAccessError:
> org/apache/xml/serializer/ExtendedContentHandler
>        at
> org.apache.xalan.transformer.TransformerImpl.createSerializationHandler(TransformerImpl.java:1233)
>        ...
>
> Thanks!
>
>
> --
> View this message in context: http://maven.40175.n5.nabble.com/Incorrect-assembly-created-with-Maven-3-0-3-tp4393328p4811951.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org