Re: Maven 2 : Jalopy plugin

2006-03-22 Thread SiD tourment
It works, THANKS !

On 3/21/06, Piéroni Raphaël [EMAIL PROTECTED] wrote:

 2006/3/21, SiD tourment [EMAIL PROTECTED]:
 
  Ok, it still doesn't works,
 
  my pom.xml :


 [SNIP]

 I found that :
  https://svn.mojo.codehaus.org/mojo/trunk/mojo/jalopy-maven-plugin/
 
  How can i use it ?


 I checked. The jalopy plugin was never released even never have deployed a
 snapshot version.
 So you have to checkout the source code
 svn checkout
 http://svn.mojo.codehaus.org/mojo/trunk/mojo/jalopy-maven-plugin/
 directory
 cd directory
 mvn install -DupdateReleaseInfo=true

 then retry with your project.

 Hope this will help

 Raphaël


 [snip]
 




--
SiD tourment ( http://guildetourment.free.fr/


Maven 2 : Jalopy plugin

2006-03-21 Thread SiD tourment
Hey,

I just installed Maven 2 from http://maven.apache.org/

I want to use the Maven Jalopy Plugin, I followed this link :
http://mojo.codehaus.org/jalopy-maven-plugin/howto.html

I tried to add, in my pom.xml :

project
  build
 plugins
plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIdmaven-jalopy-plugin/artifactId
   version1.0-SNAPSHOT/version
/plugin
 /plugins
  /build
/project

project
  build
 plugins
plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIdjalopy-maven-plugin/artifactId
   version1.0-SNAPSHOT/version
/plugin
 /plugins
  /build
/project

But, always the same error :

D:\Documents and Settings\sid\totomvn site

[INFO] Scanning for projects...
[INFO] -
---
[INFO] Building Maven Quick Start Archetype
[INFO]task-segment: [site]
[INFO] -
---
[INFO] -
---
[ERROR] BUILD ERROR
[INFO] -
---
[INFO] Failed to resolve artifact.

GroupId: org.codehaus.mojo
ArtifactId: jalopy-maven-plugin
Version: 1.0-SNAPSHOT

Reason: Unable to download the artifact from any repository

  org.codehaus.mojo:jalopy-maven-plugin:pom:1.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


[INFO] -
---
[INFO] For more information, run Maven with the -e switch
[INFO] -
---
[INFO] Total time:  1 second
[INFO] Finished at: Tue Mar 21 12:26:31 CET 2006
[INFO] Final Memory: 1M/4M
[INFO] -
---


Someone can help me ?

Thanks.


Re: Maven 2 : Jalopy plugin

2006-03-21 Thread Piéroni Raphaël
Hello SiD,

IIRC, you have to:
configure the repositories to point to the mojo snapshot repo (cant remember
the real address)
or checkout the plugin and build it if it was never deployed.

So check in the guides :
http://maven.apache.org/guides/mini/guide-multiple-repositories.html

repositories
  repository
idMaven Snapshots/id
urlhttp://snapshots.maven.codehaus.org/maven2//url
snapshots
  enabledtrue/enabled
/snapshots
releases
  enabledfalse/enabled
/releases
  /repository
/repositories
pluginRepositories
  pluginRepository
idMaven Snapshots/id
urlhttp://snapshots.maven.codehaus.org/maven2//url
snapshots
  enabledtrue/enabled
/snapshots
releases
  enabledfalse/enabled
/releases
  /pluginRepository
/pluginRepositories

You may also add a plugin group element in your settings. (can't
remember how - but there is some information about it in the mail list
archive)

Hope this will help

Regards

Raphaël




2006/3/21, SiD tourment [EMAIL PROTECTED]:

 Hey,

 I just installed Maven 2 from http://maven.apache.org/

 I want to use the Maven Jalopy Plugin, I followed this link :
 http://mojo.codehaus.org/jalopy-maven-plugin/howto.html

 I tried to add, in my pom.xml :


 project
   build
  plugins
 plugin
groupIdorg.codehaus.mojo/groupId
artifactIdjalopy-maven-plugin/artifactId
version1.0-SNAPSHOT/version
 /plugin
  /plugins
   /build
 /project




This one is the correct one see
http://mojo.codehaus.org/jalopy-maven-plugin/howto.html


Re: Maven 2 : Jalopy plugin

2006-03-21 Thread SiD tourment
Ok, it still doesn't works,

my pom.xml :

...
dependencies
dependency
  groupIdjunit/groupId
  artifactIdjunit/artifactId
  version3.8.1/version
  scopetest/scope
/dependency
  /dependencies
  repositories
repository
  idcodehaus/id
  nameCodehaus maven repository/name
  urlhttp://dist.codehaus.org//url
  layoutlegacy/layout
/repository
repository
  idapache-snapshots/id
  nameApache snapshot repository/name
  urlhttp://cvs.apache.org/maven-snapshot-repository//url
  layoutlegacy/layout
/repository
repository
  idMaven Snapshots/id
  urlhttp://snapshots.maven.codehaus.org/maven2//url
  snapshots
enabledtrue/enabled
  /snapshots
  releases
enabledfalse/enabled
  /releases
/repository
  /repositories
  pluginRepositories
pluginRepository
  idMaven Snapshots/id
  urlhttp://snapshots.maven.codehaus.org/maven2//url
  snapshots
enabledtrue/enabled
  /snapshots
  releases
enabledfalse/enabled
  /releases
/pluginRepository
  /pluginRepositories
  build
plugins
  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdjalopy-maven-plugin/artifactId
version1.0-SNAPSHOT/version
/plugin
  /plugins
/build
/project

Errors :

D:\Documents and Settings\sid\totomvn jalopy:format
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jalopy'.
[INFO] snapshot org.codehaus.mojo:jalopy-maven-plugin:1.0-SNAPSHOT: checking
for
 updates from codehaus
[INFO] snapshot org.codehaus.mojo:jalopy-maven-plugin:1.0-SNAPSHOT: checking
for
 updates from apache-snapshots
Downloading:
http://snapshots.maven.codehaus.org/maven2//org/codehaus/mojo/jalop
y-maven-plugin/1.0-SNAPSHOT/jalopy-maven-plugin-1.0-SNAPSHOT.pom
[WARNING] Unable to get resource from repository Maven Snapshots (
http://snapsho
ts.maven.codehaus.org/maven2/)
Downloading:
http://dist.codehaus.org//org.codehaus.mojo/poms/jalopy-maven-plugi
n-1.0-SNAPSHOT.pom
[WARNING] Unable to get resource from repository codehaus (
http://dist.codehaus.
org/)
Downloading:
http://cvs.apache.org/maven-snapshot-repository//org.codehaus.mojo/
poms/jalopy-maven-plugin-1.0-SNAPSHOT.pom
[WARNING] Unable to get resource from repository apache-snapshots (
http://cvs.ap
ache.org/maven-snapshot-repository/)
Downloading:
http://snapshots.maven.codehaus.org/maven2//org/codehaus/mojo/jalop
y-maven-plugin/1.0-SNAPSHOT/jalopy-maven-plugin-1.0-SNAPSHOT.pom
[WARNING] Unable to get resource from repository Maven Snapshots (
http://snapsho
ts.maven.codehaus.org/maven2/)
[INFO]
-
---
[ERROR] BUILD ERROR
[INFO]
-
---
[INFO] Failed to resolve artifact.

GroupId: org.codehaus.mojo
ArtifactId: jalopy-maven-plugin
Version: 1.0-SNAPSHOT

Reason: Unable to download the artifact from any repository

  org.codehaus.mojo:jalopy-maven-plugin:pom:1.0-SNAPSHOT

from the specified remote repositories:
  Maven Snapshots (http://snapshots.maven.codehaus.org/maven2/),
  central (http://repo1.maven.org/maven2),
  codehaus (http://dist.codehaus.org/),
  apache-snapshots (http://cvs.apache.org/maven-snapshot-repository/)


[INFO]
-
---
[INFO] For more information, run Maven with the -e switch
[INFO]
-
---
[INFO] Total time: 2 seconds
[INFO] Finished at: Tue Mar 21 13:36:16 CET 2006
[INFO] Final Memory: 1M/2M
[INFO]
-


Is it a configuration problem or the plugin isn't on codehaus ?

I found that :
https://svn.mojo.codehaus.org/mojo/trunk/mojo/jalopy-maven-plugin/

How can i use it ?

On 3/21/06, Piéroni Raphaël [EMAIL PROTECTED] wrote:

 Hello SiD,

 IIRC, you have to:
 configure the repositories to point to the mojo snapshot repo (cant
 remember
 the real address)
 or checkout the plugin and build it if it was never deployed.

 So check in the guides :
 http://maven.apache.org/guides/mini/guide-multiple-repositories.html

 repositories
   repository
 idMaven Snapshots/id
 urlhttp://snapshots.maven.codehaus.org/maven2//url
 snapshots
   enabledtrue/enabled
 /snapshots
 releases
   enabledfalse/enabled
 /releases
   /repository
 /repositories
 pluginRepositories
   pluginRepository
 idMaven Snapshots/id
 urlhttp://snapshots.maven.codehaus.org/maven2//url
 snapshots
   enabledtrue/enabled
 /snapshots
 releases
   enabledfalse/enabled
 /releases
   /pluginRepository
 /pluginRepositories

 You may also add a plugin group element in your settings. (can't
 remember how - but there is some information about it in the mail list
 archive)

 Hope this will help

 Regards

 Raphaël




 

Re: Maven 2 : Jalopy plugin

2006-03-21 Thread Stefan Fritz

Teh following works for me:

plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIdjalopy-maven-plugin/artifactId
   !--version1.0-SNAPSHOT/version--
   configuration
   !-- convention default: 
$basedir/src/main/resources/jalopy.xml--
   
conventionc:/dev/var/configurations/jalopy.xml/convention

   /configuration

   executions
   execution
   idformat-main-src/id
   !--phasecompile/phase--
   phaseprocess-sources/phase
   configuration
   
!--outputFile${project.build.directory}/checkstyle-result.xml/outputFile--

   /configuration
   goals
   goalformat/goal
   /goals
   /execution
   /executions
   /plugin


HTH
Stefan


SiD tourment wrote:


Hey,

I just installed Maven 2 from http://maven.apache.org/

I want to use the Maven Jalopy Plugin, I followed this link :
http://mojo.codehaus.org/jalopy-maven-plugin/howto.html

I tried to add, in my pom.xml :

project
 build
plugins
   plugin
  groupIdorg.codehaus.mojo/groupId
  artifactIdmaven-jalopy-plugin/artifactId
  version1.0-SNAPSHOT/version
   /plugin
/plugins
 /build
/project

project
 build
plugins
   plugin
  groupIdorg.codehaus.mojo/groupId
  artifactIdjalopy-maven-plugin/artifactId
  version1.0-SNAPSHOT/version
   /plugin
/plugins
 /build
/project

But, always the same error :

D:\Documents and Settings\sid\totomvn site

[INFO] Scanning for projects...
[INFO] -
---
[INFO] Building Maven Quick Start Archetype
[INFO]task-segment: [site]
[INFO] -
---
[INFO] -
---
[ERROR] BUILD ERROR
[INFO] -
---
[INFO] Failed to resolve artifact.

GroupId: org.codehaus.mojo
ArtifactId: jalopy-maven-plugin
Version: 1.0-SNAPSHOT

Reason: Unable to download the artifact from any repository

 org.codehaus.mojo:jalopy-maven-plugin:pom:1.0-SNAPSHOT

from the specified remote repositories:
 central (http://repo1.maven.org/maven2)


[INFO] -
---
[INFO] For more information, run Maven with the -e switch
[INFO] -
---
[INFO] Total time:  1 second
[INFO] Finished at: Tue Mar 21 12:26:31 CET 2006
[INFO] Final Memory: 1M/4M
[INFO] -
---


Someone can help me ?

Thanks.

 





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven 2 : Jalopy plugin

2006-03-21 Thread Piéroni Raphaël
2006/3/21, SiD tourment [EMAIL PROTECTED]:

 Ok, it still doesn't works,

 my pom.xml :


[SNIP]

I found that :
 https://svn.mojo.codehaus.org/mojo/trunk/mojo/jalopy-maven-plugin/

 How can i use it ?


I checked. The jalopy plugin was never released even never have deployed a
snapshot version.
So you have to checkout the source code
svn checkout
http://svn.mojo.codehaus.org/mojo/trunk/mojo/jalopy-maven-plugin/directory
cd directory
mvn install -DupdateReleaseInfo=true

then retry with your project.

Hope this will help

Raphaël


[snip]