You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Wayne Fay <wa...@gmail.com> on 2007/02/02 16:46:01 UTC

Re: dependency and os.arch os.name

BTW I noticed I was wrong about the missing arch... Sorry for the
misinformation:
http://maven.apache.org/settings.html#Profiles

Wayne

On 1/31/07, Laurent GRANIE <la...@gmail.com> wrote:
> Thanks! I'va already deal with profiles and I think this is the solution !
> I just don't think about it...
>
> Many thanks.
>
> 2007/1/31, Wayne Fay <wa...@gmail.com>:
> > Declare the dependencies inside a <profile> which is activated when
> > <os> matches XYZ. As for the architecture, that does not yet exist in
> > Maven profiles/activation, so if you have a real requirement to deal
> > with multiple architectures, you'll need to hardcode it and specify
> > profiles like -Pwin32-intel on the command line when you run "mvn
> > compile" etc.
> >
> > http://maven.apache.org/guides/introduction/introduction-to-profiles.html
> > http://maven.apache.org/ref/2.0.4/maven-profile/apidocs/org/apache/maven/profiles/Activation.html
> >
> > Wayne
> >
> > On 1/31/07, Laurent GRANIE <la...@gmail.com> wrote:
> > > Hi all,
> > >
> > > I would like to devel an application that depends on JOGL (from
> > > http://jogl.dev.java.net). There is no repository for JOGL but I can
> > > create mine using mvn deploy:deploy-file.
> > >
> > > The problem is that JOGL provides several jar files depending on
> > > os.arch and os.name variables values. How can I create dependency
> > > declaration in my pom.xml?
> > > I try the following with no success :
> > >    <dependency>
> > >      <groupId>jogl</groupId>
> > >      <artifactId>jogl-native-${os.name}-${os.arch}</artifactId>
> > >      <version>1.0</version>
> > >    </dependency>
> > >
> > > org.apache.maven.reactor.MavenExecutionException: Failed to validate POM
> > > [...]
> > > Caused by: org.apache.maven.project.InvalidProjectModelException:
> > > Failed to validate POM
> > >
> > > I think this error is due to a space in the value of the os.name
> > > variable (ie. "Windows XP").
> > >
> > > If you take a look to the following jnlp files, you will notice that
> > > dependencies depend on arch and os :
> > > http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp
> > > http://download.java.net/media/gluegen/webstart/gluegen-rt.jnlp
> > >
> > > Any suggestion to make the same with maven2?
> > >
> > > Thanks, Laurent.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


Re: dependency and os.arch os.name

Posted by Laurent GRANIE <la...@gmail.com>.
Hi,

Thanks, I have read it and have use it yet. I need this to determine
the goob .ajr file for jogl.

My new problems are :
  - how deal with native (.dll and .so) files like the <native> tag in
jnlp? I think my profile should determine the java.library.path value.
  - how maven eclipse could use it to configure my project in eclipse?
For executing unit test for exemple.

Bye, Laurent.

2007/2/3, franz see <fr...@gmail.com>:
>
> Good day,
>
> You can also take a look at [1] for more info on how OS activation works.
>
> Also, you may want to add some info in it as well since the page is new and
> very much incomplete yet.
>
> Thanks,
> Franz
>
> [1] http://docs.codehaus.org/display/MAVENUSER/Profiles
>
>
> Wayne Fay wrote:
> >
> > BTW I noticed I was wrong about the missing arch... Sorry for the
> > misinformation:
> > http://maven.apache.org/settings.html#Profiles
> >
> > Wayne
> >
> > On 1/31/07, Laurent GRANIE <la...@gmail.com> wrote:
> >> Thanks! I'va already deal with profiles and I think this is the solution
> >> !
> >> I just don't think about it...
> >>
> >> Many thanks.
> >>
> >> 2007/1/31, Wayne Fay <wa...@gmail.com>:
> >> > Declare the dependencies inside a <profile> which is activated when
> >> > <os> matches XYZ. As for the architecture, that does not yet exist in
> >> > Maven profiles/activation, so if you have a real requirement to deal
> >> > with multiple architectures, you'll need to hardcode it and specify
> >> > profiles like -Pwin32-intel on the command line when you run "mvn
> >> > compile" etc.
> >> >
> >> >
> >> http://maven.apache.org/guides/introduction/introduction-to-profiles.html
> >> >
> >> http://maven.apache.org/ref/2.0.4/maven-profile/apidocs/org/apache/maven/profiles/Activation.html
> >> >
> >> > Wayne
> >> >
> >> > On 1/31/07, Laurent GRANIE <la...@gmail.com> wrote:
> >> > > Hi all,
> >> > >
> >> > > I would like to devel an application that depends on JOGL (from
> >> > > http://jogl.dev.java.net). There is no repository for JOGL but I can
> >> > > create mine using mvn deploy:deploy-file.
> >> > >
> >> > > The problem is that JOGL provides several jar files depending on
> >> > > os.arch and os.name variables values. How can I create dependency
> >> > > declaration in my pom.xml?
> >> > > I try the following with no success :
> >> > >    <dependency>
> >> > >      <groupId>jogl</groupId>
> >> > >      <artifactId>jogl-native-${os.name}-${os.arch}</artifactId>
> >> > >      <version>1.0</version>
> >> > >    </dependency>
> >> > >
> >> > > org.apache.maven.reactor.MavenExecutionException: Failed to validate
> >> POM
> >> > > [...]
> >> > > Caused by: org.apache.maven.project.InvalidProjectModelException:
> >> > > Failed to validate POM
> >> > >
> >> > > I think this error is due to a space in the value of the os.name
> >> > > variable (ie. "Windows XP").
> >> > >
> >> > > If you take a look to the following jnlp files, you will notice that
> >> > > dependencies depend on arch and os :
> >> > >
> >> http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp
> >> > > http://download.java.net/media/gluegen/webstart/gluegen-rt.jnlp
> >> > >
> >> > > Any suggestion to make the same with maven2?
> >> > >
> >> > > Thanks, Laurent.
> >> > >
> >> > > ---------------------------------------------------------------------
> >> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> > > For additional commands, e-mail: users-help@maven.apache.org
> >> > >
> >> > >
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> > For additional commands, e-mail: users-help@maven.apache.org
> >> >
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/dependency-and-os.arch-os.name-tf3148996s177.html#a8781569
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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


Re: dependency and os.arch os.name

Posted by franz see <fr...@gmail.com>.
Good day,

You can also take a look at [1] for more info on how OS activation works. 

Also, you may want to add some info in it as well since the page is new and
very much incomplete yet.

Thanks,
Franz

[1] http://docs.codehaus.org/display/MAVENUSER/Profiles


Wayne Fay wrote:
> 
> BTW I noticed I was wrong about the missing arch... Sorry for the
> misinformation:
> http://maven.apache.org/settings.html#Profiles
> 
> Wayne
> 
> On 1/31/07, Laurent GRANIE <la...@gmail.com> wrote:
>> Thanks! I'va already deal with profiles and I think this is the solution
>> !
>> I just don't think about it...
>>
>> Many thanks.
>>
>> 2007/1/31, Wayne Fay <wa...@gmail.com>:
>> > Declare the dependencies inside a <profile> which is activated when
>> > <os> matches XYZ. As for the architecture, that does not yet exist in
>> > Maven profiles/activation, so if you have a real requirement to deal
>> > with multiple architectures, you'll need to hardcode it and specify
>> > profiles like -Pwin32-intel on the command line when you run "mvn
>> > compile" etc.
>> >
>> >
>> http://maven.apache.org/guides/introduction/introduction-to-profiles.html
>> >
>> http://maven.apache.org/ref/2.0.4/maven-profile/apidocs/org/apache/maven/profiles/Activation.html
>> >
>> > Wayne
>> >
>> > On 1/31/07, Laurent GRANIE <la...@gmail.com> wrote:
>> > > Hi all,
>> > >
>> > > I would like to devel an application that depends on JOGL (from
>> > > http://jogl.dev.java.net). There is no repository for JOGL but I can
>> > > create mine using mvn deploy:deploy-file.
>> > >
>> > > The problem is that JOGL provides several jar files depending on
>> > > os.arch and os.name variables values. How can I create dependency
>> > > declaration in my pom.xml?
>> > > I try the following with no success :
>> > >    <dependency>
>> > >      <groupId>jogl</groupId>
>> > >      <artifactId>jogl-native-${os.name}-${os.arch}</artifactId>
>> > >      <version>1.0</version>
>> > >    </dependency>
>> > >
>> > > org.apache.maven.reactor.MavenExecutionException: Failed to validate
>> POM
>> > > [...]
>> > > Caused by: org.apache.maven.project.InvalidProjectModelException:
>> > > Failed to validate POM
>> > >
>> > > I think this error is due to a space in the value of the os.name
>> > > variable (ie. "Windows XP").
>> > >
>> > > If you take a look to the following jnlp files, you will notice that
>> > > dependencies depend on arch and os :
>> > >
>> http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp
>> > > http://download.java.net/media/gluegen/webstart/gluegen-rt.jnlp
>> > >
>> > > Any suggestion to make the same with maven2?
>> > >
>> > > Thanks, Laurent.
>> > >
>> > > ---------------------------------------------------------------------
>> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> > > For additional commands, e-mail: users-help@maven.apache.org
>> > >
>> > >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> > For additional commands, e-mail: users-help@maven.apache.org
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/dependency-and-os.arch-os.name-tf3148996s177.html#a8781569
Sent from the Maven - Users mailing list archive at Nabble.com.


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