8000 No Maven maven-compiler-plugin source/target version specified · Issue #8 · twitter-archive/hdfs-du · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Oct 29, 2020. It is now read-only.
This repository was archived by the owner on Oct 29, 2020. It is now read-only.
No Maven maven-compiler-plugin source/target version specified #8
Open
@faal

Description

@faal

When compiling hdfs-du/pig I got an error:

[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure

/var/home/fabian/hdfs-du/pig/src/main/java/com/twitter/hdfsdu/pig/piggybank/ExtractSizes.java:[29,42] generics are not supported in -source 1.3
(use -source 5 or higher to enable generics)
public class ExtractSizes extends EvalFunc {

/var/home/fabian/hdfs-du/pig/src/main/java/com/twitter/hdfsdu/pig/piggybank/ExtractSizes.java:[34,29] ';' expected

/var/home/fabian/hdfs-du/pig/src/main/java/com/twitter/hdfsdu/pig/piggybank/ExtractSizes.java:[35,2] not a statement

/var/home/fabian/hdfs-du/pig/src/main/java/com/twitter/hdfsdu/pig/piggybank/ExtractSizes.java:[35,13] ';' expected

I resolved the problem by adding:

  •  <plugin>
    
  •    <artifactId>maven-compiler-plugin</artifactId>
    
  •    <version>2.3.2</version>
    
  •    <configuration>
    
  •      <source>1.6</source>
    
  •      <target>1.6</target>
    
  •      <compilerArgument></compilerArgument>
    
  •    </configuration>
    
  •  </plugin>
    

in pom.xml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0