I second the advice about getting an own repository manager.
For completeness: Nexus isn't the only repo manager out there :-)
I know at least of Artifactory and Apache Archiva.
I've made good experience with both Nexus and Artifactory. Cannot say
anything about Archiva.
Am 31.07.2010 15:03, schrieb Ron Wheeler:
On 30/07/2010 1:25 PM, Jack Stanley wrote:
Hi folks. I am a Build / Release Engineer just getting familiar with
Maven.
I've been tasked with adding the JRE + the Jar utility to our Maven
build.
I have done some research, but thought it would be a really good idea
to get
advice from the experts. Here are my questions:
* Should we include the JRE in the maven repo? I didn’t see it in
http://repo1.maven.org/, so I
assume this is not a standard approach. Should we just check it into
SVN? Our project lead
did not have any strong opinions on either approach.
* What is the best way to include it in the build? Should I use the
assembly plugin? If so, does this
code snippet make sense:
<filesets>
<fileset>
<directory>checkout directory/java/jre</directory>
<outputDirectory>target/jre</outputDirectory>
</fileset>
</filesets>
Thanks,
Jack
Others might be able to give you a more definitive answer but my
understanding is as follows
1) Sun licensing does not permit some or all of their products to be
stored in Maven Central
2) You can download the JRE and upload it into your own Nexus repo. I am
not sure if anyone has pom files that you could use but you can put the
Java jars in without them.
It sounds like you are in a serious development organization. If you are
going to use Maven, you need at least the free version of Nexus and may
be able to make good use of the professional version.
Using Maven without your own Repo is way too hard.
We did that for 2 years and it is one of the biggest regrets that we
have about how we started the project.
Do you want to distribute the JRE with your application or just use it
in the build step as a "provided" dependency?
I hope that this helps.
Ron
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]