Skip to content

Commit

Permalink
New version, with minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronny12301 committed Aug 30, 2024
1 parent 160fabe commit 86841ac
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 37 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@ hs_err_pid*
/build/
/dist/
/target/

# IntelliJ
*.iml
/.idea
/out
36 changes: 0 additions & 36 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,42 +84,6 @@
</execution>
</executions>
</plugin>

<!-- Copia las dependencias librerias javafx .jar a la carpeta "lib" de tu proyecto -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<configuration>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
<excludeTransitive>false</excludeTransitive>
<stripVersion>false</stripVersion>
</configuration>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
</execution>
</executions>
</plugin>

<!-- Agrega la referencia del contenido de la carpeta "lib" en el classpath de tu proyecto-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>wmediaplayer.Main</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
<name>WMediaPlayer</name>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/wmediaplayer/WMediaPlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public void start(Stage primaryStage) throws Exception {

Scene scene = new Scene(root);

Image icon = new Image("styles/img/Media-Player-icon.png");
Image icon = new Image(getClass().getResource("/styles/img/Media-Player-icon.png").toExternalForm());
stage.getIcons().add(icon);

stage.setScene(scene);
Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: wmediaplayer.Main

0 comments on commit 86841ac

Please sign in to comment.