Issue with quikcstart and maven

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue with quikcstart and maven

Philippe Rigaux
Dear Flink dev.

Thanks for this great system. I tried to set up the quickstart project, but
I run into the following issue. After

mvn clean package

The jar file are almost empty

ls -l target/*.jar
-rw-r--r--  1 philippe  staff   382 18 déc 14:08
target/quickstart-0.1-flink-fat-jar.jar
-rw-r--r--  1 philippe  staff  5985 18 déc 14:08 target/quickstart-0.1.jar

And they do not contain the main() class. I guess that this is related to
the maven assembly options, but a few changes there were not successful.

So before trying to hack further, do you have any advice? I am using
Mac OS, java 7.

Thanks in advance

Philippe
Reply | Threaded
Open this post in threaded view
|

Re: Issue with quikcstart and maven

Robert Metzger
Hi,

Sorry that you ran into that issue. The problem is that the "fat jar
builder" is removing all packages in the "org.apache.flink" namespace.
Moving the class containing the main() to a new location (say
net.internetmemory) will probably resolve the issue.

Best,
Robert

On Thu, Dec 18, 2014 at 2:14 PM, Philippe Rigaux <
[hidden email]> wrote:

>
> Dear Flink dev.
>
> Thanks for this great system. I tried to set up the quickstart project, but
> I run into the following issue. After
>
> mvn clean package
>
> The jar file are almost empty
>
> ls -l target/*.jar
> -rw-r--r--  1 philippe  staff   382 18 déc 14:08
> target/quickstart-0.1-flink-fat-jar.jar
> -rw-r--r--  1 philippe  staff  5985 18 déc 14:08 target/quickstart-0.1.jar
>
> And they do not contain the main() class. I guess that this is related to
> the maven assembly options, but a few changes there were not successful.
>
> So before trying to hack further, do you have any advice? I am using
> Mac OS, java 7.
>
> Thanks in advance
>
> Philippe
>