Skip to content

Commit 2075e09

Browse files
committed
Explain packaging in README
1 parent 8a1483e commit 2075e09

File tree

2 files changed

+25
-22
lines changed

2 files changed

+25
-22
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ To run the demo standalone from the command line, simply invoke `mvn` or `./mvnw
4545
Then open a browser to [localhost:8080](http://localhost:8080) to use the application.
4646

4747
The default Maven goal for this project is `spring-boot:run`. To ensure a full build, you can use `mvn clean install`.
48+
This will also build a fat JAR file so that the application can be run anywhere by generating an executable file
49+
with the '-jar-with-dependencies.jar' suffix in the `target` directory. It will also make this application and
50+
its dependencies available in your local Maven repository if you wish to use it as a dependency in another project.
4851

4952
On startup, your Vonage application will be updated with the webhook URLs for the demo.
5053
This is so that you don't have to manually set the webhook URLs on the dashboard every time you restart

pom.xml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -89,28 +89,6 @@
8989
</execution>
9090
</executions>
9191
</plugin>
92-
<plugin>
93-
<artifactId>maven-assembly-plugin</artifactId>
94-
<configuration>
95-
<archive>
96-
<manifest>
97-
<mainClass>${exec.mainClass}</mainClass>
98-
</manifest>
99-
</archive>
100-
<descriptorRefs>
101-
<descriptorRef>jar-with-dependencies</descriptorRef>
102-
</descriptorRefs>
103-
</configuration>
104-
<executions>
105-
<execution>
106-
<id>make-assembly</id>
107-
<phase>package</phase>
108-
<goals>
109-
<goal>single</goal>
110-
</goals>
111-
</execution>
112-
</executions>
113-
</plugin>
11492
<plugin>
11593
<artifactId>maven-enforcer-plugin</artifactId>
11694
<version>3.5.0</version>
@@ -133,6 +111,28 @@
133111
</execution>
134112
</executions>
135113
</plugin>
114+
<plugin>
115+
<artifactId>maven-assembly-plugin</artifactId>
116+
<configuration>
117+
<archive>
118+
<manifest>
119+
<mainClass>${exec.mainClass}</mainClass>
120+
</manifest>
121+
</archive>
122+
<descriptorRefs>
123+
<descriptorRef>jar-with-dependencies</descriptorRef>
124+
</descriptorRefs>
125+
</configuration>
126+
<executions>
127+
<execution>
128+
<id>make-assembly</id>
129+
<phase>package</phase>
130+
<goals>
131+
<goal>single</goal>
132+
</goals>
133+
</execution>
134+
</executions>
135+
</plugin>
136136
</plugins>
137137
</build>
138138
</project>

0 commit comments

Comments
 (0)