Maven: JAR will be empty - no content was marked for inclusion

前端 未结 2 1415
死守一世寂寞
死守一世寂寞 2020-12-05 18:22

I have a minor problem with maven. When I run the command mvn package I get the following warning:

[WARNING] JAR will be empty - no content was marked for in

2条回答
  •  既然无缘
    2020-12-05 19:18

    Please try this one:

    
      ${project.artifactId}-${project.version}
      src
      test
      
        
          src
          
            **/*.java
          
        
      
      
        
          test
          
            **/*.java
          
        
      
      
        
          org.apache.maven.plugins
          maven-compiler-plugin
          ${maven-compiler-plugin.version}
          
            ${maven.compiler.source}
            ${maven.compiler.target}
          
        
      
    
    
    

    If you want to convert an existing Eclipse Java Project just right click on Java Project and click Configure/Convert to Maven Project.

提交回复
热议问题