Skip to content

[hotfix] [build] Disable exclusion rules when using build-jar maven profile#1719

Closed
tillrohrmann wants to merge 2 commits intoapache:masterfrom
tillrohrmann:fixQuickstarts
Closed

[hotfix] [build] Disable exclusion rules when using build-jar maven profile#1719
tillrohrmann wants to merge 2 commits intoapache:masterfrom
tillrohrmann:fixQuickstarts

Conversation

@tillrohrmann
Copy link
Copy Markdown
Contributor

Disables the exclusion rules when using the quickstarts.


<profiles>
<profile>
<!-- A profile that does everyting correctly:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: should be everything

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about writing Profile for packaging correct JAR files. That let's people know it is actually for JAR files ;-)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Will replace it with @StephanEwen's proposal.

@rmetzger
Copy link
Copy Markdown
Contributor

Can also also add a note to the documentation about the build-jar profile?

This is just an idea, but maybe we could add the following plugin to the quickstarts:

            <plugin>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>run</goal>
                        </goals>
                        <configuration>
                            <tasks>
                                <echo>${line.separator}
                                    ${line.separator}Please use the "-Pbuild-jar" profile for creating a fat-jar.
                                    ${line.separator}${line.separator}${line.separator}</echo>
                            </tasks>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

this leads to the following output:

obert@robert-da ...nk-workdir/flink-state-watermarks-1.0 (git)-[no_kryo] % mvn install

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Flink Quickstart Job 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-antrun-plugin:1.3:run (default) @ flink-state-watermarks-1.0 ---
[INFO] Executing tasks
     [echo] 
     [echo] 
     [echo]                                     
     [echo] Please use the "-Pbuild-jar" profile for creating a fat-jar.
     [echo]                                     
     [echo] 
[INFO] Executed tasks
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ flink-state-watermarks-1.0 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ flink-state-watermarks-1.0 ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 

@tillrohrmann
Copy link
Copy Markdown
Contributor Author

Thanks for the review @zentol, @StephanEwen and @rmetzger. I've changed the comment.

Concerning the documentation, there is already a note about the build-jar profile. In fact that's also how we describe to build the fat jar in our quickstart guide. Do you think that it should be put more prominently?

@tillrohrmann
Copy link
Copy Markdown
Contributor Author

Concerning the maven-antrun-plugin, I think it wouldn't hurt to include it. However, it might also simply disappear under all the other maven console output.

@rmetzger
Copy link
Copy Markdown
Contributor

I'm okay with not including it.

@rmetzger
Copy link
Copy Markdown
Contributor

+1 to merge this change.

@rmetzger
Copy link
Copy Markdown
Contributor

Merging ...

@asfgit asfgit closed this in 4a08a77 Feb 26, 2016
asfgit pushed a commit that referenced this pull request Feb 26, 2016
subhankarb pushed a commit to subhankarb/flink that referenced this pull request Mar 17, 2016
@tillrohrmann tillrohrmann deleted the fixQuickstarts branch August 19, 2016 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants