How to deploy own files from maven

351 views Asked by At

I am installing and running sakai project from command prompt mvn install sakai:deploy but command prompt show me error that 2 artifact missing that is 2 jar files are missing dwnload it manually i am dwnload it and save it in local system then how i can install and deploy it

2

There are 2 answers

1
amit sharma On

As i can understand you have to manually add the jar in .m2 repository where it needs to be or add dependency in pom.xml for it(it will automatically add it in repository). One more thing you can try, go to project>right click>build path> add external jar (it will add the jar to your project).

0
Aaron Zeckoski On

When you build Sakai it will generate that missing jar file and place it into the local maven repo. That said, this version of Sakai is very old and you should be running Sakai 10. We suggest you upgrade to Sakai 10 and maven 3. If you do, this issue will go away.

The process for building Sakai is as follows:

  1. Open a command line shell
  2. Change directory to your Sakai source root directory (should contain many directories including the "master" directory)
  3. Execute mvn clean install to build the Sakai source using maven Note: The build will take an extra 5-10 minutes to download dependencies the first time
  4. Execute mvn sakai:deploy to deploy Sakai to your tomcat using maven
    • Partial builds are supported by the maven2/3 build system
    • You can do a "mvn clean install sakai:deploy" from any subdirectory and build just that code
    • Once you have downloaded the jars you can run maven off-line with mvn -o clean install sakai:deploy