Skip to content

Commit

Permalink
Explain packaging in README
Browse files Browse the repository at this point in the history
  • Loading branch information
SMadani committed Nov 7, 2024
1 parent 8a1483e commit 2075e09
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 22 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ To run the demo standalone from the command line, simply invoke `mvn` or `./mvnw
Then open a browser to [localhost:8080](http://localhost:8080) to use the application.

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

On startup, your Vonage application will be updated with the webhook URLs for the demo.
This is so that you don't have to manually set the webhook URLs on the dashboard every time you restart
Expand Down
44 changes: 22 additions & 22 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,28 +89,6 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>${exec.mainClass}</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.5.0</version>
Expand All @@ -133,6 +111,28 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>${exec.mainClass}</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 2075e09

Please sign in to comment.