no distribution folder after running mvn clean package #302
Unanswered
earebano01
asked this question in
Q&A
Replies: 2 comments 1 reply
-
The command is
|
Beta Was this translation helpful? Give feedback.
1 reply
-
at first sight, your pom files doesn't have the distribution steps that are in the minimal example, eg. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
I'm trying to do the MinimalExample and have been struggling trying to make it work for few days now, at the moment, i was able to go as far as running mvn clean install, but the there's no distribution folder on target folder that contains the run.sh like on the guide which i have read over and over, any help is highly appreciated, here's maven and java version, pom.xml, raspberry.properties and the execution :
pi@raspberrypi:~/projet1/projet1/target$ mvn -v
Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 11.0.20.1, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-arm64
Default locale: en, platform encoding: UTF-8
OS name: "linux", version: "5.15.0-1038-raspi", arch: "aarch64", family: "unix"
pi@raspberrypi:~/projet1/projet1/target$ java -version
openjdk version "11.0.20.1" 2023-08-24
OpenJDK Runtime Environment (build 11.0.20.1+1-post-Ubuntu-0ubuntu122.04)
OpenJDK 64-Bit Server VM (build 11.0.20.1+1-post-Ubuntu-0ubuntu122.04, mixed mode)
pom.xml
4.0.0 com.projet1 projet1 1.0-SNAPSHOT jar Raspi Projectraspberry.properties
Please configure this to describe the remote RPI machine
Connection data
target.platform.host=192.168.5.173
target.platform.port=22
target.platform.username=USERNAME
if the password is set, it is used for connecting via SSH to RPI
to authenticate with your certificate, comment the password and configure the privatekey and passphrase properties
target.platform.password=PASSWORD
#target.platform.privatekey=
#target.platform.passphrase=
remote folders
the location of the RPI JRE
target.remote.jre=/usr/lib/jvm/java-11-openjdk-arm64/bin/java
target.debug.supported=true
target.debug.port=1955
target.run.as.root=true
The remote target root folder where your projects is deployed
target.remote.home=/home/pi/projet1/projet1/target
target.run.module.class=com.projet1.projet1/com.projet1.Main
execution of mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------< com.projet1:projet1 >-------------------------
[INFO] Building Raspi Project 1.0-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- clean:3.2.0:clean (default-clean) @ projet1 ---
[INFO] Deleting C:\Users\USERNAME\Documents\folder\folder\folder\Projets\projet1\projet1\target
[INFO]
[INFO] --- antrun:3.0.0:run (clean) @ projet1 ---
[INFO] Executing tasks
[INFO] [sshexec] Connecting to 192.168.5.173:22
[INFO] [sshexec] cmd : cd '/home/pi/projet1/projet1/target/projet1/dist'; rm -rf .jar lib/.jar
bash: line 1: cd: /home/pi/projet1/projet1/target/projet1/dist: No such file or directory
[INFO] Executed tasks
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ projet1 ---
[INFO] Copying 1 resource from src\main\resources to target\classes
[INFO]
[INFO] --- compiler:3.8.1:compile (default-compile) @ projet1 ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to C:\Users\USERNAME\Documents\folder\folder\folder\Projets\projet1\projet1\target\classes
[WARNING] /C:/Users/USERNAME/Documents/folder/folder/folder/Projets/projet1/projet1/src/main/java/module-info.java:[1,19] module name component projet1 should avoid terminal digits
[WARNING] /C:/Users/USERNAME/Documents/folder/folder/folder/Projets/projet1/projet1/src/main/java/module-info.java:[1,11] module name component projet1 should avoid terminal digits
[INFO]
[INFO] --- antrun:3.0.0:run (setMavenJarPluginOutputDir) @ projet1 ---
[INFO] Executing tasks
[INFO] Executed tasks
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ projet1 ---
[INFO] skip non existing resourceDirectory C:\Users\USERNAME\Documents\folder\folder\folder\Projets\projet1\projet1\src\test\resources
[INFO]
[INFO] --- compiler:3.8.1:testCompile (default-testCompile) @ projet1 ---
[INFO] No sources to compile
[INFO]
[INFO] --- surefire:3.1.2:test (default-test) @ projet1 ---
[INFO] No tests to run.
[INFO]
[INFO] --- dependency:3.1.2:copy-dependencies (copy-dependencies) @ projet1 ---
[INFO] Copying slf4j-api-1.7.32.jar to C:\Users\USERNAME\Documents\folder\folder\folder\Projets\projet1\projet1\target\lib\slf4j-api.jar
[INFO] Copying slf4j-simple-1.7.32.jar to C:\Users\USERNAME\Documents\folder\folder\folder\Projets\projet1\projet1\target\lib\slf4j-simple.jar
[INFO] Copying pi4j-core-2.1.0.jar to C:\Users\USERNAME\Documents\folder\folder\folder\Projets\projet1\projet1\target\lib\pi4j-core.jar
[INFO] Copying pi4j-plugin-raspberrypi-2.1.0.jar to C:\Users\USERNAME\Documents\folder\folder\folder\Projets\projet1\projet1\target\lib\pi4j-plugin-raspberrypi.jar
[INFO] Copying pi4j-plugin-pigpio-2.1.0.jar to C:\Users\USERNAME\Documents\folder\folder\folder\Projets\projet1\projet1\target\lib\pi4j-plugin-pigpio.jar
[INFO] Copying pi4j-library-pigpio-2.1.0.jar to C:\Users\USERNAME\Documents\folder\folder\folder\Projets\projet1\projet1\target\lib\pi4j-library-pigpio.jar
[INFO]
[INFO] --- jar:3.2.0:jar (default-jar) @ projet1 ---
[INFO] Building jar: C:\Users\USERNAME\Documents\folder\folder\folder\Projets\projet1\projet1\target\lib\projet1.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.734 s
[INFO] Finished at: 2023-10-17T16:35:18-03:00
Beta Was this translation helpful? Give feedback.
All reactions