Why doesn't my project build after cloning from git?

I have a project that consists of a two modules:  one that I wrote and a module that I imported using Maven.  After I imported the project I had to mess around with it for several days before I could get it to build.  Mostly this consisted of adding Maven dependencies, adding imports, updating repos, etc.  My inexperience with Maven probably contributed to it taking as long as it did before I could successfully build the project.

Once I successfully built the project, I created a git local repo and a bitbucket remote repo.  Then I committed and pushed the files to bitbucket.  I ignored only workspace.xml and tasks.xml.  All other files were pushed to bitbucket.

Then I cloned to another machine.  The clone appeared to work ok.  However when I tried to run the project, I am getting hundreds of errors like when I first tried to build the project on the first machine.  Lots of Maven dependency problems, etc.  

Why doesn't this project build correctly on the new machine?  It builds on the first machine, I've pushed everything that matters to the remote repo and it all appears to have cloned to the new machine.

3 comments
Comment actions Permalink

Hello.

It's hard to answer to the question without seeing at least one of errors you mention. "Maven dependency problems" make me suppose that the new machine just has empty Maven repository (user.home/.m2/ by default). However, IDEA normally should automatically download required artifacts into local repository. Maybe you try to build the project before this process completes.

Please show at leaset some first error messages to investigate the problem.

Regards,
Alexander.

0
Comment actions Permalink

Alexander

I have gotten it to build now, but I will delete the repo and the project on the 2nd machine and repeat the process again.  This time I'll write down several of the error messages and post them.  

How would I know when the automatic download process is completed?  I didn't see anything on the status bar at the bottom of the screen that any processes were continuing.

Clark

0
Comment actions Permalink

My words about local repository was just an assumption. When IDEA initiates the download of artifacts into local repository it indeed shows the progress in the status bar. So if the progress is not shown, it may be some different problem, e.g. some "crash" of the download process. I can only make conjectures now.

Regards,
Alexander.

0

Please sign in to leave a comment.