Maven classpath order issues -


Is there a way to set a special order order in Maven 2, I would rather experience that random order Moment?

There are several valid reasons for doing this:

  • A vendor has supplied a patch jar, which includes overriding classes for the already released jar, hence the classpath Patch jars should first be seen in order to give.
  • Depot dependencies Based on the discovery of intrusion, two jars have been found, the same package has the same class with different indicators. For example:

jboss jbossall-client 4.2.0.GA

org.hibernate Hibernate 3.1

Both include: org.hibernate.util.ReflectHelper.class, but the getFastClass method is missing in the jbossall-client version.

From Googling I think that this is probably a point of dispute between the Maven enthusiasts and people are facing this particular problem, but of course there are valid reasons for the order of the class.

Any advice from any person who has solved this special poem!

Thanks

Version 2.0.9 uses Pam order for classpath as Meway, so you can actually manipulate it now. We allow most external libraries to suppress reciprocal dependence which we are directly involved.

From the release notes of Maven 2.0.9:

MNG-1412 / MNG-3111 introduced the order regarding the determination of reliance on the classpath. In the past, natural set ordering was used and the result was shown strange results. The sequence is now protected from your pom, while the dependencies added by the heir have been added earlier. Those who had conflicting or duplicate dependencies in construction can change the output. In short, if you have strange issues with 2.0.9, then look at the dependency to see if you have a conflict somewhere.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -