tag:blogger.com,1999:blog-2940135394423946302.post8643081512520690934..comments2023-03-24T05:33:13.872-03:00Comments on Blog Dacanal: How to Assemble Multi-Module Project with MavenAlexandre de Paulahttp://www.blogger.com/profile/00747450425203808318noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-2940135394423946302.post-32772927001276958912017-10-03T20:13:37.451-03:002017-10-03T20:13:37.451-03:00Hello Nanotech,
Thank your for sharing this. Mayb...Hello Nanotech,<br /><br />Thank your for sharing this. Maybe a lot o people have faced the same problem.<br /><br />I haven't been working as a developer any more but I installed Java and Maven again on my computer to test my prototype... and it works!<br /><br />My article is not clear on how make it work, so I added steps to compile, package, install and assembly the application. I hope that helps you.<br /><br />AlexandreAlexandre de Paulahttps://www.blogger.com/profile/00747450425203808318noreply@blogger.comtag:blogger.com,1999:blog-2940135394423946302.post-23750422593888775392017-10-03T16:29:20.555-03:002017-10-03T16:29:20.555-03:00Hi, I found this post while looking for the same p...Hi, I found this post while looking for the same problem, that you had. I am running "mvn clean install" in <br /><br />INFO] ------------------------------------------------------------------------<br />[INFO] Reactor Summary:<br />[INFO] <br />[INFO] application super pom .............................. SUCCESS [ 0.240 s]<br />[INFO] app-utils .......................................... SUCCESS [ 1.316 s]<br />[INFO] app-model .......................................... FAILURE [ 0.896 s]<br />[INFO] app-gui ............................................ SKIPPED<br />[INFO] app-distribution ................................... SKIPPED<br />[INFO] ------------------------------------------------------------------------<br />[INFO] BUILD FAILURE<br />[INFO] ------------------------------------------------------------------------<br />[INFO] Total time: 2.612 s<br />[INFO] Finished at: 2017-10-03T18:38:24+00:00<br />[INFO] Final Memory: 16M/204M<br />[INFO] ------------------------------------------------------------------------<br />[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.6:single (assemble) on project model: Execution assemble of goal org.apache.maven.plugins:maven-assembly-plugin:2.6:single failed: Plugin org.apache.maven.plugins:maven-assembly-plugin:2.6 or one of its dependencies could not be resolved: Failure to find blog.dacanal.assembly:bundle:jar:1.0.0 in http://myserver:8081/nexus/content/groups/project_group was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]<br /><br /><br />Also when I run mvn assembly:assembly from app-distribution directory I get the following message<br /><br />[me@ombosxw0064 app-distribution]$ mvn assembly:assembly<br />[INFO] Scanning for projects...<br />[INFO] <br />[INFO] ------------------------------------------------------------------------<br />[INFO] Building app-distribution 1.0-SNAPSHOT<br />[INFO] ------------------------------------------------------------------------<br />[INFO] <br />[INFO] >>> maven-assembly-plugin:2.6:assembly (default-cli) > package @ distribution >>><br />[WARNING] The POM for blog.dacanal.application:gui:jar:1.0-SNAPSHOT is missing, no dependency information available<br />[WARNING] The POM for blog.dacanal.application:gui:zip:bundle:1.0-SNAPSHOT is missing, no dependency information available<br />[WARNING] The POM for blog.dacanal.application:model:zip:bundle:1.0-SNAPSHOT is missing, no dependency information available<br />[INFO] ------------------------------------------------------------------------<br />[INFO] BUILD FAILURE<br />[INFO] ------------------------------------------------------------------------<br />[INFO] Total time: 0.416 s<br />[INFO] Finished at: 2017-10-03T19:13:31+00:00<br />[INFO] Final Memory: 7M/144M<br />[INFO] ------------------------------------------------------------------------<br />[ERROR] Failed to execute goal on project distribution: Could not resolve dependencies for project blog.dacanal.application:distribution:jar:1.0-SNAPSHOT: The following artifacts could not be resolved: blog.dacanal.application:gui:jar:1.0-SNAPSHOT, blog.dacanal.application:gui:zip:bundle:1.0-SNAPSHOT, blog.dacanal.application:model:zip:bundle:1.0-SNAPSHOT: Failure to find blog.dacanal.application:gui:jar:1.0-SNAPSHOT in http://myserver:8081/nexus/content/groups/alert_group was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]<br />[ERROR] <br />[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.<br />[ERROR] Re-run Maven using the -X switch to enable full debug logging.<br />[ERROR] <br />[ERROR] For more information about the errors and possible solutions, please read the following articles:<br />[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException<br />nanotechhttps://www.blogger.com/profile/11185490914332137243noreply@blogger.comtag:blogger.com,1999:blog-2940135394423946302.post-6158788547453027142016-05-20T09:52:36.085-03:002016-05-20T09:52:36.085-03:00The upper-most pom.xml file is in the folder /dist...The upper-most pom.xml file is in the folder /distribution/application.<br /><br />Since the definition os such plugin is missing, Maven uses the default version.Alexandre de Paulahttps://www.blogger.com/profile/00747450425203808318noreply@blogger.comtag:blogger.com,1999:blog-2940135394423946302.post-62652475564244468332016-05-19T06:25:55.070-03:002016-05-19T06:25:55.070-03:00% mvn --version ... % mvn --version <br />Apache Maven 3.0.5<br />Maven home: /usr/share/maven<br />Java version: 1.7.0_80, vendor: Oracle Corporation<br />Java home: /usr/lib/jvm/java-7-oracle/jre<br />Default locale: en_US, platform encoding: UTF-8<br />OS name: "linux", version: "3.16.0-70-generic", arch: "amd64", family: "unix"<br />lqvang79https://www.blogger.com/profile/15412738523870303442noreply@blogger.comtag:blogger.com,1999:blog-2940135394423946302.post-30142481293289362162016-05-19T06:18:53.088-03:002016-05-19T06:18:53.088-03:00One my need to add this in to the upper-most pom.x...One my need to add this in to the upper-most pom.xml in order to compile: <br /><br /> <br /> org.apache.maven.plugins<br /> maven-compiler-plugin<br /> 3.5.1<br /> <br /> 1.5<br /> 1.5<br /> <br /> lqvang79https://www.blogger.com/profile/15412738523870303442noreply@blogger.com