[EJB 3.0 Development] New message: "Re: EJBTHREE-2007: VFS Abstraction"
by jaikiran pai
JBoss development,
A new message was posted in the thread "EJBTHREE-2007: VFS Abstraction":
http://community.jboss.org/message/524557#524557
Author : jaikiran pai
Profile : http://community.jboss.org/people/jaikiran
Message:
--------------------------------------------------------------
> jaikiran wrote:
>
> I don't mind having this new enforcer rule, but eventually i suspect that we are going to end up with a lengthy (trial and error, ever changing) excludes list
A bit OT - If Maven allowed a way to exclude an artifact irrespective of from which artifact it get's pulled in transitively from, then instead of something like this:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>${version.org.hibernate}</version>
<!-- Exclude org.hibernate:hibernate which is banned in
favour of org.hibernate:hibernate-core -->
<exclusions>
<exclusion>
<groupId>org.hibernate</groupId>
<artifactId>hibernate</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>${version.org.hibernate.hibernate-entitymanager}</version>
<!-- Exclude org.hibernate:hibernate which is banned in
favour of org.hibernate:hibernate-core -->
<exclusions>
<exclusion>
<groupId>org.hibernate</groupId>
<artifactId>hibernate</artifactId>
</exclusion>
</exclusions>
</dependency>
we could just have had:
<exclusions>
<exclusion>
<groupId>org.hibernate</groupId>
<artifactId>hibernate</artifactId>
<!-- Instruct Maven to exclude this artifact from any dependency
of this project which pulls this in -->
<include-transitive/>
</exclusion>
</exclusions>
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/524557#524557
16 years, 2 months
[EJB 3.0 Development] New message: "Re: EJBTHREE-2007: VFS Abstraction"
by jaikiran pai
JBoss development,
A new message was posted in the thread "EJBTHREE-2007: VFS Abstraction":
http://community.jboss.org/message/524556#524556
Author : jaikiran pai
Profile : http://community.jboss.org/people/jaikiran
Message:
--------------------------------------------------------------
> ALRubinger wrote:
>
> Good! That way we can be ensured we're not depending upon VFS directly, no matter what comes in. And it future-proofs us.
>
> I know I asked if anyone thinks I'm being too strict; I don't think I am.
>
> So we should set exclusions appropriately and ensure that we only have it in "provided"; available to runtimes.
>
> S,
> ALR
I don't mind having this new enforcer rule, but eventually i suspect that we are going to end up with a lengthy (trial and error, ever changing) excludes list
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/524556#524556
16 years, 2 months
[EJB 3.0 Development] New message: "Re: EJBTHREE-2007: VFS Abstraction"
by Andrew Rubinger
JBoss development,
A new message was posted in the thread "EJBTHREE-2007: VFS Abstraction":
http://community.jboss.org/message/524555#524555
Author : Andrew Rubinger
Profile : http://community.jboss.org/people/ALRubinger
Message:
--------------------------------------------------------------
> jaikiran wrote:
>
> > ALRubinger wrote:
> >
> >
> > Something I want is an Enforcer Plugin configuration which will fail the build if any org.jboss:jboss-vfs is available in "compile" scope; this is a runtime dependency which should be restricted to "provided".
> >
> >
> I think with such a rule, we might run into trouble if that org.jboss:jboss-vfs is being pulled in transitively during compile scope from some other non-EJB3 module. Ex: core (depends on) --> some artifact (compile scope dependency on) --> org.jboss:jboss-vfs
Good! That way we can be ensured we're not depending upon VFS directly, no matter what comes in. And it future-proofs us.
I know I asked if anyone thinks I'm being too strict; I don't think I am.
So we should set exclusions appropriately and ensure that we only have it in "provided"; available to runtimes.
S,
ALR
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/524555#524555
16 years, 2 months