Unable to invoke avro-maven plugin

后端 未结 4 1784
星月不相逢
星月不相逢 2021-01-18 21:26

My question is similar to Unable to compile and create .avro file from .avsc using Maven

I have tried all possible things, checked the maven project 100 times, still

4条回答
  •  感情败类
    2021-01-18 21:42

    Below is a sample POM file that I've successfully used. My guess is that your sourceDirectory & outputDirectory tags weren't properly defined...

    
        4.0.0
        com.example
        helloworld
        1.0-SNAPSHOT
        jar
        
            
            2.6.0-cdh5.4.0
            1.7.7
            1.1.0
            
            UTF-8
            UTF-8
        
        
            
                org.apache.hadoop
                hadoop-client
                ${hadoop.version}
            
            
                org.apache.avro
                avro
                ${avro.version}
            
            
                org.apache.avro
                avro-tools
                ${avro.version}
            
            
                org.apache.mrunit
                mrunit
                ${mrunit.version}
                hadoop2
            
        
        
            
                
                    
                    maven-compiler-plugin
                    3.0
                    
                        1.7
                        1.7
                    
                
                
                    org.apache.avro
                    avro-maven-plugin
                    ${avro.version}
                    
                        
                            generate-sources
                            
                                schema
                            
                            
                                ${project.basedir}/src/main/avro/
                                ${project.basedir}/src/main/java/
                            
                        
                    
                
                
                    org.apache.maven.plugins
                    maven-eclipse-plugin
                    2.9
                    
                        true
                    
                
            
        
    
    

提交回复
热议问题