maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krikor Krumlian <krikor_kruml...@wgbh.org>
Subject jars that are not in maven repository and how to deal with them
Date Wed, 16 Nov 2005 20:44:43 GMT
Ok guys here is the deal -

Now I have a jar file called db2xml.jar - and this needs to go in my
repository. So i executed the following command

mvn install:install-file -Dfile=/Users/greg/.maven/repository/db2xml/ 
jars/db2xml.jar -DgroupId=db2xml -DartifactId=db2xml -Dversion=1.4 - 
Dpackaging=jar

Ok now that is very good it added all the stuff to the repository
now i go to compile and i get the following

[INFO] Scanning for projects...
[INFO]  
------------------------------------------------------------------------ 
----
[INFO] Building Online Ingestor
[INFO]    task-segment: [compile]
[INFO]  
------------------------------------------------------------------------ 
----
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading: http://repo1.maven.org/maven2/db2xml/db2xml/1.4/ 
db2xml-1.4.pom
[WARNING] Unable to get resource from repository central (http:// 
repo1.maven.org/maven2)
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO]  
------------------------------------------------------------------------ 
----
[INFO] BUILD SUCCESSFUL
[INFO]  
------------------------------------------------------------------------ 
----
[INFO] Total time: 24 seconds
[INFO] Finished at: Wed Nov 16 10:57:10 EST 2005
[INFO] Final Memory: 3M/6M
[INFO]  
------------------------------------------------------------------------ 
----

So i go to the ./m2/repository/db2xml/db2xml/1.4 and create a  
db2xml-1.4.pom with the following content


<project>
   <modelVersion>4.0.0</modelVersion>
   <groupId>db2xml</groupId>
   <artifactId>db2xml</artifactId>
   <version>1.4</version>
</project>

Now i compile and I dont get that message which is beautiful . But my  
question do i Have to do the same for
each jar that is not in the maven 2 repository ?

Thank you 

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


Mime
View raw message