Hi Ismaël,

  I'm running the command

 mvn archetype:generate \
      -DarchetypeGroupId=org.apache.beam \
      -DarchetypeArtifactId=beam-sdks-java-maven-archetypes-examples \
      -DarchetypeVersion=2.0.0 \
      -DgroupId=org.example \
      -DartifactId=word-count-beam \
      -Dversion="0.1" \
      -Dpackage=org.apache.beam.examples \
      -DinteractiveMode=false

and

mvn compile exec:java -Dexec.mainClass=org.apache.beam.examples.WordCount \
     -Dexec.args="--inputFile=pom.xml --output=counts" -Pdirect-runner

just the way on the quick start page. It seems that the example somehow
takes its own version as some beam dependency's version accidentally.

BTW, I'm using the latest master branch.

Thanks,
Huafeng


Ismaël Mejía <ieme...@gmail.com>于2017年8月16日周三 下午3:57写道:

> Hello,
>
> The error message shows that it is looking for the Beam 0.1 version
> and that version does not exist in maven central.
> You have to replace the version of Beam in the command you executed
> with the latest version that means 2.0.0 at this moment and it should
> work.
>
> Regards,
> Ismaël
>
>
> On Wed, Aug 16, 2017 at 8:21 AM, Vincent Wang <fvunic...@gmail.com> wrote:
> > Hi guys,
> >
> >   I'm trying to run the wordcount example according to the quick start
> but I
> > got following error:
> >
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Building word-count-beam 0.1
> > [INFO]
> > ------------------------------------------------------------------------
> > [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is
> > missing, no dependency information available
> > [WARNING] Failed to retrieve plugin descriptor for
> > org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin
> > org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could
> not
> > be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0
> in
> > https://repo.maven.apache.org/maven2 was cached in the local repository,
> > resolution will not be reattempted until the update interval of central
> has
> > elapsed or updates are forced
> > [WARNING] The POM for org.apache.beam:beam-sdks-java-core:jar:0.1 is
> > missing, no dependency information available
> > [WARNING] The POM for
> >
> org.apache.beam:beam-sdks-java-extensions-google-cloud-platform-core:jar:0.1
> > is missing, no dependency information available
> > [WARNING] The POM for
> > org.apache.beam:beam-sdks-java-extensions-protobuf:jar:0.1 is missing, no
> > dependency information available
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 0.960 s
> > [INFO] Finished at: 2017-08-16T14:14:42+08:00
> > [INFO] Final Memory: 18M/309M
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] Failed to execute goal on project word-count-beam: Could not
> resolve
> > dependencies for project org.example:word-count-beam:jar:0.1: The
> following
> > artifacts could not be resolved:
> >
> org.apache.beam:beam-sdks-java-extensions-google-cloud-platform-core:jar:0.1,
> > org.apache.beam:beam-sdks-java-extensions-protobuf:jar:0.1: Failure to
> find
> >
> org.apache.beam:beam-sdks-java-extensions-google-cloud-platform-core:jar:0.1
> > in https://repo.maven.apache.org/maven2 was cached in the local
> repository,
> > resolution will not be reattempted until the update interval of central
> has
> > elapsed or updates are forced -> [Help 1]
> >
> >   Any idea?
> >
> > Thanks,
> > Huafeng
>

Reply via email to