Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9f7bab5

Browse files
Maven example: add main class execution
1 parent 268f754 commit 9f7bab5

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

‎java-main-maven/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Note that Maven support is a work in progress; let us know if you have feedback
66

77
This example is separate from the other examples, import the pom.xml file as a new Maven project.
88

9-
To build with Maven run e.g. `clean compile`.
9+
To build and execute the program, run with Maven like this: `mvn compile exec:java`.
1010

1111
## Links
1212
- [Getting Started with ObjectBox](https://docs.objectbox.io/getting-started)

‎java-main-maven/pom.xml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,14 @@
9090
</configuration>
9191
</plugin>
9292

93+
<plugin>
94+
<groupId>org.codehaus.mojo</groupId>
95+
<artifactId>exec-maven-plugin</artifactId>
96+
<version>3.5.0</version>
97+
<configuration>
98+
<mainClass>com.example.objectbox.java.maven.Main</mainClass>
99+
</configuration>
100+
</plugin>
93101
</plugins>
94102
</build>
95103

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /