You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by fus <fu...@op.pl> on 2010/01/15 18:42:31 UTC

maven test skip

Hello everyone,

I use maven2 to integrate couple of libraries but there is one another
library which is unavailable from maven repository, so I defined my own
library in eclipse. I wrote some tests, which are connected with this
library, and  running tests 'by hand' works but packaging with maven
unfortunately no, because there are missing dependencies.

Is there any option to specify my assembly plugin to not run tests ?
At this time I run: "mvn -Dmaven.test.skip=true package" but it`s a little
bit annoying.

Thanks for help.
Fuss.
-- 
View this message in context: http://old.nabble.com/maven-test-skip-tp27180863p27180863.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: maven test skip

Posted by David Hoffer <dh...@gmail.com>.
I think you mean install:install-file?  Yes that will work for a single dev
system.  Artifactory, or any maven proxy, gives you a nice GUI for manually
adding artifacts that aren't already available in any maven repo; then you
can treat all as being public on any system not just one.

Cheers,
Dave

On Sat, Jan 16, 2010 at 7:08 AM, fus <fu...@op.pl> wrote:

>
> I checked skipTest option and it works fine.
>
> I was reading about artifactory but it didn`t convinced me to use it in my
> project. But thanks to You, my search led me to mvn install:install which
> is
> enough good solution. No more skipTest option needed :-)
>
> Thank You!
>
> Regards
> Fuss.
> --
> View this message in context:
> http://old.nabble.com/maven-test-skip-tp27180863p27189674.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: maven test skip

Posted by fus <fu...@op.pl>.
I checked skipTest option and it works fine.

I was reading about artifactory but it didn`t convinced me to use it in my
project. But thanks to You, my search led me to mvn install:install which is
enough good solution. No more skipTest option needed :-)

Thank You!

Regards
Fuss.
-- 
View this message in context: http://old.nabble.com/maven-test-skip-tp27180863p27189674.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: maven test skip

Posted by David Hoffer <dh...@gmail.com>.
Yeah you can disable tests using:

<plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-surefire-plugin</artifactId>
       <version>2.4.2</version>
       <configuration>
         <skipTests>true</skipTests>
       </configuration>
     </plugin>

But isn't this missing the larger point?  Your going to need those
dependencies at some point right?  Seems you need a maven proxy/repo where
you can deploy this, you might check out Artifactory.

-Dave


On Fri, Jan 15, 2010 at 10:42 AM, fus <fu...@op.pl> wrote:
>
> Hello everyone,
>
> I use maven2 to integrate couple of libraries but there is one another
> library which is unavailable from maven repository, so I defined my own
> library in eclipse. I wrote some tests, which are connected with this
> library, and  running tests 'by hand' works but packaging with maven
> unfortunately no, because there are missing dependencies.
>
> Is there any option to specify my assembly plugin to not run tests ?
> At this time I run: "mvn -Dmaven.test.skip=true package" but it`s a little
> bit annoying.
>
> Thanks for help.
> Fuss.
> --
> View this message in context:
http://old.nabble.com/maven-test-skip-tp27180863p27180863.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
>