Thanks, but..

I am creating an application which requires download of artifacts for the
results coming from Nexus query(This gives me ArtifactInfo and this has
repository name), My problem is when I go for download of any artifact, and
if this artifact is of packaging type 'jar', I am able to download this jar
since I know what repository I have to use, but if packaging type is 'pom',
I am in need to download it first(I know from where to download i.e
repository value from ArtifactInfo) and then extract the all dependenciesand
download them one by one.

I am not sure where I should look for it (dependencies from downloaded
<depedency-name>.pom file), if I create an object of ArtifactInfo  for this
what would be the value of repository.

 ---Amaresh

On Thu, Jun 17, 2010 at 4:53 PM, Ron Wheeler <[email protected]
> wrote:

> Install Nexus and these problem (and a lot of other ones) go away.
> Out of the box, it will find all of the common dependencies and you can add
> more 3rd party repos if you need some odd stuff.
>
> You will save yourself a lot of grief and false starts with maven if you
> get Nexus going early in the project.
>
> Ron
>
>
> On 17/06/2010 3:04 AM, amaresh mourya wrote:
>
>> Hi All,
>>
>> I have maven-utils-parent-1.0.pom and this have<dependencyManagement>  as
>> shown below. Not by reading this pom I am in need to download all its
>> dependencies (jar files). One way is that I try downloading(using
>> ArtifactResolver's resolve method) from central, but it is possible that
>> these dependencies doesn't exist in central.
>>
>> My question is : how would I know where to look for these dependencies, by
>> reading pom(maven-utils-parent-1.0.pom)?. Is there any way to extract
>> repositories information where these dependencies can be found.??
>>
>>
>> <dependencyManagement>
>>     <dependencies>
>>       <!-- Internal project dependencies -->
>>       <dependency>
>>         <groupId>${project.groupId}</groupId>
>>         <artifactId>maven-utils</artifactId>
>>         <version>${project.version}</version>
>>       </dependency>
>>
>>       <!-- Third-party software -->
>>       <dependency>
>>         <groupId>log4j</groupId>
>>         <artifactId>log4j</artifactId>
>>         <version>1.2.14</version>
>>       </dependency>
>>
>>       <dependency>
>>         <groupId>junit</groupId>
>>         <artifactId>junit</artifactId>
>>         <version>3.8.1</version>
>>         <scope>test</scope>
>>       </dependency>
>>
>>       <!-- Java EE -->
>>       <dependency>
>>         <groupId>javax.servlet</groupId>
>>         <artifactId>servlet-api</artifactId>
>>         <version>2.5</version>
>>         <scope>provided</scope>
>>       </dependency>
>>
>>       <dependency>
>>         <groupId>javax.servlet.jsp</groupId>
>>         <artifactId>jsp-api</artifactId>
>>         <version>2.1</version>
>>         <scope>provided</scope>
>>       </dependency>
>>     </dependencies>
>>   </dependencyManagement>
>>
>>
>> Thanks,
>> Amaresh
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to