You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Kevin Krumwiede <kj...@gmail.com> on 2013/10/12 20:07:43 UTC

Module can't find its dependencies

I'm trying to set up my first modular project, and it's not working.
The child project cannot find its dependencies.  Actually, it doesn't
even try to find them.  It just tries to compile my source, which
fails because the dependencies aren't in the classpath.

Here's my parent pom: https://github.com/kjkrum/DarkMatter/blob/master/pom.xml
And here's the module:
https://github.com/kjkrum/DarkMatter/blob/master/weapon/pom.xml

The dependencies are present in my repo: http://chalcodes.com/maven
Other (non-modular) projects using the same repo build just fine.

What am I doing wrong?

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


Re: Module can't find its dependencies

Posted by Kevin Krumwiede <kj...@gmail.com>.
The problem turned out to be that the POMs included with the library I
forked didn't actually run the compiler plugin.  The jars were just
full of resources!  So of course the packages didn't exist.  I fixed
the POMs and everything was groovy.

On 10/12/13, Ron Wheeler <rw...@artifact-software.com> wrote:
> On 12/10/2013 2:07 PM, Kevin Krumwiede wrote:
>> I'm trying to set up my first modular project, and it's not working.
>> The child project cannot find its dependencies.  Actually, it doesn't
>> even try to find them.  It just tries to compile my source, which
>> fails because the dependencies aren't in the classpath.
>>
>> Here's my parent pom:
>> https://github.com/kjkrum/DarkMatter/blob/master/pom.xml
>> And here's the module:
>> https://github.com/kjkrum/DarkMatter/blob/master/weapon/pom.xml
>>
>> The dependencies are present in my repo: http://chalcodes.com/maven
>> Other (non-modular) projects using the same repo build just fine.
>>
>> What am I doing wrong?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> What dependencies can not be found?
> What is the error message?
> I am not sure what classpath has to do with this; do you mean build path?
> What IDE are you using? Does it show any errors?
>
>
> --
> Ron Wheeler
> President
> Artifact Software Inc
> email: rwheeler@artifact-software.com
> skype: ronaldmwheeler
> phone: 866-970-2435, ext 102
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


Re: Module can't find its dependencies

Posted by Ron Wheeler <rw...@artifact-software.com>.
On 12/10/2013 2:07 PM, Kevin Krumwiede wrote:
> I'm trying to set up my first modular project, and it's not working.
> The child project cannot find its dependencies.  Actually, it doesn't
> even try to find them.  It just tries to compile my source, which
> fails because the dependencies aren't in the classpath.
>
> Here's my parent pom: https://github.com/kjkrum/DarkMatter/blob/master/pom.xml
> And here's the module:
> https://github.com/kjkrum/DarkMatter/blob/master/weapon/pom.xml
>
> The dependencies are present in my repo: http://chalcodes.com/maven
> Other (non-modular) projects using the same repo build just fine.
>
> What am I doing wrong?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
What dependencies can not be found?
What is the error message?
I am not sure what classpath has to do with this; do you mean build path?
What IDE are you using? Does it show any errors?


-- 
Ron Wheeler
President
Artifact Software Inc
email: rwheeler@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


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