You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Timo Wolf <wo...@in.tum.de> on 2006/11/28 14:09:40 UTC
surefire-junit-2.1.jar
Hi All,
I want to use junit TestSuites in the surefire plugin.
I found a bug http://jira.codehaus.org/browse/MSUREFIRE-113
that says that the usage depends on surefire-junit-2.1-SNAPSHOT.jar
Is there any plan to release surefire-junit-2.1.jar and include it in
the surefire plugin?
Thanks
Timo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: surefire-junit-2.1.jar
Posted by Urbieta Matias <ma...@gmail.com>.
Sorry i didn't tell you that the internalRepository refers to my
snapshot repository. I have deployed maven-jpf-plugin into :
~/.m2/repositorySnapshot/casino/plugins/maven-jpf-plugin/1.0-SNAPSHO
T/maven-jpf-plugin-1.0-20061127.122645-2.jar
and in settings.xml, i refer thar repository as internalSnapshot.
<repository>
<id>internalSnapshot</id>
<name>snapshot repository</name>
<url>file:/localhost/home/deployer/.m2/repositorySnapshot</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>internalSnapshot</id>
<url>file:/localhost/home/deployer/.m2/repositorySnapshot</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
regards
On 11/28/06, Avegaart, Menno <ma...@brocacef.nl> wrote:
> The http://people.apache.org/repo/m2-snapshot-repository/ plugin repository you've added only contains snapshot releases of maven2 plugins that have groupId org.apache.maven.plugins.
> You'll need to specify a plugin repository that contains casino.plugins:maven-jpf-plugin or add it to your local repository.
>
> _____________________________________________________________________________________________________________________
> Important notice: The information contained in this email is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this information in error, please notify us immediately by responding to this email and then delete it from your system. Brocacef Holding and its subsidiaries are neither liable for the proper and complete transmission of the information contained in this email nor for any delay in its receipt.
> _______________________________________________________________________
> ______________________________________________
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Lic Matias Urbieta
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: surefire-junit-2.1.jar
Posted by "Avegaart, Menno" <ma...@brocacef.nl>.
The http://people.apache.org/repo/m2-snapshot-repository/ plugin repository you've added only contains snapshot releases of maven2 plugins that have groupId org.apache.maven.plugins.
You'll need to specify a plugin repository that contains casino.plugins:maven-jpf-plugin or add it to your local repository.
_____________________________________________________________________________________________________________________
Important notice: The information contained in this email is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this information in error, please notify us immediately by responding to this email and then delete it from your system. Brocacef Holding and its subsidiaries are neither liable for the proper and complete transmission of the information contained in this email nor for any delay in its receipt.
_______________________________________________________________________
______________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: surefire-junit-2.1.jar
Posted by Urbieta Matias <ma...@gmail.com>.
I have done, each of those steps but finally maven outputs the following lines:
[INFO] Scanning for projects...
[DEBUG] Skipping disabled repository internalSnapshot
[INFO] artifact casino.plugins:maven-jpf-plugin: checking for updates
from central
[DEBUG] repository metadata for: 'artifact
casino.plugins:maven-jpf-plugin' could not be found on repository:
central
[DEBUG] maven-jpf-plugin: resolved to version 1.0-SNAPSHOT from local repository
[INFO] snapshot casino.plugins:maven-jpf-plugin:1.0-SNAPSHOT: checking
for updates from internalSnapshot
[DEBUG] repository metadata for: 'snapshot
casino.plugins:maven-jpf-plugin:1.0-SNAPSHOT' could not be found on
repository: internalSnapshot
i can't update snapshots artifact from snapshot repositories...
On 11/28/06, Avegaart, Menno <ma...@brocacef.nl> wrote:
> You can just use the surefire-junit-2.1-SNAPSHOT plugin by specifying it as a dependency.
>
> You will also need to setup access to the snapshot repository:
> http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html
>
> _____________________________________________________________________________________________________________________
> Important notice: The information contained in this email is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this information in error, please notify us immediately by responding to this email and then delete it from your system. Brocacef Holding and its subsidiaries are neither liable for the proper and complete transmission of the information contained in this email nor for any delay in its receipt.
> _______________________________________________________________________
> ______________________________________________
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Lic Matias Urbieta
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: surefire-junit-2.1.jar
Posted by Timo Wolf <wo...@in.tum.de>.
Do I have to put the dependency to the main dependency list or to the
<build><plugins><plugin><dependencies>...?
On Nov 28, 2006, at 3:21 PM, Avegaart, Menno wrote:
> You don't need to use profiles. Just add the pluginRepositories
> section to your pom (as you already did).
>
> Secondly, you'll need to add a dependency to surefire-junit-2.1-
> SNAPSHOT (otherwise surefire-junit-2.0 will be used).
>
> ______________________________________________________________________
> _______________________________________________
> Important notice: The information contained in this email is
> intended solely for the use of the individual or entity to whom it
> is addressed and others authorised to receive it. It may contain
> confidential or legally privileged information. If you are not the
> intended recipient you are hereby notified that any disclosure,
> copying, distribution or taking any action in reliance on the
> contents of this information is strictly prohibited and may be
> unlawful. If you have received this information in error, please
> notify us immediately by responding to this email and then delete
> it from your system. Brocacef Holding and its subsidiaries are
> neither liable for the proper and complete transmission of the
> information contained in this email nor for any delay in its receipt.
> ______________________________________________________________________
> _
> ______________________________________________
>
> ---------------------------------------------------------------------
> 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: compile works only on commandline not within eclipse
Posted by Rolf Strijdhorst <ro...@gmail.com>.
Hi this is probably a configuration error from the execution of the m2
plugin in your workspace.
for more help you 'll have to provide your launcher settings and probably
your pom as well.
Rolf.
On 11/28/06, Brigitte.Ilsanker@gi-de.com <Br...@gi-de.com>
wrote:
>
> Folks,
>
> my projects build fine when starting maven from command line. When I try
> to
> use the maven-eclipse plugin and start the build within eclipse, I get the
> following error:
>
> Diagnosis: Compilation failure
> FATAL ERROR: Error executing Maven for a project
> org.apache.maven.BuildFailureException: Compilation failure
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:555)
> at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> (
> DefaultLifecycleExecutor.java:475)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
> DefaultLifecycleExecutor.java:454)
> at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> (
> DefaultLifecycleExecutor.java:306)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> DefaultLifecycleExecutor.java:273)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> DefaultLifecycleExecutor.java:140)
> at org.apache.maven.embedder.MavenEmbedder.execute(
> MavenEmbedder.java:441)
> at org.apache.maven.embedder.MavenEmbedder.execute(
> MavenEmbedder.java:382)
> at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
> Caused by: org.apache.maven.plugin.CompilationFailureException:
> Compilation
> failure
> at org.apache.maven.plugin.AbstractCompilerMojo.execute(
> AbstractCompilerMojo.java:505)
> at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java
> :111
> )
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> DefaultPluginManager.java:412)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:534)
> ... 8 more
>
>
> Up to the goal process-resources the build is successful, but one later
> (compile) fails.
>
> I use jdk1.5.0_06 and eclipse3.2.1 and the plugin from
> http://m2eclipse.codehaus.org.
>
> Any clue, what's wrong?
>
> Thanks!
> Brigitte
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
compile works only on commandline not within eclipse
Posted by Br...@gi-de.com.
Folks,
my projects build fine when starting maven from command line. When I try to
use the maven-eclipse plugin and start the build within eclipse, I get the
following error:
Diagnosis: Compilation failure
FATAL ERROR: Error executing Maven for a project
org.apache.maven.BuildFailureException: Compilation failure
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:555)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(
DefaultLifecycleExecutor.java:475)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(
DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:140)
at org.apache.maven.embedder.MavenEmbedder.execute(
MavenEmbedder.java:441)
at org.apache.maven.embedder.MavenEmbedder.execute(
MavenEmbedder.java:382)
at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation
failure
at org.apache.maven.plugin.AbstractCompilerMojo.execute(
AbstractCompilerMojo.java:505)
at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:111
)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:412)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:534)
... 8 more
Up to the goal process-resources the build is successful, but one later
(compile) fails.
I use jdk1.5.0_06 and eclipse3.2.1 and the plugin from
http://m2eclipse.codehaus.org.
Any clue, what's wrong?
Thanks!
Brigitte
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: surefire-junit-2.1.jar
Posted by "Avegaart, Menno" <ma...@brocacef.nl>.
You don't need to use profiles. Just add the pluginRepositories section to your pom (as you already did).
Secondly, you'll need to add a dependency to surefire-junit-2.1-SNAPSHOT (otherwise surefire-junit-2.0 will be used).
_____________________________________________________________________________________________________________________
Important notice: The information contained in this email is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this information in error, please notify us immediately by responding to this email and then delete it from your system. Brocacef Holding and its subsidiaries are neither liable for the proper and complete transmission of the information contained in this email nor for any delay in its receipt.
_______________________________________________________________________
______________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: surefire-junit-2.1.jar
Posted by Timo Wolf <wo...@in.tum.de>.
Thanks,
The guide tells me to configure the settings.xml file ans use profiles.
I don't want this. is there a way to add the snapshot repository to
the pom?
I added the following but it did not use the repository
Cheers,
Timo
<pluginRepositories>
<pluginRepository>
<id>apache.org</id>
<name>Maven Plugin Snapshots</name>
<url>http://people.apache.org/repo/m2-snapshot-
repository</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
On Nov 28, 2006, at 2:25 PM, Avegaart, Menno wrote:
> You can just use the surefire-junit-2.1-SNAPSHOT plugin by
> specifying it as a dependency.
>
> You will also need to setup access to the snapshot repository:
> http://maven.apache.org/guides/development/guide-plugin-snapshot-
> repositories.html
>
> ______________________________________________________________________
> _______________________________________________
> Important notice: The information contained in this email is
> intended solely for the use of the individual or entity to whom it
> is addressed and others authorised to receive it. It may contain
> confidential or legally privileged information. If you are not the
> intended recipient you are hereby notified that any disclosure,
> copying, distribution or taking any action in reliance on the
> contents of this information is strictly prohibited and may be
> unlawful. If you have received this information in error, please
> notify us immediately by responding to this email and then delete
> it from your system. Brocacef Holding and its subsidiaries are
> neither liable for the proper and complete transmission of the
> information contained in this email nor for any delay in its receipt.
> ______________________________________________________________________
> _
> ______________________________________________
>
> ---------------------------------------------------------------------
> 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: surefire-junit-2.1.jar
Posted by "Avegaart, Menno" <ma...@brocacef.nl>.
You can just use the surefire-junit-2.1-SNAPSHOT plugin by specifying it as a dependency.
You will also need to setup access to the snapshot repository:
http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html
_____________________________________________________________________________________________________________________
Important notice: The information contained in this email is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this information in error, please notify us immediately by responding to this email and then delete it from your system. Brocacef Holding and its subsidiaries are neither liable for the proper and complete transmission of the information contained in this email nor for any delay in its receipt.
_______________________________________________________________________
______________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org