Good day!

I chose https://github.com/google/error-prone as an educational project. I need to add a couple of edits to it and collect it. The problem is now with the assembly of sources using maven - I do not see the assembled project in the local repository.

Pom.xml states that the project should be packaged with pom. But in this case, I do not understand how to connect my assembled project as a third-party library to my other project. Replacing pom with jar in pom.xml leads only to the message:

'packaging' with value 'jar' is invalid. Aggregator projects require 'pom' as packaging. 

--- My actions --- I downloaded the most recent release at the moment - https://github.com/google/error-prone/releases/tag/v2.0.15 , unpacked, edited pom.xml (to understand that My build is in the local repository):

  <parent> <groupId>org.sonatype.oss</groupId> <artifactId>oss-parent</artifactId> <version>7</version> </parent> <name>Maven parent POM</name> <groupId>com.arttest</groupId> <!--заменил google.errorprone на arttest--> <artifactId>error_prone_parent</artifactId> <version>2.0.16</version> <!--заменил 15 на 16--> <packaging>pom</packaging> 

I run mvn install, I expect in the local repository (/.m2/repository/com/arttest/error_prone_parent/) to see the assembled project, but I see only three files:

/.m2/repository/com/arttest/error_prone_parent/2.0.16/_remote.repositories :

 #NOTE: This is an Aether internal implementation file, its format can be changed without prior notice. #Sat Jan 28 19:58:26 GMT+03:00 2017 error_prone_parent-2.0.16.pom>= 

/.m2/repository/com/arttest/error_prone_parent/2.0.16/error_prone_parent-2.0.16.pom is an exact copy of pom.xml in the project root.

/.m2/repository/com/arttest/error_prone_parent/maven-metadata-local.xml :

 <?xml version="1.0" encoding="UTF-8"?> <metadata> <groupId>com.arttest</groupId> <artifactId>error_prone_parent</artifactId> <versioning> <release>2.0.16</release> <versions> <version>2.0.16</version> </versions> <lastUpdated>20170128165826</lastUpdated> </versioning> </metadata> 
  • You would have to explain what the “assembled project” means. You probably have a multi-module project. You need to learn pom.xml in modules to understand how they are going. Usually the maven assembly is placed in the target folder. - ilsu87
  • Yes, the project is multi-modular. It seems that I managed to deal with him. - Artem Grodetsky

0