Doing an ant depend in maven -


on new project using maven. have found problem solved in ant using ant target depend. problem have class public fields being referenced other classes. if remove 1 of these fields, code should not compile, seems classes referencing not compiled, though specific class compiled.

does maven provide similar function ant depend, or doing wrong?

as far know there no ant depend in maven. compile plugin should detect changes , recompile them. maven compile using javac , had problems of not correctly finding related changes (the same problem when build ant projects javac).

i did test on project using maven-compiler-plugin:2.3.2 , problem occurs. me problem disappears when specify newer compiler plugin in pom:

<plugin>     <artifactid>maven-compiler-plugin</artifactid>     <version>3.1</version>  </plugin> 

after compiles more classes , works. try use other compiler javac more suitable incremental builds eclipse 1 see non javac compiler docu.

for release builds suggest use mvn clean package can sure project compiled , not suffering out of date files.

update:

i found error mcompiler-160 related problem since using 2.3.2 version. maybe check compiler version too.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -