dfee 发表于 2015-8-1 13:37:32

[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-comp

  
Some problems were encountered while building the effective model for com.ocrdaddy:portal:war:1.0.0-BUILD-SNAPSHOT
'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 122, column 12
'build.plugins.plugin.version' for org.apache.maven.plugins:maven-war-plugin is missing. @ line 130, column 12

It is highly recommended to fix these problems because they threaten the stability of your build.

For this reason, future Maven versions might no longer support building such malformed projects.

  
  
  add plugin
  http://maven.apache.org/plugins/maven-compiler-plugin/usage.html
  
  
  
  
  pom.xml
  
  
  

    4.0.0
    com.ocrdaddy
    portal
    abc
    war
    1.0.0-BUILD-SNAPSHOT
   
      1.6
      3.0.6.RELEASE
      1.6.9
      1.6.4
   
   
      
      
            org.springframework
            spring-context
            ${org.springframework-version}
            
               
               
                  commons-logging
                  commons-logging
               
            
      
      
            org.springframework
            spring-webmvc
            ${org.springframework-version}
      
               
      
      
            org.aspectj
            aspectjrt
            ${org.aspectj-version}
            
      
      
      
            org.slf4j
            slf4j-api
            ${org.slf4j-version}
      
      
            org.slf4j
            jcl-over-slf4j
            ${org.slf4j-version}
            runtime
      
      
            org.slf4j
            slf4j-log4j12
            ${org.slf4j-version}
            runtime
      
      
            log4j
            log4j
            1.2.15
            
               
                  javax.mail
                  mail
               
               
                  javax.jms
                  jms
               
               
                  com.sun.jdmk
                  jmxtools
               
               
                  com.sun.jmx
                  jmxri
               
            
            runtime
      
      
      
            javax.inject
            javax.inject
            1
      
               
      
      
            javax.servlet
            servlet-api
            2.5
            provided
      
      
            javax.servlet.jsp
            jsp-api
            2.1
            provided
      
      
            javax.servlet
            jstl
            1.2
      
   
      
      
            junit
            junit
            4.7
            test
               
   
   
      
            
                org.apache.maven.plugins
                maven-compiler-plugin
               
                  ${java-version}
                  ${java-version}
               
      2.3.2
            
            
                org.apache.maven.plugins
                maven-war-plugin
               
                  abc
               
2.1.1
            
            
                org.apache.maven.plugins
                maven-dependency-plugin
               
                  
                        install
                        install
                        
                            sources
                        
                  
               
            
            
                org.apache.maven.plugins
                maven-resources-plugin
                2.5
               
                  UTF-8
页: [1]
查看完整版本: [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-comp