diff --git a/Jenkinsfile b/Jenkinsfile
index 4e19d52b3647719989ea12c603c57ee7b1972bd6..944e1ed2657b36e5c362262a683a594439ba3031 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -65,16 +65,16 @@ pipeline {
                 }
  	       }
  	   } //stage deploy
- 	   post {
-          failure {
-              script {
-                  if (env.BRANCH_NAME == 'master' || env.BRANCH_NAME == 'release') {
-                      sendFailureMessage()
-                  }
+   } //stages
+   post {
+      failure {
+          script {
+              if (env.BRANCH_NAME == 'master' || env.BRANCH_NAME == 'release') {
+                  sendFailureMessage()
               }
           }
-       }
-   } //stages
+      }
+   }
 } //pipeline
 
 Void sendFailureMessage() {
diff --git a/pom.xml b/pom.xml
index d89c2f776c198d85391bfa3088a6c26efc921ced..5169b20a4f720ecc652fdd30e73b94691a2c95ce 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,5 +21,31 @@
 		<module>api-lib-core</module>
 		<module>ozg-cloud-spring-boot-starter</module>
 	</modules>
-		
+	
+	<properties>
+		<source-plugin.version>3.3.0</source-plugin.version>
+	</properties>
+
+	<profiles>
+		<profile>
+			<id>deploy</id>
+			<build>
+				<plugins>
+					<plugin>
+						<groupId>org.apache.maven.plugins</groupId>
+						<artifactId>maven-source-plugin</artifactId>
+						<version>${source-plugin.version}</version>
+						<executions>
+							<execution>
+								<id>attach-sources</id>
+								<goals>
+									<goal>jar-no-fork</goal>
+								</goals>
+							</execution>
+						</executions>
+					</plugin>
+				</plugins>
+			</build>
+		</profile>
+	</profiles>
 </project>
\ No newline at end of file