maven doesn't find class

前端 未结 6 2003
遇见更好的自我
遇见更好的自我 2021-01-13 09:39

I\'ve inherited a huge maven java project and can\'t get it to compile.

mvn compile

Its telling me it can\'t find a class even though its r

6条回答
  •  甜味超标
    2021-01-13 10:37

    Need to add this to the maven-enunciate-plugin:

                            
                                
                                    com.sun
                                    tools
                                    1.7
                                    system
                                    C:\Program Files\Java\jdk1.7.0_79\lib\tools.jar
                                    true
                                
                            
    

    Now it looks like this:

    
                    org.codehaus.enunciate
                    maven-enunciate-plugin
                    1.25
                    
                        ${basedir}/src/main/webapp/WEB-INF/enunciate.xml
                        false
                        false
                        false
                    
                    
                        
                        com.sun
                        tools
                        1.7
                        system
                        C:\Program Files\Java\jdk1.7.0_79\lib\tools.jar
                        true
                        
                    
    
                    
                        
                            
                                assemble
                            
                        
                    
                
    

    And then Downgraded to java 7 from 8.

提交回复
热议问题