You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by to...@gi-de.com on 2008/03/04 17:34:52 UTC

how to dependency:sources if sources at different location

Hi, 

I want to dependency:sources the sources from 
http://repo1.maven.org/maven2/org/springframework/spring/2.0.2/

But in my pom.xml I have only references to parts of spring, for example 

        <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-core</artifactId>
                <version>2.0.2</version>
        </dependency>

Any idea how to solve this? 

thanx, torsten

RE: RE: how to dependency:sources if sources at different location

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
Yes, Maven expects that the sources to build a given module are attached to that module and not in another location. 

-----Original Message-----
From: Wayne Fay [mailto:waynefay@gmail.com] 
Sent: Wednesday, March 05, 2008 10:09 AM
To: Maven Users List
Subject: Re: RE: how to dependency:sources if sources at different location

This sounds like work you probably should not be doing. I'd complain
to the Spring folks and see if they won't perhaps publish separate
sources.

Wayne

On 3/5/08, torsten.reinhard@gi-de.com <to...@gi-de.com> wrote:
> Hi,
>
> the point is, that springframework put their sources only as one part to
>
> http://repo1.maven.org/maven2/org/springframework/spring/2.0.2/
> spring-2.0.2-sources.jar
> The sources are bundled in one large zip for all the separate modules!
>
> In my pom.xml the dependency goes to parts of spring, because I don´t need
> all.
>        ...
>        <dependency>
>                <groupId>org.springframework</groupId>
>                <artifactId>spring-core</artifactId>
>                <version>2.0.2</version>
>        </dependency>
>        ...
>
> So if I dependency:sources, there´s no source-jar to download at
> http://repo1.maven.org/maven2/org/springframework/spring-core/2.0.2/
> How can I tell Maven to download the sources for spring-core, spring-web,
> spring-remoting and so on all from the same location (see above).
>
> Thanx, Torsten
>
>
>
>
> "Brian E. Fox" <br...@reply.infinity.nu>
> 04.03.2008 18:03
> Bitte antworten an
> "Maven Users List" <us...@maven.apache.org>
>
>
> An
> "Maven Users List" <us...@maven.apache.org>
> Kopie
>
> Thema
> RE: how to dependency:sources if sources at different location
>
>
>
>
>
>
> The sources goal tries to find sources for all your dependencies. What
> else is it you want to do?
>
> -----Original Message-----
> From: torsten.reinhard@gi-de.com [mailto:torsten.reinhard@gi-de.com]
> Sent: Tuesday, March 04, 2008 11:35 AM
> To: users@maven.apache.org
> Subject: how to dependency:sources if sources at different location
>
> Hi,
>
> I want to dependency:sources the sources from
> http://repo1.maven.org/maven2/org/springframework/spring/2.0.2/
>
> But in my pom.xml I have only references to parts of spring, for example
>
>
>        <dependency>
>                <groupId>org.springframework</groupId>
>                <artifactId>spring-core</artifactId>
>                <version>2.0.2</version>
>        </dependency>
>
> Any idea how to solve this?
>
> thanx, torsten
>
> ---------------------------------------------------------------------
> 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


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


Re: RE: how to dependency:sources if sources at different location

Posted by Wayne Fay <wa...@gmail.com>.
This sounds like work you probably should not be doing. I'd complain
to the Spring folks and see if they won't perhaps publish separate
sources.

Wayne

On 3/5/08, torsten.reinhard@gi-de.com <to...@gi-de.com> wrote:
> Hi,
>
> the point is, that springframework put their sources only as one part to
>
> http://repo1.maven.org/maven2/org/springframework/spring/2.0.2/
> spring-2.0.2-sources.jar
> The sources are bundled in one large zip for all the separate modules!
>
> In my pom.xml the dependency goes to parts of spring, because I don´t need
> all.
>        ...
>        <dependency>
>                <groupId>org.springframework</groupId>
>                <artifactId>spring-core</artifactId>
>                <version>2.0.2</version>
>        </dependency>
>        ...
>
> So if I dependency:sources, there´s no source-jar to download at
> http://repo1.maven.org/maven2/org/springframework/spring-core/2.0.2/
> How can I tell Maven to download the sources for spring-core, spring-web,
> spring-remoting and so on all from the same location (see above).
>
> Thanx, Torsten
>
>
>
>
> "Brian E. Fox" <br...@reply.infinity.nu>
> 04.03.2008 18:03
> Bitte antworten an
> "Maven Users List" <us...@maven.apache.org>
>
>
> An
> "Maven Users List" <us...@maven.apache.org>
> Kopie
>
> Thema
> RE: how to dependency:sources if sources at different location
>
>
>
>
>
>
> The sources goal tries to find sources for all your dependencies. What
> else is it you want to do?
>
> -----Original Message-----
> From: torsten.reinhard@gi-de.com [mailto:torsten.reinhard@gi-de.com]
> Sent: Tuesday, March 04, 2008 11:35 AM
> To: users@maven.apache.org
> Subject: how to dependency:sources if sources at different location
>
> Hi,
>
> I want to dependency:sources the sources from
> http://repo1.maven.org/maven2/org/springframework/spring/2.0.2/
>
> But in my pom.xml I have only references to parts of spring, for example
>
>
>        <dependency>
>                <groupId>org.springframework</groupId>
>                <artifactId>spring-core</artifactId>
>                <version>2.0.2</version>
>        </dependency>
>
> Any idea how to solve this?
>
> thanx, torsten
>
> ---------------------------------------------------------------------
> 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


Antwort: RE: how to dependency:sources if sources at different location

Posted by to...@gi-de.com.
Hi, 

the point is, that springframework put their sources only as one part to 

http://repo1.maven.org/maven2/org/springframework/spring/2.0.2/
spring-2.0.2-sources.jar
The sources are bundled in one large zip for all the separate modules!

In my pom.xml the dependency goes to parts of spring, because I don´t need 
all.
        ...
        <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-core</artifactId>
                <version>2.0.2</version>
        </dependency>
        ...

So if I dependency:sources, there´s no source-jar to download at 
http://repo1.maven.org/maven2/org/springframework/spring-core/2.0.2/
How can I tell Maven to download the sources for spring-core, spring-web, 
spring-remoting and so on all from the same location (see above).

Thanx, Torsten




"Brian E. Fox" <br...@reply.infinity.nu> 
04.03.2008 18:03
Bitte antworten an
"Maven Users List" <us...@maven.apache.org>


An
"Maven Users List" <us...@maven.apache.org>
Kopie

Thema
RE: how to dependency:sources if sources at different location






The sources goal tries to find sources for all your dependencies. What
else is it you want to do? 

-----Original Message-----
From: torsten.reinhard@gi-de.com [mailto:torsten.reinhard@gi-de.com] 
Sent: Tuesday, March 04, 2008 11:35 AM
To: users@maven.apache.org
Subject: how to dependency:sources if sources at different location

Hi, 

I want to dependency:sources the sources from 
http://repo1.maven.org/maven2/org/springframework/spring/2.0.2/

But in my pom.xml I have only references to parts of spring, for example


        <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-core</artifactId>
                <version>2.0.2</version>
        </dependency>

Any idea how to solve this? 

thanx, torsten

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



RE: how to dependency:sources if sources at different location

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
The sources goal tries to find sources for all your dependencies. What
else is it you want to do? 

-----Original Message-----
From: torsten.reinhard@gi-de.com [mailto:torsten.reinhard@gi-de.com] 
Sent: Tuesday, March 04, 2008 11:35 AM
To: users@maven.apache.org
Subject: how to dependency:sources if sources at different location

Hi, 

I want to dependency:sources the sources from 
http://repo1.maven.org/maven2/org/springframework/spring/2.0.2/

But in my pom.xml I have only references to parts of spring, for example


        <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-core</artifactId>
                <version>2.0.2</version>
        </dependency>

Any idea how to solve this? 

thanx, torsten

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