You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by laredotornado-3 <la...@gmail.com> on 2012/02/10 17:20:35 UTC

How do I make a dependency both system and test scope?

Hi,

I'm using Maven 3.0.3.  For bizarre reasons, our company has blocked access
to a certain Maven repo, so I have chosen to load the dependency through the
inclusion

		<dependency> 
			<groupId>org.openqa.selenium.server</groupId> 
			<artifactId>selenium-server</artifactId> 
			<version>2.0b3</version> 
			<scope>system</scope> 
		
<systemPath>${project.basedir}/lib/selenium-server-standalone-2.0b3.jar</systemPath> 
		</dependency>

However, I only want this dependency referenced during the test phase.  How
do I make a dependency both available through a system scope and a test
scope?

Thanks, - Dave

--
View this message in context: http://maven.40175.n5.nabble.com/How-do-I-make-a-dependency-both-system-and-test-scope-tp5473053p5473053.html
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


Re: How do I make a dependency both system and test scope?

Posted by Manfred Moser <ma...@mosabuam.com>.
On 12-02-10 12:53 PM, laredotornado-3 wrote:
> If you're really interested in why we're not deploying it to a local repo it
> is because the red tape and bureaucracy in our big organization prevents
> things from getting done in a timely manner.  We submitted that request a
> couple of weeks ago but haven't gotten any replies from the appropriate
> team.  Now I'm looking for a work-around.
>
The workaround is to install an open source repo manager like Nexus on a 
desktop pc under your table without asking and get on with it. Do the 
right thing technically or you will waste lots of time and money with 
the workarounds you will have to come up with..

manfred

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


Re: How do I make a dependency both system and test scope?

Posted by laredotornado-3 <la...@gmail.com>.
If you're really interested in why we're not deploying it to a local repo it
is because the red tape and bureaucracy in our big organization prevents
things from getting done in a timely manner.  We submitted that request a
couple of weeks ago but haven't gotten any replies from the appropriate
team.  Now I'm looking for a work-around.

If you're more interested in flaming, I guess that's why they invented
stackoverflow. - Dave

--
View this message in context: http://maven.40175.n5.nabble.com/How-do-I-make-a-dependency-both-system-and-test-scope-tp5473053p5473751.html
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


RE: How do I make a dependency both system and test scope?

Posted by "Lyons, Roy" <Ro...@cmegroup.com>.
:-) I work at the company in question -- we don't block access to the repo...  and we are using Nexus to proxy our 3rd party elements.

The problem is that this particular jar has a .exe file in it that the virus scanner goes nutso over.  So when its detected on the filesystem, it immediately quarantines/deletes it.  What should probably be done is that we make a copy of this jar with a classifier -- and the .exe file deleted and upload it to our internal 3rd party repo in nexus.

I am adding the user list at large in case they run into this issue with this jar, and can troubleshoot this as it may relate to their virus scanner!

Thanks,

Roy

-----Original Message-----
From: Stephen Connolly [mailto:stephen.alan.connolly@gmail.com] 
Sent: Friday, February 10, 2012 2:45 PM
To: Maven Users List
Subject: Re: How do I make a dependency both system and test scope?

In the light of idiocy you resort to complete and utter foolishness...

Where is your repository manager? Just deploy it there.

Friends don't let friends use maven without a repository manager

On Friday, 10 February 2012, laredotornado-3 <la...@gmail.com>
wrote:
> Hi,
>
> I'm using Maven 3.0.3.  For bizarre reasons, our company has blocked
access
> to a certain Maven repo, so I have chosen to load the dependency 
> through
the
> inclusion
>
>                <dependency>
>                        <groupId>org.openqa.selenium.server</groupId>
>                        <artifactId>selenium-server</artifactId>
>                        <version>2.0b3</version>
>                        <scope>system</scope>
>
>
<systemPath>${project.basedir}/lib/selenium-server-standalone-2.0b3.jar</systemPath>
>                </dependency>
>
> However, I only want this dependency referenced during the test phase.
 How
> do I make a dependency both available through a system scope and a 
> test scope?
>
> Thanks, - Dave
>
> --
> View this message in context:
http://maven.40175.n5.nabble.com/How-do-I-make-a-dependency-both-system-and-test-scope-tp5473053p5473053.html
> 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: How do I make a dependency both system and test scope?

Posted by Stephen Connolly <st...@gmail.com>.
In the light of idiocy you resort to complete and utter foolishness...

Where is your repository manager? Just deploy it there.

Friends don't let friends use maven without a repository manager

On Friday, 10 February 2012, laredotornado-3 <la...@gmail.com>
wrote:
> Hi,
>
> I'm using Maven 3.0.3.  For bizarre reasons, our company has blocked
access
> to a certain Maven repo, so I have chosen to load the dependency through
the
> inclusion
>
>                <dependency>
>                        <groupId>org.openqa.selenium.server</groupId>
>                        <artifactId>selenium-server</artifactId>
>                        <version>2.0b3</version>
>                        <scope>system</scope>
>
>
<systemPath>${project.basedir}/lib/selenium-server-standalone-2.0b3.jar</systemPath>
>                </dependency>
>
> However, I only want this dependency referenced during the test phase.
 How
> do I make a dependency both available through a system scope and a test
> scope?
>
> Thanks, - Dave
>
> --
> View this message in context:
http://maven.40175.n5.nabble.com/How-do-I-make-a-dependency-both-system-and-test-scope-tp5473053p5473053.html
> 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
>
>