You want to install the dependency in your local repository ??
If so, you need to run "mvn install:install-file" because your jar is
not a maven project, just a dependency you need to put in your
repository.

On 3/29/06, Venkatagopalaraju <[EMAIL PROTECTED]> wrote:
> Dear Maven Users,
>
>           I am using our own jars as dependencies in my pom.xml. In this 
> task, I used command line options as
>
> set -Dversion=1.0
> set -Dartifactid=struts
> set -DgroupId=localjars
> set -Dpackaging=jar  -Dgeneratepom=true
>
> and I created my own jar directory structure as
>
> C:\Documents and 
> Settings\xmraju\.m2\repository\localjars\struts\1.0\struts-1.0.jar
>
> and my pom.xml is...
>
> <project xmlns="http://maven.apache.org/POM/4.0.0"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
> http://maven.apache.org/maven-v4_0_0.xsd";>
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>citistreet.id.util</groupId>
>   <artifactId>cs-struts-base</artifactId>
>   <packaging>jar</packaging>
>   <version>1.0</version>
>   <name>Maven Quick Start Archetype</name>
>   <url>http://maven.apache.org</url>
>   <build>
>       <directory>classes</directory>
>       <outputDirectory>classes</outputDirectory>
>       <finalName>${artifactId}-${version}</finalName>
>       <sourceDirectory>src</sourceDirectory>
>       <plugins>
>         <plugin>
>          <groupId>org.apache.maven.plugins</groupId>
>          <artifactId>maven-compiler-plugin</artifactId>
>          <configuration>
>        <source>1.5</source>
>     <target>1.5</target>
>         </configuration>
>         </plugin>
>   <plugin>
>             <inherited>true</inherited>
>             <groupId>org.apache.maven.plugins</groupId>
>             <artifactId>maven-source-plugin</artifactId>
>             <executions>
>               <execution>
>                 <id>attach-sources</id>
>                 <goals>
>                   <goal>jar</goal>
>                 </goals>
>               </execution>
>             </executions>
>           </plugin>
>        </plugins>
>     </build>
>    <dependencies>
>        <dependency>
>    <groupId>citistreet.id.util</groupId>
>    <artifactId>cs-util</artifactId>
>    <version>1.0</version>
>  </dependency>
>  <dependency>
>   <groupId>localjars</groupId>
>   <artifactId>struts</artifactId>
>   <version>1.0</version>
>   </dependency>
>      </dependencies>
>    <reporting>
>        <outputDirectory>target/site</outputDirectory>
>    </reporting>
> </project>
>
> When I try to run this pom.xml by using "mvn clean package", I found below 
> error as Unable to get resource from repository central...But I am getting 
> build successful. Could you please let me know, What I need to do...and where 
> I did mistake...?
>  Help me Please....
>
>
> [INFO] Using default encoding to copy filtered resources.
> Downloading: http://repo1.maven.org/maven2/localjars/struts/1.0/struts-1.0.pom
> [WARNING] Unable to get resource from repository central 
> (http://repo1.maven.org
> /maven2)
>
>


--
Alexandre Poitras
Québec, Canada

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to