Re: software bundles and maven repositories

2007-02-21 Thread Erik Ruisma

Thanks a lot for your replies. This solved my problem.
This is what we did.
We've added JAXP 1.3.2 to our internal repo using the following POM (by
executing 'mvn deploy'):


?xml version=1.0 encoding=UTF-8?
 project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
 http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=
 http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;
   modelVersion4.0.0/modelVersion

   groupIdjavax.xml/groupId
   artifactIdjaxp/artifactId
   version1.3.2/version
   namejaxp bundle/name
   descriptionplaceholder for software bundle JAXP/description

   packagingpom/packaging

   dependencies
 dependency
   groupIdorg.w3c.dom/groupId
   artifactIddom/artifactId
   version2.5.2/version
 /dependency
 dependency
   groupIdjavax.xml.parsers/groupId
   artifactIdjaxp-api/artifactId
   version1.3.2/version
 /dependency
 dependency
   groupIdsax/groupId
   artifactIdsax/artifactId
   version2.0.1/version
 /dependency
 dependency
   groupIdxalan/groupId
   artifactIdxalan/artifactId
   version2.5.2/version
 /dependency
 dependency
   groupIdxerces/groupId
   artifactIdxercesImpl/artifactId
   version2.5.2/version
 /dependency
   /dependencies

   distributionManagement
 repository
   idcentral/id
   nameour internal company repository/name
   urlfile:///\\ourRepoServer/url
 /repository
   /distributionManagement

 /project



This seems to work fine when using it in other projects, don't forget the to
mention the dependency type:
   dependency
 groupIdjavax.xml/groupId
 artifactIdjaxp/artifactId
 version1.3.2/version
 typepom/type
   /dependency


Re: software bundles and maven repositories

2007-02-19 Thread Carlos Sanchez

bundles are usually a bad idea because conflict with dependencies
needed by other projects

jaxp 1.4 is in
http://repo1.maven.org/maven2/javax/xml/parsers/jaxp-api/1.4/
and Sun's reference implementation in
http://repo1.maven.org/maven2/com/sun/xml/parsers/jaxp-ri/1.4/

On 2/19/07, Erik Ruisma [EMAIL PROTECTED] wrote:

Hello,

what does Maven2 recommend when you have projects that depend on software
bundles à la JAXP, JWSDP, ... or others?
In general these software bundles are a collection of other libraries (eg
JAXP 1.3 contains version X of xercesImpl, version Y of xalan,..). So how do
you define a dependency to those packages, or how do you add them to your
internal repository?

I don't seem to find these packages (I'm especially looking for JAXP 1.3 at
this moment) on the public repositories. I assume there are a lot of people
out there who have encountered these questions before.
Our internal repository already contains some of the jaxp dependencies.
So I was thinking about adding a POM for jaxp version 1.3 that uses that
links to the correct versions of the other libraries.
I assume that this should do the job correctly?

Any feedback would be greatly appreciated.




--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
-- The Princess Bride

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: software bundles and maven repositories

2007-02-19 Thread Wayne Fay

You could make your own bundle pom by creating a new pom with
packaging pom and specify the dependencies/libraries used by JWSDP
etc.

So you would make your own JWSDP v 1.4, 1.6, 2.0 etc poms with the
proper dependencies declared and then deploy those poms to your
internal corporate repo, and other developers in your company could
depend on those poms to pull in all the proper libraries you need etc.

Wayne

On 2/19/07, Carlos Sanchez [EMAIL PROTECTED] wrote:

bundles are usually a bad idea because conflict with dependencies
needed by other projects

jaxp 1.4 is in
http://repo1.maven.org/maven2/javax/xml/parsers/jaxp-api/1.4/
and Sun's reference implementation in
http://repo1.maven.org/maven2/com/sun/xml/parsers/jaxp-ri/1.4/

On 2/19/07, Erik Ruisma [EMAIL PROTECTED] wrote:
 Hello,

 what does Maven2 recommend when you have projects that depend on software
 bundles à la JAXP, JWSDP, ... or others?
 In general these software bundles are a collection of other libraries (eg
 JAXP 1.3 contains version X of xercesImpl, version Y of xalan,..). So how do
 you define a dependency to those packages, or how do you add them to your
 internal repository?

 I don't seem to find these packages (I'm especially looking for JAXP 1.3 at
 this moment) on the public repositories. I assume there are a lot of people
 out there who have encountered these questions before.
 Our internal repository already contains some of the jaxp dependencies.
 So I was thinking about adding a POM for jaxp version 1.3 that uses that
 links to the correct versions of the other libraries.
 I assume that this should do the job correctly?

 Any feedback would be greatly appreciated.



--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
 -- The Princess Bride

-
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]