phase
[top] |
ibiblio.org
[top] |
[top] |
You can do this from a maven command too, but I never get all the security stuff set up so I just scp up an installed folder from my local repository into an apache web server that I use for my repository.
[demo here] or see maven documentation
[top] |
I should never let a maven newbie try Maven with any jars which are not already installed in a remote repository that the pom.xml is pointed to.
Let me put this in plainer english.
Let's say that you have already gone through the nightmarish ordeal of selecting one of Sun's unversioned jars, making up some kind of home-made versioning and group-id stuff, running the install script, and installing it in your local repository.
For you, this ordeal is over. You won't have any problems with that jar again, all you have to do is copy your pom.xml dependency into the next pom.xml that needs it and you can go about your work. But if you give the pom.xml to a buddy so he can fire up the same one, he is hosed ! . He'll get that error about can't find the jar.
So now he has to go through the same ordeal, and if he is new to Maven it will take him 6 months to get over his new-found hatred of Maven.
All because you forgot to scp up your jar to the repository after you installed it in your local repository.
[top] |
Sun ! Certainly not the only-est but probably winner of the frequent flier award in this category
This is actually addressed in maven's on line documention here
[top] |
I always set mine deliberately so I don't know. Anyone here ?
[top] |
How mature/stable is it, and whether or not it fits with the apache license.
[top] |
This is well documented on maven's site . here
[top] |
Things such as install scripts for new projects or new versioned jars need to be run from a shell.
For example:
mvn archetype:create
-DarchetypeGroupId=org.apache.maven.archetypes
-DarchetypeArtifactId=maven-archetype-site
-DgroupId=org.javamug -DartifactId=mvnintrofaqs
[top] |
There is at least one phase: "site" which seems to depend on a clean, or they won't act as you might predict. So this is a little different from the idea of lifecycle phases always running previous phases for it. So I never run "mvn site", only "mvn clean site"
[top] |