[ https://issues.apache.org/jira/browse/ATLAS-2668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16470379#comment-16470379 ]
Nigel Jones commented on ATLAS-2668: ------------------------------------ Originally used the following pom.xml fragment which has worked before... but for other standalone apps. It doesn't work for spring, so I will use the spring framework version, but adding here as a useful note on making a standalone app with dependencies and main class identified <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>3.1.1</version> <configuration> <createDependencyReducedPom>false</createDependencyReducedPom> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <transformers> <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> <mainClass>org.apache.atlas.omag.application.OMAGApplication</mainClass> </transformer> </transformers> </configuration> </execution> </executions> </plugin> </plugins> In this case I'll use <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>1.5.10.RELEASE</version> <executions> <execution> <goals> <goal>repackage</goal> </goals> </execution> </executions> </plugin> </plugins> </build> This fragment will build a standalone jar, so we can now do: ✔ ~/src/atlas/omag-server/target [master|✚ 1⚑ 3] 14:07 $ ls classes maven-shared-archive-resources original-omag-server-1.0.0-SNAPSHOT.jar generated-sources maven-status rat.txt maven-archiver omag-server-1.0.0-SNAPSHOT.jar test-classes ✔ ~/src/atlas/omag-server/target [master|✚ 1⚑ 3] 14:07 $ java -jar ./omag-server-1.0.0-SNAPSHOT.jar . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v1.0.0-SNAPSHOT) 2018-05-10 14:07:12.047 INFO 36215 --- [ main] o.a.a.omag.application.OMAGApplication : Starting OMAGApplication v1.0.0-SNAPSHOT on nigels-mbp.hursley.uk.ibm.com with PID 36215 (/Users/jonesn/IdeaProjects/atlas/omag-server/target/omag-server-1.0.0-SNAPSHOT.jar started by jonesn in /Users/jonesn/IdeaProjects/atlas/omag-server/target) 2018-05-10 14:07:12.050 INFO 36215 --- [ main] o.a.a.omag.application.OMAGApplication : No active profile set, falling back to default profiles: default etc ... That's build done. Next part - place somewhere in distribution... > Add OMAG Server to distribution > ------------------------------- > > Key: ATLAS-2668 > URL: https://issues.apache.org/jira/browse/ATLAS-2668 > Project: Atlas > Issue Type: Improvement > Reporter: Nigel Jones > Assignee: Nigel Jones > Priority: Major > > The standalone Open Metadata server is built under omag-server. > However it is not incorporated into the distribution files (*.gz), and needs > careful attention to the classpath to work (ie launch from within IntelliJ) > The intent of this Jira is > * have OMAG server available 'out of the box' in a binary distribution so > that users can easily launch it without having to check classpaths or run in > an odd environment > -- This message was sent by Atlassian JIRA (v7.6.3#76005)