- This topic has 4 replies, 3 voices, and was last updated 13 years, 7 months ago by support-joy.
-
AuthorPosts
-
trantParticipantHaving trouble figuring out how to install local libraries to my maven repository.
According to a MyEclipse web page, MyEclipse allows you to:
Easy installation of your own jars into Maven repository
Where is the interface for this located?
I am so far unable to find it.
Basically, I want to add my weblogic jar files ot my local repository so that I can run the mojo weblogic deployment plugin in MyEclipse. Currently if I try using that plugin by right-clicking my pom.xml, choosing Run As, new run configuration and set the goal as:
org.codehaus.mojo:weblogic-maven-plugin:2.9.1:deploy
Then I get the following error:
[ERROR] Failed to execute goal org.codehaus.mojo:weblogic-maven-plugin:2.9.1:deploy (default-cli) on project pcu: Execution default-cli of goal org.codehaus.mojo:weblogic-maven-plugin:2.9.1:deploy failed: Plugin org.codehaus.mojo:weblogic-maven-plugin:2.9.1 or one of its dependencies could not be resolved: No versions are present in the repository for the artifact with a range [9.0,11.0)
weblogic:weblogic:jar:nullso I want to add that weblogic artifact to the repository but I have no idea how.
Also, how do I run “mvn” commands? I cannot find a mvn.* file anywhere and If i type mvn on command line it says file does not exist.
trantParticipantActually I found out how to do this – it was buried in the tips and tricks tutorial.
But unfortunately it did not help me. I got that error above resolved but now that mojo plugin is throwing a new error:
[ERROR] Failed to execute goal org.codehaus.mojo:weblogic-maven-plugin:2.9.1:deploy (default-cli) on project pcu: Execution default-cli of goal org.codehaus.mojo:weblogic-maven-plugin:2.9.1:deploy failed: A required class was missing while executing org.codehaus.mojo:weblogic-maven-plugin:2.9.1:deploy: weblogic/utils/Debug
??
trantParticipantOk, I finally got the Weblogic deployment working with Maven in MyEclipse.
I still never figured out though how to use the Maven plugin with MyEclipse.
I see there is a section for it in the tutorial: http://www.myeclipseide.com/documentation/quickstarts/maven_tips/
A link at the top:
How and When to use the Command Line ‘MVN’ as a companion
But if you click it, it goes no where. And no such section exists on the page!
XanthrosMemberIn the Package Explorer view, right click on the project and choose “Import…”
Under Maven4MyEclipse you will have two options for what you want:
Import Jar to Maven Repository
Install or deploy an artifact to a Maven repository. (I love the uncapitalized ‘repository’ yet above capitalized)It confused me at first due to the name of the menu item because you don’t “import” an artifact to Maven, you install it.
Remember when you give it the Group Id, Artifact Id and Version this information will be used in your Dependency Management. The reason I mention this is because if you mess up the spelling or name then you have the fun task of removing garbage from your Maven Repository which can’t be done by simply deleting it due to the cache. If you do just delete the directory structure then you’ll still be stuck with the options to choose that garbage in your Dependency Management.
http://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html
http://mojo.codehaus.org/build-helper-maven-plugin/remove-project-artifact-mojo.html
support-joyMemberXanthros,
Thank you for sharing your notes here.
trant,
Thank you for the notification regarding the broken links for Maven4MyEclipse tips. I have raised a PR to fix the same.
Sorry for the inconvenience. -
AuthorPosts