Ошибки при создании jar с Maven [cthulhu]

235
20 декабря 2017, 22:02

Хочу запустить и использовать данный проект который предназначен для: установки и запуска .apk файлов на множестве подключенных к компьютеру устройств.

Цель: скомпилировать проект и запустить его с командой плана: $ java -jar android-testing-1.0-SNAPSHOT.jar -a $apk -p [APP PACKAGE] -c [APP PACKAGE].[APP ACTIVITY] -d [APP LOCATION] -x [ADB LOCATION]/adb

Проблема состоит в том что компилиться совсем не тот .jar файл (cthulhu-1.0-SNAPSHOT.jar). При запуске cthulhu-1.0-SNAPSHOT.jar вылетает ошибка:

При попытке компиляции Maven -> Deploy ,выходит данная ошибка

"C:\Program Files\Java\jdk1.8.0_131\bin\java" -Dmaven.multiModuleProjectDirectory=C:\Users\e.kalina\Downloads\cthulhu-master\cthulhu-master\cthulhu "-Dmaven.home=C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.2.4\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.2.4\plugins\maven\lib\maven3\bin\m2.conf" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.2.4\lib\idea_rt.jar=52238:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.2.4\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.2.4\plugins\maven\lib\maven3\boot\plexus-classworlds-2.5.2.jar" org.codehaus.classworlds.Launcher -Didea.version=2017.2.6 --errors --update-snapshots deploy
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building android-testing 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ cthulhu ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Users\e.kalina\Downloads\cthulhu-master\cthulhu-master\cthulhu\src\main\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ cthulhu ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ cthulhu ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Users\e.kalina\Downloads\cthulhu-master\cthulhu-master\cthulhu\src\test\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ cthulhu ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ cthulhu ---
[INFO] No tests to run.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ cthulhu ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] 
[INFO] --- maven-assembly-plugin:2.4:single (default) @ cthulhu ---
[INFO] Reading assembly descriptor: C:\Users\e.kalina\Downloads\cthulhu-master\cthulhu-master\cthulhu/src/assembly/assembly.xml
[INFO] Building zip: C:\Users\e.kalina\Downloads\cthulhu-master\cthulhu-master\cthulhu\target\cthulhu-1.0-SNAPSHOT.zip
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ cthulhu ---
[INFO] Installing C:\Users\e.kalina\Downloads\cthulhu-master\cthulhu-master\cthulhu\target\cthulhu-1.0-SNAPSHOT.jar to C:\Users\e.kalina\.m2\repository\com\creativemobile\automation\cthulhu\1.0-SNAPSHOT\cthulhu-1.0-SNAPSHOT.jar
[INFO] Installing C:\Users\e.kalina\Downloads\cthulhu-master\cthulhu-master\cthulhu\pom.xml to C:\Users\e.kalina\.m2\repository\com\creativemobile\automation\cthulhu\1.0-SNAPSHOT\cthulhu-1.0-SNAPSHOT.pom
[INFO] Installing C:\Users\e.kalina\Downloads\cthulhu-master\cthulhu-master\cthulhu\target\cthulhu-1.0-SNAPSHOT.zip to C:\Users\e.kalina\.m2\repository\com\creativemobile\automation\cthulhu\1.0-SNAPSHOT\cthulhu-1.0-SNAPSHOT.zip
[INFO] 
[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ cthulhu ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.845 s
[INFO] Finished at: 2017-12-19T12:47:25+02:00
[INFO] Final Memory: 15M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project cthulhu: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project cthulhu: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
    at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
Caused by: org.apache.maven.plugin.MojoExecutionException: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter
    at org.apache.maven.plugin.deploy.DeployMojo.getDeploymentRepository(DeployMojo.java:235)
    at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:118)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
    ... 21 more
[ERROR] 
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Process finished with exit code 1

Есть подозрения что не правильно подключенны библиотеки Maven.

Буду рад любым советам, мучаюсь уже 4 дня с данным решениям.

P.S. Писать скрипты не вариант. Рассматриваю только уже готовые проекты.

READ ALSO
Динамичное изменение Navigation Drawer

Динамичное изменение Navigation Drawer

Есть в приложении два боковых в менюОдин слева другой справа

198
Нет ответа от сервера

Нет ответа от сервера

Если проверить из браузера http://eventerooofarvater

423
Как собрать проект Maven

Как собрать проект Maven

Не могу понять как правильно собирать проектДопустим у меня есть папка "Сервер" в котором есть 3 отдельных проекта maven

311
Паттерны проектирования

Паттерны проектирования

Изучаю Java, почитал о паттернах проектирования на Хабрахабре и других источниках, посмотрел видео в ютубе (не очень как оказалось)

219