Sergix / JTerm

A terminal written in Java for cross-platform compatibility and usage.
https://sergix.github.io/projects/jterm
GNU General Public License v3.0
52 stars 32 forks source link

Running JTerm with Maven #35

Closed ccmetz closed 7 years ago

ccmetz commented 7 years ago

Hey all,

I have a question about an error I'm getting while trying to run JTerm with Maven:

I successfully imported the project into IntelliJ as a maven project but when I click the Run Maven Build button I'm getting the following error from the deploy plugin:

Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project jterm: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter -> [Help 1]

Anyone know what the problem might be here? I have a little experience with ant and gradle build tools but not so much with maven.

@nanoandrew4 - since you're using IntelliJ, have you run into anything like this?

Sergix commented 7 years ago

Is that the full output from Maven? If not, please attach the entirety of the build message from Maven.

ccmetz commented 7 years ago

Here's the full output:

/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin/java -Dmaven.multiModuleProjectDirectory=/Users/ccmetz/IdeaProjects/JTerm "-Dmaven.home=/Applications/IntelliJ IDEA CE.app/Contents/plugins/maven/lib/maven3" "-Dclassworlds.conf=/Applications/IntelliJ IDEA CE.app/Contents/plugins/maven/lib/maven3/bin/m2.conf" "-javaagent:/Applications/IntelliJ IDEA CE.app/Contents/lib/idea_rt.jar=64605:/Applications/IntelliJ IDEA CE.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA CE.app/Contents/plugins/maven/lib/maven3/boot/plexus-classworlds-2.5.2.jar" org.codehaus.classworlds.Launcher -Didea.version=2017.1.3 deploy objc[19913]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin/java (0x101a8e4c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x101b554e0). One of the two will be used. Which one is undefined. [INFO] Scanning for projects... [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building jterm 0.5.2 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ jterm --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/ccmetz/IdeaProjects/JTerm/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ jterm --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 14 source files to /Users/ccmetz/IdeaProjects/JTerm/target/classes [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ jterm --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/ccmetz/IdeaProjects/JTerm/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ jterm --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ jterm --- [INFO] No tests to run. [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ jterm --- [INFO] Building jar: /Users/ccmetz/IdeaProjects/JTerm/target/jterm-0.5.2.jar [INFO] [INFO] --- maven-assembly-plugin:2.2-beta-5:single (create-my-bundle) @ jterm --- [INFO] Building jar: /Users/ccmetz/IdeaProjects/JTerm/target/jterm-0.5.2-jar-with-dependencies.jar [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ jterm --- [INFO] Installing /Users/ccmetz/IdeaProjects/JTerm/target/jterm-0.5.2.jar to /Users/ccmetz/.m2/repository/sergix/jterm/0.5.2/jterm-0.5.2.jar [INFO] Installing /Users/ccmetz/IdeaProjects/JTerm/pom.xml to /Users/ccmetz/.m2/repository/sergix/jterm/0.5.2/jterm-0.5.2.pom [INFO] Installing /Users/ccmetz/IdeaProjects/JTerm/target/jterm-0.5.2-jar-with-dependencies.jar to /Users/ccmetz/.m2/repository/sergix/jterm/0.5.2/jterm-0.5.2-jar-with-dependencies.jar [INFO] [INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ jterm --- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 10.957 s [INFO] Finished at: 2017-09-29T16:43:02-05:00 [INFO] Final Memory: 17M/59M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project jterm: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [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

ccmetz commented 7 years ago

@Sergix After pulling down the latest changes from the dev branch, I'm no longer getting this issue when running the maven build. It creates the jterm-0.5.2-jar-with-dependencies jar file inside of the target directory.

Sergix commented 7 years ago

Ok, good. :P