English 中文(简体)
如何从maven部署自己的档案
原标题:How to deploy own files from maven

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

问题回答

当你建造Sakai时,它将产生这一缺失的焦炭档案,并将其放置到当地的ma。 尽管如此,这一版本的Sakai是老的,你应当运行Sakai 10。 我们建议你提升到Sakai 10和maven 3. 如果你这样做,这个问题就会消失。

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

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).





相关问题
VS 2008 : How to publish with out DLLs?

I have developed a web application in Visual Studio 2008 and want to publish it in to the production server. I see a publish option there.But its producing files with DLL. I dont want to publish only ...

Apache: Deploying a new site to the server

I have a site currently live on a domain. I would like to switch it to a new site, that is currently in a password protected sub directory on this server. I have a "Site Maintenance in Progress" page....

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Pylons deployment questions

I m a beginner with Pylons and I ve mostly developed on my localhost using the built-in web server. I think it s time to start deployment for my personal blog, I have a Debian Lenny server with ...

Do I want Publish or Release Build in VB.net?

I wrote a little (like 40 lines little) Winforms application with VB.net in Visual Studio 2010. Now I ve released the code as a Google Code project. It s easy for a developer to get the source but I d ...

Need advice on my PHP development solution

Here is how our current php development solution is set up: Each developer work on their local machine. Each developer commit their change to a common SVN server (intranet). A commit hook upload the ...

loading from JAR files during deployment vs development

when i am loading some data into my java program, i usually use FileInputStream. however i deploy the program as a jar file and webstart, so i have to use getRessource() or getRessourceAsStream() to ...

热门标签