Convert the kafka project to a maven Project

Source: Internet
Author: User

Convert the kafka project to a maven Project

The default source code provided by kafka is built through sbt. It is not very convenient to import to eclipse, so you can convert it into a maven project first. The pom. xml configuration is as follows:

 
  
   4.0.0
  
  
   com.sina.kafka
  core
  
   0.8.0-beta1
  
  
   2008
  
  
   
    2.8.0
   
  
  
   
    
     scala-tools.org
    
    
     Scala-Tools Maven2 Repository
    
    
     http://scala-tools.org/repo-releases
    
   
  
  
   
    
     scala-tools.org
    
    
     Scala-Tools Maven2 Repository
    
    
     http://scala-tools.org/repo-releases
    
   
  
  
   
    
     org.scala-lang
    scala-library
    
     ${scala.version}
    
   
   
    
     junit
    junit
    
     4.4
    
    
     test
    
   
   
    
     org.specs
    specs
    
     1.2.5
    
    
     test
    
   
   
    
     com.101tec
    zkclient
    
     0.3
    
   
   
    
     org.xerial.snappy
    snappy-java
    
     1.0.4.1
    
   
   
    
     com.yammer.metrics
    metrics-core
    
     2.2.0
    
   
   
    
     com.yammer.metrics
    metrics-annotation
    
     2.2.0
    
   
   
    
     org.easymock
    easymock
    
     3.0
    
    
     test
    
   
   
    
     net.sf.jopt-simple
    jopt-simple
    
     4.9
    
   
  
  
   
    src/main/scala
   
   
    src/test/scala
   
   
    
     
      org.scala-tools
     maven-scala-plugin
     
      
       
        
         compile
        
        
         testCompile
        
       
      
     
     
      
       ${scala.version}
      -target:jvm-1.5
     
    
    
     
      org.apache.maven.plugins
     maven-eclipse-plugin
     
      
       true
      
      
       
        ch.epfl.lamp.sdt.core.scalabuilder
       
      
      
       ch.epfl.lamp.sdt.core.scalanature
      
      
       
        org.eclipse.jdt.launching.JRE_CONTAINER
       
       
        ch.epfl.lamp.sdt.launching.SCALA_CONTAINER
       
      
     
    
   
  
  
   
    
     
      org.scala-tools
     maven-scala-plugin
     
      
       ${scala.version}
      
     
    
   
  
 

Mainly relies on the maven-scala-plugin plug-in to build the project. The build command is: clean scala: compile package-DskipTests

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.