You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Sachin Bansal <sb...@adobe.com> on 2004/10/29 22:05:33 UTC

project dependency : strange problem

Maven Users,

If I use maven multiproject:install-snapshot (SNAPSHOT) for the version
information (for projects to figure out the dependencies on other projects)
it works as long as the name of the project does not have a '.' in it.

That is if my sub-project names are like

myProject
  foo
  bar
  hello
  world

Then maven figures out the inter-dependencies among the projects and builds
snapshot jars. 

But if my sub-project are like following

myProject
  com.abc.def.A
  com.abc.def.B
  com.abc.def.C
  com.abc.def.D
  com.abc.def.E
  com.abc.def.F

Maven fails to figure out the inter-dependencies among the projects and
looks for the "com.abc.deg.c-SNAPSHOT.jar (if my project com.abc.def.A
depends on com.abc.def.C)

Has anyone else encountered the same problem? What is the work around, if I
cannot change the name of my project (owing to the fact that they are
eclipse plugins)
I look forward to your suggestions. Also, the mailing list users have been
really helpful in suggesting and guiding me to get up to speed on Maven.

I am using the command> maven multiproject:install-snapshot

Thanks,
 
Sachin
 
svbansal@yahoo.com


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


Re: project dependency : strange problem

Posted by Brett Porter <br...@gmail.com>.
I'm not sure we've ever considered '.' to be valid in an artifactID,
but it certainly is in the groupId. try that, and if it still doesn't
work, file it as a bug.

I'd suggest a groupId of "com.abc.def" and artifactId of "F", for
example, and introduce some other process of renaming it to
${pom.groupId}.${pom.artifactId}-${pom.currentVersion}.jar when
publishing to the eclipse plugins directory (you can use
maven.final.name to change the name as it hits the target directory)

Cheers,
Brett

On Fri, 29 Oct 2004 13:05:33 -0700, Sachin Bansal <sb...@adobe.com> wrote:
> 
> Maven Users,
> 
> If I use maven multiproject:install-snapshot (SNAPSHOT) for the version
> information (for projects to figure out the dependencies on other projects)
> it works as long as the name of the project does not have a '.' in it.
> 
> That is if my sub-project names are like
> 
> myProject
>   foo
>   bar
>   hello
>   world
> 
> Then maven figures out the inter-dependencies among the projects and builds
> snapshot jars.
> 
> But if my sub-project are like following
> 
> myProject
>   com.abc.def.A
>   com.abc.def.B
>   com.abc.def.C
>   com.abc.def.D
>   com.abc.def.E
>   com.abc.def.F
> 
> Maven fails to figure out the inter-dependencies among the projects and
> looks for the "com.abc.deg.c-SNAPSHOT.jar (if my project com.abc.def.A
> depends on com.abc.def.C)
> 
> Has anyone else encountered the same problem? What is the work around, if I
> cannot change the name of my project (owing to the fact that they are
> eclipse plugins)
> I look forward to your suggestions. Also, the mailing list users have been
> really helpful in suggesting and guiding me to get up to speed on Maven.
> 
> I am using the command> maven multiproject:install-snapshot
> 
> Thanks,
> 
> Sachin
> 
> svbansal@yahoo.com
> 
> ---------------------------------------------------------------------
> 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