Re: Problems using maven-dependencies-plugin

2010-11-26 Thread Marvin Froeder
Well, this is problematic right now... there is no place on pom to declare
this information, so since on 2.x maven didn't validate the scope that was
the place for it =D

Hopefully on maven 3.1/project model 5 will make some room so flexmojos
would stop using scopes and this problems would be done.

On Fri, Nov 5, 2010 at 5:39 PM, Rafael Adson Barbosa Barros <
mi...@rafaeladson.com> wrote:

> Hello,
>
> Understood. However, using those scopes is a must for flex programmers who
> want to use maven.
> So maybe a compromise solution would be creating a a validateScopes
> parameter (defaults = true).
> I really need to have maven copy a set of "external" scoped dependencies,
> and I´d hate to have to make a "company branch" of a maven plugin
>
> Thanks,
> Rafael.
>
> On Fri, Nov 5, 2010 at 5:08 PM, Brian Fox  wrote:
>
> > The use of the non-standard scopes is not currently a valid use case,
> > so I'd say it's flexmojos with the bug here. It may work for now but
> > who knows what those scopes could do to other tools.
> >
> > On Fri, Nov 5, 2010 at 1:27 PM, Rafael Adson Barbosa Barros
> >  wrote:
> > > Hi,
> > >
> > > I'm trying to use maven-dependencies-plugin along with flexmojos (
> > > https://github.com/Flexmojos/flexmojos).
> > > What I want to do is use maven-dependencies-plugin to copy some
> > dependencies
> > > to the destination. However, as the project is flex (and not java), I'm
> > > having problems managing it since I have to manage some
> > > dependencies that are defined in the external scope.
> > >
> > > Searching in the maven-dependencies-plugin code base I found:
> > >
> > > if ( !Artifact.SCOPE_COMPILE.equals( includeScope ) &&
> > > !Artifact.SCOPE_TEST.equals( includeScope )
> > >&& !Artifact.SCOPE_PROVIDED.equals( includeScope ) &&
> > > !Artifact.SCOPE_RUNTIME.equals( includeScope )
> > >&& !Artifact.SCOPE_SYSTEM.equals( includeScope ) )
> > >throw new ArtifactFilterException( "Invalid Scope in
> includeScope:
> > "
> > > + includeScope );
> > >
> > > in the class
> > org.apache.maven.shared.artifact.filter.collection.ScopeFilter,
> > > that is not allowing me to use the plugin the way I want to.
> > >
> > > My question then is this: the plugin only supports today scopes that
> are
> > > adequate for the java programming language. Should it not be
> > > language-independent
> > > (thus removing the presented code)? If it should be dependent on java,
> is
> > > there some way that I can use the plugin to do what I want to do?
> > >
> > > Thanks,
> > > Rafael.
> > >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> >
>


Re: Problems using maven-dependencies-plugin

2010-11-08 Thread Jon Paynter
On Sun, Nov 7, 2010 at 10:09 AM, Wayne Fay  wrote:

> > I really need to have maven copy a set of "external" scoped dependencies,
> > and I´d hate to have to make a "company branch" of a maven plugin
>
> Perhaps the Flexmojos project would be willing to take ownership of
> the altered Maven plugin... since they are "causing" the problem in
> the first place.
>

As an interm solution - try using the 'system' scope.  I found it worked
quite well to have the dependency plugin copy files from some other location
when doing final assembly.


Re: Problems using maven-dependencies-plugin

2010-11-07 Thread Wayne Fay
> I really need to have maven copy a set of "external" scoped dependencies,
> and I´d hate to have to make a "company branch" of a maven plugin

Perhaps the Flexmojos project would be willing to take ownership of
the altered Maven plugin... since they are "causing" the problem in
the first place.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Problems using maven-dependencies-plugin

2010-11-05 Thread Rafael Adson Barbosa Barros
Hello,

Understood. However, using those scopes is a must for flex programmers who
want to use maven.
So maybe a compromise solution would be creating a a validateScopes
parameter (defaults = true).
I really need to have maven copy a set of "external" scoped dependencies,
and I´d hate to have to make a "company branch" of a maven plugin

Thanks,
Rafael.

On Fri, Nov 5, 2010 at 5:08 PM, Brian Fox  wrote:

> The use of the non-standard scopes is not currently a valid use case,
> so I'd say it's flexmojos with the bug here. It may work for now but
> who knows what those scopes could do to other tools.
>
> On Fri, Nov 5, 2010 at 1:27 PM, Rafael Adson Barbosa Barros
>  wrote:
> > Hi,
> >
> > I'm trying to use maven-dependencies-plugin along with flexmojos (
> > https://github.com/Flexmojos/flexmojos).
> > What I want to do is use maven-dependencies-plugin to copy some
> dependencies
> > to the destination. However, as the project is flex (and not java), I'm
> > having problems managing it since I have to manage some
> > dependencies that are defined in the external scope.
> >
> > Searching in the maven-dependencies-plugin code base I found:
> >
> > if ( !Artifact.SCOPE_COMPILE.equals( includeScope ) &&
> > !Artifact.SCOPE_TEST.equals( includeScope )
> >&& !Artifact.SCOPE_PROVIDED.equals( includeScope ) &&
> > !Artifact.SCOPE_RUNTIME.equals( includeScope )
> >&& !Artifact.SCOPE_SYSTEM.equals( includeScope ) )
> >throw new ArtifactFilterException( "Invalid Scope in includeScope:
> "
> > + includeScope );
> >
> > in the class
> org.apache.maven.shared.artifact.filter.collection.ScopeFilter,
> > that is not allowing me to use the plugin the way I want to.
> >
> > My question then is this: the plugin only supports today scopes that are
> > adequate for the java programming language. Should it not be
> > language-independent
> > (thus removing the presented code)? If it should be dependent on java, is
> > there some way that I can use the plugin to do what I want to do?
> >
> > Thanks,
> > Rafael.
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Problems using maven-dependencies-plugin

2010-11-05 Thread Brian Fox
The use of the non-standard scopes is not currently a valid use case,
so I'd say it's flexmojos with the bug here. It may work for now but
who knows what those scopes could do to other tools.

On Fri, Nov 5, 2010 at 1:27 PM, Rafael Adson Barbosa Barros
 wrote:
> Hi,
>
> I'm trying to use maven-dependencies-plugin along with flexmojos (
> https://github.com/Flexmojos/flexmojos).
> What I want to do is use maven-dependencies-plugin to copy some dependencies
> to the destination. However, as the project is flex (and not java), I'm
> having problems managing it since I have to manage some
> dependencies that are defined in the external scope.
>
> Searching in the maven-dependencies-plugin code base I found:
>
> if ( !Artifact.SCOPE_COMPILE.equals( includeScope ) &&
> !Artifact.SCOPE_TEST.equals( includeScope )
>                && !Artifact.SCOPE_PROVIDED.equals( includeScope ) &&
> !Artifact.SCOPE_RUNTIME.equals( includeScope )
>                && !Artifact.SCOPE_SYSTEM.equals( includeScope ) )
>        throw new ArtifactFilterException( "Invalid Scope in includeScope: "
> + includeScope );
>
> in the class org.apache.maven.shared.artifact.filter.collection.ScopeFilter,
> that is not allowing me to use the plugin the way I want to.
>
> My question then is this: the plugin only supports today scopes that are
> adequate for the java programming language. Should it not be
> language-independent
> (thus removing the presented code)? If it should be dependent on java, is
> there some way that I can use the plugin to do what I want to do?
>
> Thanks,
> Rafael.
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Problems using maven-dependencies-plugin

2010-11-05 Thread Stephen Connolly
AFAIK, the xml model only defines four/five scopes

compile
runtime
provided
test
system (deprecated)

anything else is technically invalid, though a lot of maven versions
fail to validate scopes completely

(personally there need to be some more scopes: at least "bundled")

-Stephen

On 5 November 2010 17:27, Rafael Adson Barbosa Barros
 wrote:
> Hi,
>
> I'm trying to use maven-dependencies-plugin along with flexmojos (
> https://github.com/Flexmojos/flexmojos).
> What I want to do is use maven-dependencies-plugin to copy some dependencies
> to the destination. However, as the project is flex (and not java), I'm
> having problems managing it since I have to manage some
> dependencies that are defined in the external scope.
>
> Searching in the maven-dependencies-plugin code base I found:
>
> if ( !Artifact.SCOPE_COMPILE.equals( includeScope ) &&
> !Artifact.SCOPE_TEST.equals( includeScope )
>                && !Artifact.SCOPE_PROVIDED.equals( includeScope ) &&
> !Artifact.SCOPE_RUNTIME.equals( includeScope )
>                && !Artifact.SCOPE_SYSTEM.equals( includeScope ) )
>        throw new ArtifactFilterException( "Invalid Scope in includeScope: "
> + includeScope );
>
> in the class org.apache.maven.shared.artifact.filter.collection.ScopeFilter,
> that is not allowing me to use the plugin the way I want to.
>
> My question then is this: the plugin only supports today scopes that are
> adequate for the java programming language. Should it not be
> language-independent
> (thus removing the presented code)? If it should be dependent on java, is
> there some way that I can use the plugin to do what I want to do?
>
> Thanks,
> Rafael.
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org