Akka missing Config Properties Akka.Version Akka.Stream












2















Packaging Akka application.



Hi I am trying to package my application into an executable Jar. Below is my Pom.xml



<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.personalProjects</groupId>
<artifactId>MyAkkaProject</artifactId>
<version>1.0</version>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>allinone</shadedClassifierName>
<artifactSet>
<includes>
<include>*:*</include>
</includes>
</artifactSet>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>reference.conf</resource>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Main-Class>akka.Main</Main-Class>
</manifestEntries>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-stream_2.12</artifactId>
<version>2.5.18</version>
</dependency>
<dependency>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-stream-kafka_2.12</artifactId>
<version>1.0-M1</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.1</version>
</dependency>

<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver</artifactId>
<version>3.4.3</version>
</dependency>

</dependencies>

</project>


I can't seem to get the Jar to work, it states missing akka.streams config.



I went through the official doc here
but it doesn't seem to work.



If I copy all Jar to output directory everything works just fine but the issue seems to be when I try to create a big fat jar with all the dependencies in it.



my MANIFEST.INF is below:



Manifest-Version: 1.0
Main-Class: MyAkkaProject.App


where App is the class with psvm and MyAkkaProject` is the package name



/targer dir










share|improve this question

























  • for sure you need to set the <Main-Class> in the manifest entries. Other than that I would try with a more recent version of maven-shade-plugin (although I don't expect this to fix your issue). What is the output after executing mvn clean package? what are the contents of the /target dir?

    – foivaras
    Nov 24 '18 at 16:14











  • @foivaras I've edited my question with the details

    – iam.Carrot
    Nov 25 '18 at 17:20











  • that's weird... I have a very similar pom configuration on an akka project and the fat jar works fine. on the target directory, it generates only these 2 directories we can see on the screenshot? not any jars?

    – foivaras
    Nov 25 '18 at 21:01











  • @foivaras the jar gets created in the out directory, ./out.MyAkkaProject/artifacts/myAkkaProject_jars/MyAkkaProjext.jar. Can you please post up a sample project on git so I can have a quick look on how are you getting to get that big fat jar.

    – iam.Carrot
    Nov 26 '18 at 3:41











  • github.com/halx4/activator-akka-stream-java8 (master branch) 1) clone 2) execute mvn clean package target directory will be: | | akka-stream-java8_2.11-1.0-allinone.jar | akka-stream-java8_2.11-1.0.jar | +---classes +---generated-sources +---maven-archiver ---maven-status the *-allinone.jar (its size is around 15MB) is the fat jar we want.

    – foivaras
    Nov 26 '18 at 12:40


















2















Packaging Akka application.



Hi I am trying to package my application into an executable Jar. Below is my Pom.xml



<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.personalProjects</groupId>
<artifactId>MyAkkaProject</artifactId>
<version>1.0</version>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>allinone</shadedClassifierName>
<artifactSet>
<includes>
<include>*:*</include>
</includes>
</artifactSet>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>reference.conf</resource>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Main-Class>akka.Main</Main-Class>
</manifestEntries>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-stream_2.12</artifactId>
<version>2.5.18</version>
</dependency>
<dependency>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-stream-kafka_2.12</artifactId>
<version>1.0-M1</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.1</version>
</dependency>

<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver</artifactId>
<version>3.4.3</version>
</dependency>

</dependencies>

</project>


I can't seem to get the Jar to work, it states missing akka.streams config.



I went through the official doc here
but it doesn't seem to work.



If I copy all Jar to output directory everything works just fine but the issue seems to be when I try to create a big fat jar with all the dependencies in it.



my MANIFEST.INF is below:



Manifest-Version: 1.0
Main-Class: MyAkkaProject.App


where App is the class with psvm and MyAkkaProject` is the package name



/targer dir










share|improve this question

























  • for sure you need to set the <Main-Class> in the manifest entries. Other than that I would try with a more recent version of maven-shade-plugin (although I don't expect this to fix your issue). What is the output after executing mvn clean package? what are the contents of the /target dir?

    – foivaras
    Nov 24 '18 at 16:14











  • @foivaras I've edited my question with the details

    – iam.Carrot
    Nov 25 '18 at 17:20











  • that's weird... I have a very similar pom configuration on an akka project and the fat jar works fine. on the target directory, it generates only these 2 directories we can see on the screenshot? not any jars?

    – foivaras
    Nov 25 '18 at 21:01











  • @foivaras the jar gets created in the out directory, ./out.MyAkkaProject/artifacts/myAkkaProject_jars/MyAkkaProjext.jar. Can you please post up a sample project on git so I can have a quick look on how are you getting to get that big fat jar.

    – iam.Carrot
    Nov 26 '18 at 3:41











  • github.com/halx4/activator-akka-stream-java8 (master branch) 1) clone 2) execute mvn clean package target directory will be: | | akka-stream-java8_2.11-1.0-allinone.jar | akka-stream-java8_2.11-1.0.jar | +---classes +---generated-sources +---maven-archiver ---maven-status the *-allinone.jar (its size is around 15MB) is the fat jar we want.

    – foivaras
    Nov 26 '18 at 12:40
















2












2








2








Packaging Akka application.



Hi I am trying to package my application into an executable Jar. Below is my Pom.xml



<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.personalProjects</groupId>
<artifactId>MyAkkaProject</artifactId>
<version>1.0</version>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>allinone</shadedClassifierName>
<artifactSet>
<includes>
<include>*:*</include>
</includes>
</artifactSet>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>reference.conf</resource>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Main-Class>akka.Main</Main-Class>
</manifestEntries>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-stream_2.12</artifactId>
<version>2.5.18</version>
</dependency>
<dependency>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-stream-kafka_2.12</artifactId>
<version>1.0-M1</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.1</version>
</dependency>

<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver</artifactId>
<version>3.4.3</version>
</dependency>

</dependencies>

</project>


I can't seem to get the Jar to work, it states missing akka.streams config.



I went through the official doc here
but it doesn't seem to work.



If I copy all Jar to output directory everything works just fine but the issue seems to be when I try to create a big fat jar with all the dependencies in it.



my MANIFEST.INF is below:



Manifest-Version: 1.0
Main-Class: MyAkkaProject.App


where App is the class with psvm and MyAkkaProject` is the package name



/targer dir










share|improve this question
















Packaging Akka application.



Hi I am trying to package my application into an executable Jar. Below is my Pom.xml



<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.personalProjects</groupId>
<artifactId>MyAkkaProject</artifactId>
<version>1.0</version>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>allinone</shadedClassifierName>
<artifactSet>
<includes>
<include>*:*</include>
</includes>
</artifactSet>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>reference.conf</resource>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Main-Class>akka.Main</Main-Class>
</manifestEntries>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-stream_2.12</artifactId>
<version>2.5.18</version>
</dependency>
<dependency>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-stream-kafka_2.12</artifactId>
<version>1.0-M1</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.1</version>
</dependency>

<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver</artifactId>
<version>3.4.3</version>
</dependency>

</dependencies>

</project>


I can't seem to get the Jar to work, it states missing akka.streams config.



I went through the official doc here
but it doesn't seem to work.



If I copy all Jar to output directory everything works just fine but the issue seems to be when I try to create a big fat jar with all the dependencies in it.



my MANIFEST.INF is below:



Manifest-Version: 1.0
Main-Class: MyAkkaProject.App


where App is the class with psvm and MyAkkaProject` is the package name



/targer dir







java akka maven-shade-plugin






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 25 '18 at 17:19







iam.Carrot

















asked Nov 24 '18 at 10:35









iam.Carrotiam.Carrot

2,36021140




2,36021140













  • for sure you need to set the <Main-Class> in the manifest entries. Other than that I would try with a more recent version of maven-shade-plugin (although I don't expect this to fix your issue). What is the output after executing mvn clean package? what are the contents of the /target dir?

    – foivaras
    Nov 24 '18 at 16:14











  • @foivaras I've edited my question with the details

    – iam.Carrot
    Nov 25 '18 at 17:20











  • that's weird... I have a very similar pom configuration on an akka project and the fat jar works fine. on the target directory, it generates only these 2 directories we can see on the screenshot? not any jars?

    – foivaras
    Nov 25 '18 at 21:01











  • @foivaras the jar gets created in the out directory, ./out.MyAkkaProject/artifacts/myAkkaProject_jars/MyAkkaProjext.jar. Can you please post up a sample project on git so I can have a quick look on how are you getting to get that big fat jar.

    – iam.Carrot
    Nov 26 '18 at 3:41











  • github.com/halx4/activator-akka-stream-java8 (master branch) 1) clone 2) execute mvn clean package target directory will be: | | akka-stream-java8_2.11-1.0-allinone.jar | akka-stream-java8_2.11-1.0.jar | +---classes +---generated-sources +---maven-archiver ---maven-status the *-allinone.jar (its size is around 15MB) is the fat jar we want.

    – foivaras
    Nov 26 '18 at 12:40





















  • for sure you need to set the <Main-Class> in the manifest entries. Other than that I would try with a more recent version of maven-shade-plugin (although I don't expect this to fix your issue). What is the output after executing mvn clean package? what are the contents of the /target dir?

    – foivaras
    Nov 24 '18 at 16:14











  • @foivaras I've edited my question with the details

    – iam.Carrot
    Nov 25 '18 at 17:20











  • that's weird... I have a very similar pom configuration on an akka project and the fat jar works fine. on the target directory, it generates only these 2 directories we can see on the screenshot? not any jars?

    – foivaras
    Nov 25 '18 at 21:01











  • @foivaras the jar gets created in the out directory, ./out.MyAkkaProject/artifacts/myAkkaProject_jars/MyAkkaProjext.jar. Can you please post up a sample project on git so I can have a quick look on how are you getting to get that big fat jar.

    – iam.Carrot
    Nov 26 '18 at 3:41











  • github.com/halx4/activator-akka-stream-java8 (master branch) 1) clone 2) execute mvn clean package target directory will be: | | akka-stream-java8_2.11-1.0-allinone.jar | akka-stream-java8_2.11-1.0.jar | +---classes +---generated-sources +---maven-archiver ---maven-status the *-allinone.jar (its size is around 15MB) is the fat jar we want.

    – foivaras
    Nov 26 '18 at 12:40



















for sure you need to set the <Main-Class> in the manifest entries. Other than that I would try with a more recent version of maven-shade-plugin (although I don't expect this to fix your issue). What is the output after executing mvn clean package? what are the contents of the /target dir?

– foivaras
Nov 24 '18 at 16:14





for sure you need to set the <Main-Class> in the manifest entries. Other than that I would try with a more recent version of maven-shade-plugin (although I don't expect this to fix your issue). What is the output after executing mvn clean package? what are the contents of the /target dir?

– foivaras
Nov 24 '18 at 16:14













@foivaras I've edited my question with the details

– iam.Carrot
Nov 25 '18 at 17:20





@foivaras I've edited my question with the details

– iam.Carrot
Nov 25 '18 at 17:20













that's weird... I have a very similar pom configuration on an akka project and the fat jar works fine. on the target directory, it generates only these 2 directories we can see on the screenshot? not any jars?

– foivaras
Nov 25 '18 at 21:01





that's weird... I have a very similar pom configuration on an akka project and the fat jar works fine. on the target directory, it generates only these 2 directories we can see on the screenshot? not any jars?

– foivaras
Nov 25 '18 at 21:01













@foivaras the jar gets created in the out directory, ./out.MyAkkaProject/artifacts/myAkkaProject_jars/MyAkkaProjext.jar. Can you please post up a sample project on git so I can have a quick look on how are you getting to get that big fat jar.

– iam.Carrot
Nov 26 '18 at 3:41





@foivaras the jar gets created in the out directory, ./out.MyAkkaProject/artifacts/myAkkaProject_jars/MyAkkaProjext.jar. Can you please post up a sample project on git so I can have a quick look on how are you getting to get that big fat jar.

– iam.Carrot
Nov 26 '18 at 3:41













github.com/halx4/activator-akka-stream-java8 (master branch) 1) clone 2) execute mvn clean package target directory will be: | | akka-stream-java8_2.11-1.0-allinone.jar | akka-stream-java8_2.11-1.0.jar | +---classes +---generated-sources +---maven-archiver ---maven-status the *-allinone.jar (its size is around 15MB) is the fat jar we want.

– foivaras
Nov 26 '18 at 12:40







github.com/halx4/activator-akka-stream-java8 (master branch) 1) clone 2) execute mvn clean package target directory will be: | | akka-stream-java8_2.11-1.0-allinone.jar | akka-stream-java8_2.11-1.0.jar | +---classes +---generated-sources +---maven-archiver ---maven-status the *-allinone.jar (its size is around 15MB) is the fat jar we want.

– foivaras
Nov 26 '18 at 12:40














1 Answer
1






active

oldest

votes


















0














I resolved the issue, the issue was my IDE when I ran he project or even build it, it wasn't using Maven Lifecycle commands and hence the plug-in wasn't getting triggered.






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53457269%2fakka-missing-config-properties-akka-version-akka-stream%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I resolved the issue, the issue was my IDE when I ran he project or even build it, it wasn't using Maven Lifecycle commands and hence the plug-in wasn't getting triggered.






    share|improve this answer




























      0














      I resolved the issue, the issue was my IDE when I ran he project or even build it, it wasn't using Maven Lifecycle commands and hence the plug-in wasn't getting triggered.






      share|improve this answer


























        0












        0








        0







        I resolved the issue, the issue was my IDE when I ran he project or even build it, it wasn't using Maven Lifecycle commands and hence the plug-in wasn't getting triggered.






        share|improve this answer













        I resolved the issue, the issue was my IDE when I ran he project or even build it, it wasn't using Maven Lifecycle commands and hence the plug-in wasn't getting triggered.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 27 '18 at 17:25









        iam.Carrotiam.Carrot

        2,36021140




        2,36021140
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53457269%2fakka-missing-config-properties-akka-version-akka-stream%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Ottavio Pratesi

            Tricia Helfer

            15 giugno