I think that you can install the Nexus on your own machine where you are
doing the test.
You have to remember that your first level dependencies also have
dependencies and you may want to include a dependency and exclude some
of the dependencies that it has (so called transitive dependencies)
ie if
a) your project depends on artifact xyz.com:common_library:1.2 and
abc.com:utilities:6.4
and
b) xyz.com:common_library has a dependency on abc.com:utilities:4.7
then your total dependency tree has 2 versions of abc.com:utilities
requested.
In your reference to xyz.com:common_library should also include an
exclude on abc.com:utilities so that maven does not try to add version
4.7 to your package.
Not sure if this is what is happening but that is very common. Maven
will tell you that you have conflicts like this.
Ron
On 13/01/2012 1:24 PM, vvkbtnkr wrote:
Thanks all for responding on this, I think I see the logic behind the common
theme of the responses. I expected to mavenize the POC in a jiffy, but far
from it, have spent the max time now on getting it to any reasonable shape,
And the worst part is I am not even close to solving all issues , getting a
clean standalone jar to experiment on!!!
Instead of trying to get ops (we thought the repo has to be central so had
to get the ops involved and all ) to give us a machine to install the repo
manager to be used as a real "central" repo, we manually installed the
non-maven jar on our local(stop gap arrangement). And now we are struggling
with the wrong version of a particular jar being included in the final
installed jar, even though in my pom.xml I am referring to the correct
version. Seems like the Shade plugin is somewhere prioritizing the wrong
jar, completely ignoring the version in my pom.xml and ends up packaging the
wrong version. Been struggling with this now, and may be this might be my
next question on forum pretty soon.
I know I am talking to the maven experts, so cannot really curse this tool,
but at least my initial experience has been very rough.
--
View this message in context:
http://maven-users.828.n2.nabble.com/Help-with-installing-a-non-maven-jar-in-local-repo-tp7182923p7185027.html
Sent from the maven users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--
Ron Wheeler
President
Artifact Software Inc
email: [email protected]
skype: ronaldmwheeler
phone: 866-970-2435, ext 102
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]