You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by hujirong <ji...@gmail.com> on 2012/06/21 22:26:47 UTC

We have a duplicate org/apache/log4j/varia/ExternallyRolledFileAppender.class

[WARNING] We have a duplicate
org/apache/log4j/varia/ExternallyRolledFileAppender.class in
C:\Users\Administrator\.m2\repository\log4j\log4j\1.2.14\log4j-1.2.14.jar

What does this mean? I deleted  org/apache folder in
C:\Users\Administrator\.m2\repository, still having this error.

Thanks
Jirong

--
View this message in context: http://maven.40175.n5.nabble.com/We-have-a-duplicate-org-apache-log4j-varia-ExternallyRolledFileAppender-class-tp5711741.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


Re: We have a duplicate org/apache/log4j/varia/ExternallyRolledFileAppender.class

Posted by Joseph <wu...@gmail.com>.
If u were using oracle jdk 1.5+,have a try with jvm param -xx:+TraceClassLoading ,this might helps a little

在 2012-6-22,8:26,hujirong <ji...@gmail.com> 写道:

> [WARNING] We have a duplicate
> org/apache/log4j/varia/ExternallyRolledFileAppender.class in
> C:\Users\Administrator\.m2\repository\log4j\log4j\1.2.14\log4j-1.2.14.jar
> 
> What does this mean? I deleted  org/apache folder in
> C:\Users\Administrator\.m2\repository, still having this error.
> 
> Thanks
> Jirong
> 
> --
> View this message in context: http://maven.40175.n5.nabble.com/We-have-a-duplicate-org-apache-log4j-varia-ExternallyRolledFileAppender-class-tp5711741.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


Re: We have a duplicate org/apache/log4j/varia/ExternallyRolledFileAppender.class

Posted by hujirong <ji...@gmail.com>.
Here are the only two differences between a good and a bad build:

https://lh4.googleusercontent.com/-S5iu0VTiKK4/T-OaSfWwwOI/AAAAAAAAF1A/GpLGVRiGTCY/s1110/shade.png

https://lh4.googleusercontent.com/-EWf0MkoYqJc/T-OaSzzk0CI/AAAAAAAAF1A/6m_3paKLFlA/s1109/shade2.png

--
View this message in context: http://maven.40175.n5.nabble.com/We-have-a-duplicate-org-apache-log4j-varia-ExternallyRolledFileAppender-class-tp5711741p5711759.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


Re: We have a duplicate org/apache/log4j/varia/ExternallyRolledFileAppender.class

Posted by hujirong <ji...@gmail.com>.
 You mentioned "shade", I find the shade. What else you need?

Thanks
Jirong

--
View this message in context: http://maven.40175.n5.nabble.com/We-have-a-duplicate-org-apache-log4j-varia-ExternallyRolledFileAppender-class-tp5711741p5711756.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


Re: We have a duplicate org/apache/log4j/varia/ExternallyRolledFileAppender.class

Posted by Wayne Fay <wa...@gmail.com>.
> I opened the jar, don't see anything abnormal. But do find a new added
> project with shade in it:

I don't understand what this has to do with anything else. It seems
more explanation is required if you want a helpful answer.

Wayne

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


Re: We have a duplicate org/apache/log4j/varia/ExternallyRolledFileAppender.class

Posted by hujirong <ji...@gmail.com>.
I opened the jar, don't see anything abnormal. But do find a new added
project with shade in it:

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-shade-plugin</artifactId>
				<executions>
					<execution>
						<phase>package</phase>
						<goals>
							<goal>shade</goal>
						</goals>
						<configuration>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

This is version defined in the parent POM:

<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-shade-plugin</artifactId>
					<version>1.7</version>
				</plugin>



--
View this message in context: http://maven.40175.n5.nabble.com/We-have-a-duplicate-org-apache-log4j-varia-ExternallyRolledFileAppender-class-tp5711741p5711752.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


Re: We have a duplicate org/apache/log4j/varia/ExternallyRolledFileAppender.class

Posted by Wayne Fay <wa...@gmail.com>.
> [WARNING] We have a duplicate
> org/apache/log4j/varia/ExternallyRolledFileAppender.class in
> C:\Users\Administrator\.m2\repository\log4j\log4j\1.2.14\log4j-1.2.14.jar
>
> What does this mean? I deleted  org/apache folder in
> C:\Users\Administrator\.m2\repository, still having this error.

Did you open up log4j-1.2.14.jar and inspect the contents in Winzip or
another tool to see if perhaps there is a problem with this jar file?

Otherwise, are you using shade or something in your build? We need
more info before we can give you better answers.

Wayne

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