[lift] : Maven Repository and javax.comm api

1,231 views
Skip to first unread message

Arland stive

unread,
Jul 16, 2011, 2:29:13 AM7/16/11
to Lift
hello all,

i want to use javax.comm api of java in my lift code ,
i m using sbt and jetty-run ..
For use javax.comm api i have modify my dipendancy means my
Project.scala as like below,

mport sbt._

class MailAppProject(info: ProjectInfo) extends
DefaultWebProject(info) {
val liftVersion = "2.3"

override def scanDirectories = Nil

override def libraryDependencies = Set(
"net.liftweb" %% "lift-webkit" % liftVersion % "compile->default",
"net.liftweb" %% "lift-mapper" % liftVersion % "compile->default",
"net.liftweb" %% "lift-wizard" % liftVersion % "compile->default",
"org.mortbay.jetty" % "jetty" % "6.1.22" % "test->default",
"junit" % "junit" % "4.5" % "test->default",
"org.scala-tools.testing" % "specs" % "1.6.2.1" % "test->default",
=>> "javax.comm" % "comm" % "2.0.3" ,
"javax.mail" % "mail" % "1.4",
"javax.servlet" % "servlet-api" % "2.5" % "provided->default",
"mysql" % "mysql-connector-java" % "5.1.12"
) ++ super.libraryDependencies

override val jettyPort = 8080
override def compileOptions = super.compileOptions ++ Seq(Unchecked)
++
compileOptions("-encoding", "utf8")

}

but when i run sbt -> update
at the time update it throw so many Warnings as below...........

> update
[info]
[info] == update ==
[warn] [NOT FOUND ] javax.comm#comm;2.0.3!comm.jar (1221ms)
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/javax/comm/comm/2.0.3/comm-2.0.3.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: FAILED DOWNLOADS ::
[warn] :: ^ see resolution messages for details ^ ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: javax.comm#comm;2.0.3!comm.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[info]
[warn] :: problems summary ::
[warn] :::: WARNINGS
[warn] [NOT FOUND ] javax.comm#comm;2.0.3!comm.jar (1221ms)
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/javax/comm/comm/2.0.3/comm-2.0.3.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: FAILED DOWNLOADS ::
[warn] :: ^ see resolution messages for details ^ ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: javax.comm#comm;2.0.3!comm.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[info]
[info] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
[error] sbt.ResolveException: download failed: javax.comm#comm;2.0.3!
comm.jar
[info] == update ==
[error] Error running update: sbt.ResolveException: download failed:
javax.comm#comm;2.0.3!comm.jar
[info]
[info] Total time: 7 s, completed Jul 15, 2011 11:56:29 PM

i know that very well that my project can't access the javax/comm/comm/
2.0.3/comm-2.0.3.jar in the mevan repository ........

But Please anybody tell me what i want to do to use javax/comm/comm/
2.0.3/comm-2.0.3.jar in my project and why mevan repository can't let
acess this api......please anybody give me right way


Regards & Thanks,

Arland Stive(Lift Learner)

Tim Nelson

unread,
Jul 16, 2011, 9:31:32 AM7/16/11
to lif...@googlegroups.com
Hi,

There's not a jar in the repo:


You may have to download it directly and put it in your /lib folder.

Tim

Peter Petersson

unread,
Jul 16, 2011, 1:12:59 PM7/16/11
to lif...@googlegroups.com
... put it in your /lib folder .... or better yet (after download of the jar) add it to you local maven repo as instructed by maven (and keep your maven dependency).
best regards
   Peter Petersson
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To view this discussion on the web visit https://groups.google.com/d/msg/liftweb/-/UbqDXVEv5eEJ.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.

Arland stive

unread,
Jul 18, 2011, 6:23:46 AM7/18/11
to lif...@googlegroups.com
Thank you sir,
thanks you very very much to reply me,
and sir can u please describe me where and how i can put downloaded .jar file in my project.

Arland stive

unread,
Jul 18, 2011, 6:24:00 AM7/18/11
to lif...@googlegroups.com

Peter Petersson

unread,
Jul 18, 2011, 8:05:20 AM7/18/11
to lif...@googlegroups.com
Like this

mvn install:install-file -DgroupId=<your_group_name> \
-DartifactId=<your_artifact_name> \
-Dversion=<snapshot> \
-Dfile=<path_to_your_jar_file> \
-Dpackaging=jar \
-DgeneratePom=true

This will install the jar into your local repository (.m2 dir). You will
then be able to refer to it in your pom
<dependency>
<groupId>javax.comm</groupId>
<artifactId>comm</artifactId>
<version>${commVersion}</version>
</dependency>

Hope this helps
best regards
Peter Petersson

> --
> You received this message because you are subscribed to the Google
> Groups "Lift" group.

Arland stive

unread,
Jul 18, 2011, 8:43:57 AM7/18/11
to lif...@googlegroups.com
Thank you sir,

Thanks you so much,


Arland stive

unread,
Jul 20, 2011, 5:41:34 AM7/20/11
to lif...@googlegroups.com
On Mon, Jul 18, 2011 at 5:35 PM, Peter Petersson <peterss...@gmail.com> wrote:
Like this

mvn install:install-file -DgroupId=<your_group_name>  \
-DartifactId=<your_artifact_name>  \
-Dversion=<snapshot>  \
-Dfile=<path_to_your_jar_file>  \
-Dpackaging=jar \
-DgeneratePom=true

This will install the jar into your local repository (.m2 dir). You will then be able to refer to it in your pom
<dependency>
<groupId>javax.comm</groupId>
<artifactId>comm</artifactId>
<version>${commVersion}</version>
</dependency>

Hope this helps
best regards
  Peter Petersson
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
hello sir,
before some time you give me above suggetion for installing javax.comm api in my local repository with above techniqe ,but sir i have tried it in my linux-fedora11 system as like,


mvn install:install-file -DgroupId=<javax.comm>  \
-DartifactId=<comm>  \
-Dversion=<2.0.3>  \
-Dfile=<path_to_your_jar_file>  \    ====>> Which Path ??
-Dpackaging=jar \                        ====>> ??
-DgeneratePom=true                    ====>> ??

but it gives so many errors and warnings...
and sir please also not that  i m runnig my project in SBT>>JETTY-RUN  ,so please give me some right ways to acheives it.............................


                                                                                                                                                                                Thanks you,
                                                                                                                                                                                Arland(scala/Lift Learner)

Naftoli Gugenheim

unread,
Jul 20, 2011, 11:51:01 PM7/20/11
to lif...@googlegroups.com
If your using sbt then just download the file into the lib subdirectory of your project.


Reply all
Reply to author
Forward
0 new messages