compiling project with jdk1.5 using maven2

前端 未结 2 2057
栀梦
栀梦 2021-01-19 03:46

i managed to create my project structure using maven2. but when am compiling my project using mvn install getting error generics are not supported in -source 1.3

goo

2条回答
  •  天命终不由人
    2021-01-19 04:38

    There's an "easier" way to accomplish this, without having to paste the same snippet all over your modules. You can set up a reactor and then you refer to it from all the other modules, like this:

      
        com.foo.bar
        reactor    
        1.0-SNAPSHOT
      
    

    In the pom file of your reactor you have to put this:

    pom
    

    To let maven know that it's not a jar/war, etc.

    Hope it helps

提交回复
热议问题