Hi Team,

I have pushed sample minimal project in git at following link
https://github.com/hanishbansal/test-parent
Also attached the same code as zip file.

Steps to Reproduce the error:
1. Compile test-parent project with goal "clean install". It will compile
and install all child projects.
2. Now compile child2 project, it would give compilation error due to
dependency of child1 project.


On Sat, Jun 13, 2020 at 12:58 AM Tomo Suzuki <suzt...@google.com.invalid>
wrote:

> I suspect typo in child module name. Do you want to share minimum
> reproducible project?
>
> On Fri, Jun 12, 2020 at 07:17 Hanish Bansal <
> hanish.bansal.agar...@gmail.com>
> wrote:
>
> > Yes, that has been already tried. I have installed child modules
> separately
> > but if there is any child module (e.g. child2) has dependency of other
> > child module child1 then I am not able to compile child2 project.
> >
> > On Fri, Jun 12, 2020 at 3:39 PM Tomo Suzuki <suzt...@google.com.invalid>
> > wrote:
> >
> > > (Assuming yy-utils is the one of the child project)
> > > Run ”mvn install” in yy-utils module first.
> > >
> > > On Fri, Jun 12, 2020 at 01:56 Hanish Bansal <
> > > hanish.bansal.agar...@gmail.com>
> > > wrote:
> > >
> > > > Hi All,
> > > >
> > > > We have maven Multi Module Project, where we have recently
> implemented
> > > > version control process as mentioned in below documentation but after
> > > > introducing it we are not able to compile child projects
> independently
> > > > because of dependency failure.
> > > > http://maven.apache.org/maven-ci-friendly.html#multi-module-setup
> > > >
> > > > We have also used flatten-maven-plugin but artifacts deployed in our
> > > > repository via this setup are not consumable by Maven anymore.
> > > >
> > > >  <build>
> > > >   <plugins>
> > > >     <plugin>
> > > >       <groupId>org.codehaus.mojo</groupId>
> > > >       <artifactId>flatten-maven-plugin</artifactId>
> > > >       <version>1.1.0</version>
> > > >       <configuration>
> > > >         <updatePomFile>true</updatePomFile>
> > > >         <flattenMode>resolveCiFriendliesOnly</flattenMode>
> > > >       </configuration>
> > > >       <executions>
> > > >         <execution>
> > > >           <id>flatten</id>
> > > >           <phase>process-resources</phase>
> > > >           <goals>
> > > >             <goal>flatten</goal>
> > > >           </goals>
> > > >         </execution>
> > > >         <execution>
> > > >           <id>flatten.clean</id>
> > > >           <phase>clean</phase>
> > > >           <goals>
> > > >             <goal>clean</goal>
> > > >           </goals>
> > > >         </execution>
> > > >       </executions>
> > > >     </plugin>
> > > >   </plugins>
> > > >   </build>
> > > >
> > > > While trying to get artifacts, maven build failed with below error:
> > > >
> > > > Failed to read artifact descriptor for
> > > > org.xxxx.xxx.xxxxx:yy-utils:jar:0.0.1: Could not transfer artifact
> > > >
> > > > Can you please help here?
> > > >
> > > > --
> > > >
> > > > *Thanks & Regards,Hanish Bansal*
> > > >
> > > --
> > > Regards,
> > > Tomo
> > >
> >
> >
> > --
> >
> > *Thanks & Regards,Hanish Bansal*
> > Lead Software Engineer, Big Data
> > (M) : +91-995-339-9925
> > LinkedIn: www.linkedin.com/in/hanishbansal/
> >
> --
> Regards,
> Tomo
>


-- 

*Thanks & Regards,Hanish Bansal*
Lead Software Engineer, Big Data
(M) : +91-995-339-9925
LinkedIn: www.linkedin.com/in/hanishbansal/

<<attachment: test-parent.zip>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to