Re: Re : Re: Proxy at maven 2

2006-11-01 Thread Xavier Outhier

I'm happy it worked.
I'm testing maven since 2 weeks only but it seems very powerful.
The mailing-list is very active.
I will try to make it adopted it in my next project.

Have a nice day,

Xavier.
Michael Post wrote:

Hello Xavier,

thanks for your answer.

--
2006 Oct 30 - 14:54
Xavier Outhier [EMAIL PROTECTED]
--
  

The settings for maven (2) is an xml file at this location:
C:Documents and Settingsyour login.m2settings.xml

- # settings

proxies
-   # proxy
 activetrue/active
 protocolhttp/protocol
 hostYOUR HOST NAME eg: 123.34.54.67/host
 portYOUR PORT eg 8081/port
 username /
 password /
/proxy
/proxies
[...]
/settings

Username and password can also be set depends on your config.




this was exactly the correct point. Now it has been done perfectly.

  



Thanks Michael




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



Re: Proxy at maven 2

2006-10-30 Thread Xavier Outhier

Michael Post wrote:

Hello,

i want to run a maven-script (openJPA), but maven can not access to internet 
through our internal proxy.

I have create the file build.properties under C:\document and settings\post 
with the following content:

# Maven ${user.home}/build.properties
# General local settings - overrides
maven.proxy.host=[IP-Adress]
maven.proxy.port=8081 


As [IP-Adress] is inserted the real adress.

I am very be pleased if you can help me.

Thanks

Michael

The settings for maven (2) is an xml file at this location:
C:\Documents and Settings\your login\.m2\settings.xml

- # settings

proxies
-   # proxy
 activetrue/active
 protocolhttp/protocol
 hostYOUR HOST NAME eg: 123.34.54.67/host
 portYOUR PORT eg 8081/port
 username /
 password /
/proxy
/proxies
[...]
/settings

Username and password can also be set depends on your config.

HTH,

Xavier.



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



Re: [m2] Running Emma: how to get HTML report?

2006-10-26 Thread Xavier Outhier

Hi,

1) I have a report in the site but unfortunately, the report is empty, I
got this page target/site/coverage/index.html:
No coverage information available

2) The trace when running test is:

[INFO]Scanning for projects...
[INFO]
[INFO]Building My project name
[INFO]   task-segment: [test]
[INFO]
project-execute
[resources:resources]
[INFO]Using default encoding to copy filtered resources.
[compiler:compile]
[INFO]Nothing to compile - all classes are up to date
[emma:instr {execution: default}]
[INFO][emma-plugin:instr]
[INFO]Emma instrument path: D:\tmp\sandbox\my-app\target\classes
[INFO]Emma output Directory: D:\tmp\sandbox\my-app\target\emma-classes
EMMA: processing instrumentation path ...
EMMA: instrumentation path processed in 30 ms
EMMA: [0 class(es) instrumented, 0 resource(s) copied]
EMMA: no output created: metadata is empty

3) Also a partial tree view of my target directory:
+---classes
|   |   checkstyle-jjguidelines.xml
|   |  
|   \---com

|   \---mycompany
|   \---app
|   App$FizzyDrink.class
|   App.class
|  
+---emma-classes

|   |   coverage.em
|   |   emma.properties
|   |  
|   \---com

|   \---mycompany
|   \---app
|   App$FizzyDrink.class
|   App.class

4) content of emma.properties:
coverage.out.file=D:\\tmp\\sandbox\\my-app\\target\\emma-classes\\coverage.ec
coverage.out.merge=false

5) What is wrong? Should I run a specific task in a certain order?

Greetings,

Xavier.
Chris Hilton wrote:

There's an emma-maven-plugin in the Codehaus sandbox and available at
the Codehaus snapshots repository you might want to use.

http://mojo.codehaus.org/using-sandbox-plugins.html

You'll need to specify something like this for the build configuration:

  build
plugins 
  plugin  
groupIdorg.codehaus.mojo/groupId

artifactIdemma-maven-plugin/artifactId
version1.0-SNAPSHOT/version
inheritedtrue/inherited  
executions
  execution
goals

  goalinstr/goal
/goals
  /execution
/executions
  /plugin
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
inheritedtrue/inherited
configuration
  forkModeonce/forkMode
  reportFormatxml/reportFormat
 
classesDirectory${project.build.directory}/emma-classes/classesDirect
ory
/configuration
  /plugin

/plugins
  /build

And then something like this in the reporting section:

  reporting
plugins  
  plugin  
groupIdorg.codehaus.mojo/groupId

artifactIdemma-maven-plugin/artifactId
version1.0-SNAPSHOT/version
  inheritedtrue/inherited  
  /plugin
  plugin 
groupIdorg.codehaus.mojo/groupId 
artifactIdsurefire-report-maven-plugin/artifactId 
inheritedtrue/inherited
  /plugin   
/plugins  
  /reporting  


Chris

  

-Original Message-
From: Xavier Outhier [mailto:[EMAIL PROTECTED] 
Sent: Monday, 23 October, 2006 06:56

To: Maven Users List
Subject: [m2] Running Emma: how to get HTML report?

Hi all,

I'm trying to use Emma. I've seen a relatively old post:
http://www.mail-archive.com/users@maven.apache.org/msg42682.html

I also have instrumented classes. Well at least, I see there 
is a file target\emma\metadata.emma.


How could I have an HTML report built in the site?

Greetings,

Xavier.





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



Re: [m2] SurefireExecutionException with Emma (pom.xml doesn't contain emma stuff)?

2006-10-26 Thread Xavier Outhier

Thanks for the answer but it's not that.
Anyway, now I'm using solution posted by Chris Hilton.
The current problem is that there is no coverage info!

Xavier.

Milos Kleint wrote:

maybe you have profiles.xml file along the side of pom.xml that
contains some reference to emma?

just a wild guess though..

milos

On 10/23/06, Xavier Outhier [EMAIL PROTECTED] wrote:

Hi all,

I have a SurefireExecutionException (see the trace below).
I don't understand because my pom.xml doesn't contain
anymore stuff from emma (see listing of pom.xml below)
but it had contained stuff of Emma.
I also removed manually emma directory from my local
maven repository.

What can be wrong?
Where is cached/stored information about emma?
How to fix this?

Greetings,

Xavier.

PS:
#File: pom.xml
?xml version=1.0 encoding=UTF-8?
project xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;
modelVersion4.0.0/modelVersion
groupIdcom.mycompany.app/groupId
artifactIdmy-app/artifactId
version1.0-SNAPSHOT/version
nameTest Maven 34/name
descriptionFirst Maven 2 project integrated in NetBeans but
created outsite NB. /description
urlhttp://maven.apache.org/url
dependencies
dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version3.8.1/version
scopetest/scope
/dependency

/dependencies

build
filters
filtersrc/main/filters/filter.properties/filter
/filters
plugins
plugin
artifactIdmaven-site-plugin/artifactId
configuration
localesen,fr/locales
/configuration
/plugin
/plugins
/build

reporting
plugins
plugin

artifactIdmaven-project-info-reports-plugin/artifactId

/plugin

/plugins
/reporting
/project

#Trace:
D:\tmp\sandbox\my-appmvn clean install -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
 


[INFO] Building Test Maven 34
[INFO]task-segment: [clean, install]
[INFO]
 


[INFO] [clean:clean]
[INFO] Deleting directory D:\tmp\sandbox\my-app\target
[INFO] Deleting directory D:\tmp\sandbox\my-app\target\classes
[INFO] Deleting directory D:\tmp\sandbox\my-app\target\test-classes
[INFO] Deleting directory D:\tmp\sandbox\my-app\target\site
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 1 source file to D:\tmp\sandbox\my-app\target\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
Compiling 1 source file to D:\tmp\sandbox\my-app\target\test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory:
D:\tmp\sandbox\my-app\target\surefire-reports
org.apache.maven.surefire.booter.SurefireExecutionException:
com/vladium/emma/rt/RT; nested exception is java.lang.NoCla
ssDefFoundError: com/vladium/emma/rt/RT
java.lang.NoClassDefFoundError: com/vladium/emma/rt/RT
at junit.framework.Assert.$VRi(Assert.java)
at junit.framework.Assert.clinit(Assert.java)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at
org.apache.maven.surefire.junit.JUnitDirectoryTestSuite.class$(JUnitDirectoryTestSuite.java:47) 


at
org.apache.maven.surefire.junit.JUnitDirectoryTestSuite.createTestSet(JUnitDirectoryTestSuite.java:47) 


at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:93) 



at
org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:147) 


at org.apache.maven.surefire.Surefire.run(Surefire.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 


at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 


at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225) 


at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747) 


[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] There are test failures.
[INFO]

[INFO] Trace
org.apache.maven.BuildFailureException: There are test failures

Re: [m2] How to put Surefire reports in project-reports.html?

2006-10-25 Thread Xavier Outhier

Thanx that's it. ;-)

Xavier.

Rémy Sanlaville wrote:

Hi Xavier,

Just try to add the surfire-report plugin in the reporting section:

   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-surefire-report-plugin/artifactId
   /plugin

HTH,

Rémy

2006/10/24, Xavier Outhier [EMAIL PROTECTED]:


Hi all,

I'm able to put Checkstyle, Xref and Cobertura reports in the
target\site\project-reports.html.
For this I have in my pom.xml
reporting
   plugins
   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-jxr-plugin/artifactId
   /plugin
   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-checkstyle-plugin/artifactId
   /plugin
   plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIdcobertura-maven-plugin/artifactId
   /plugin
   /plugins
/reporting

Is it possible to do the same for Surefire?

Greetings,

Xavier.





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



[m2] Unable to change Checkstyle configuration file: path problem

2006-10-25 Thread Xavier Outhier

Hi all,

I'm using the Checkstyle plug-in and it works perfect with default
or predefined.

1) But I would like to try another config file from JJGuidelines.
I try to change to checkstyle-jjguidelines.xml by modifying the pom like 
this:


 reporting
   plugins
[...]
   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-checkstyle-plugin/artifactId
   configuration
   configLocationcheckstyle-jjguidelines.xml/configLocation
   /configuration
   /plugin
[...]
   /plugins
 /reporting've added the checkstyle-jjguidelines.xml in

I put the checkstyle-jjguidelines.xml and checkstyle-jjguidelines.jar
in my project directory and it found it but I got the error:

[INFO] Generate Checkstyle report.
[INFO] 


[ERROR] BUILD ERROR
[INFO] 


[INFO] Error during page generation
Embedded error: Error rendering Maven report: Failed during checkstyle 
configuration

Unable to instantiate usage.UnusedLocalVariableCheck
[INFO] 



I suppose it comes from that:
within the compile scope of the dependencies or build extensions 
classpath.

There is a class with name UnusedLocalVariableCheck in the jar.

Where should I put the checkstyle-jjguidelines.jar?
What should I add in my pom.xml or settings.xml?

2) I would like also to know where are located the 4 predefined config 
file listed

on the Customization page:
http://maven.apache.org/plugins/maven-checkstyle-plugin/customize.html


Thank you,

Xavier.


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



[m2] How to put Surefire reports in project-reports.html?

2006-10-24 Thread Xavier Outhier

Hi all,

I'm able to put Checkstyle, Xref and Cobertura reports in the 
target\site\project-reports.html.

For this I have in my pom.xml
reporting
  plugins
  plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-jxr-plugin/artifactId
  /plugin
  plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-checkstyle-plugin/artifactId
  /plugin
  plugin
  groupIdorg.codehaus.mojo/groupId
  artifactIdcobertura-maven-plugin/artifactId
  /plugin
  /plugins
/reporting

Is it possible to do the same for Surefire?

Greetings,

Xavier.


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



[m2] SurefireExecutionException with Emma (pom.xml doesn't contain emma stuff)?

2006-10-23 Thread Xavier Outhier

Hi all,

I have a SurefireExecutionException (see the trace below).
I don't understand because my pom.xml doesn't contain
anymore stuff from emma (see listing of pom.xml below)
but it had contained stuff of Emma.
I also removed manually emma directory from my local
maven repository.

What can be wrong?
Where is cached/stored information about emma?
How to fix this?

Greetings,

Xavier.

PS:
#File: pom.xml
?xml version=1.0 encoding=UTF-8?
project xmlns=http://maven.apache.org/POM/4.0.0; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;

   modelVersion4.0.0/modelVersion
   groupIdcom.mycompany.app/groupId
   artifactIdmy-app/artifactId
   version1.0-SNAPSHOT/version
   nameTest Maven 34/name
   descriptionFirst Maven 2 project integrated in NetBeans but 
created outsite NB. /description

   urlhttp://maven.apache.org/url
   dependencies
   dependency
   groupIdjunit/groupId
   artifactIdjunit/artifactId
   version3.8.1/version
   scopetest/scope
   /dependency
  
   /dependencies
  
   build

   filters
   filtersrc/main/filters/filter.properties/filter
   /filters
   plugins
   plugin
   artifactIdmaven-site-plugin/artifactId
   configuration
   localesen,fr/locales
   /configuration
   /plugin
   /plugins
   /build
  
   reporting

   plugins
   plugin
   artifactIdmaven-project-info-reports-plugin/artifactId
   /plugin
  
   /plugins

   /reporting
/project

#Trace:
D:\tmp\sandbox\my-appmvn clean install -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] 


[INFO] Building Test Maven 34
[INFO]task-segment: [clean, install]
[INFO] 


[INFO] [clean:clean]
[INFO] Deleting directory D:\tmp\sandbox\my-app\target
[INFO] Deleting directory D:\tmp\sandbox\my-app\target\classes
[INFO] Deleting directory D:\tmp\sandbox\my-app\target\test-classes
[INFO] Deleting directory D:\tmp\sandbox\my-app\target\site
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 1 source file to D:\tmp\sandbox\my-app\target\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
Compiling 1 source file to D:\tmp\sandbox\my-app\target\test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory: 
D:\tmp\sandbox\my-app\target\surefire-reports
org.apache.maven.surefire.booter.SurefireExecutionException: 
com/vladium/emma/rt/RT; nested exception is java.lang.NoCla

ssDefFoundError: com/vladium/emma/rt/RT
java.lang.NoClassDefFoundError: com/vladium/emma/rt/RT
   at junit.framework.Assert.$VRi(Assert.java)
   at junit.framework.Assert.clinit(Assert.java)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:164)
   at 
org.apache.maven.surefire.junit.JUnitDirectoryTestSuite.class$(JUnitDirectoryTestSuite.java:47)
   at 
org.apache.maven.surefire.junit.JUnitDirectoryTestSuite.createTestSet(JUnitDirectoryTestSuite.java:47)
   at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:93)


   at 
org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:147)

   at org.apache.maven.surefire.Surefire.run(Surefire.java:108)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

   at java.lang.reflect.Method.invoke(Method.java:585)
   at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
   at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
[INFO] 


[ERROR] BUILD FAILURE
[INFO] 


[INFO] There are test failures.
[INFO] 


[INFO] Trace
org.apache.maven.BuildFailureException: There are test failures.
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:47

5)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
   at 

[m2] Running Emma: how to get HTML report?

2006-10-23 Thread Xavier Outhier

Hi all,

I'm trying to use Emma. I've seen a relatively old post:
http://www.mail-archive.com/users@maven.apache.org/msg42682.html

I also have instrumented classes. Well at least, I see there is
a file target\emma\metadata.emma.

How could I have an HTML report built in the site?

Greetings,

Xavier.


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



Problem running checkstyle?

2006-10-20 Thread Xavier Outhier

Hi,

I have a problem running checkstyle.
It should not be not a problem of repository because I download
it successfully.

I got this error (complete trace at the end of the e-mail):
The plugin 'org.apache.maven.plugins:maven-checkstyle-plugin' does not 
exist or no valid version could be found


What do I miss?

Xavier.

PS
My pom is:
project
[...]
   dependencies
[...]
   dependency
   groupIdcheckstyle/groupId
   artifactIdcheckstyle/artifactId
   version4.1/version
   scopetest/scope
   /dependency
   /dependencies
  
   build

[...]
   plugins
[...]
   plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIdcobertura-maven-plugin/artifactId
   executions
   execution
   goals
   goalclean/goal
   /goals
   /execution
   /executions
   /plugin
   /plugins
   /build
  
   reporting

[...]
   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-checkstyle-plugin/artifactId
   /plugin
  
   /plugins

   /reporting
/project

Trace including successful download:
D:\tmp\sandbox\my-appmvn test
[INFO] Scanning for projects...
[INFO] 


[INFO] Building Test Maven
[INFO]task-segment: [test]
[INFO] 


[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading: 
http://repo1.maven.org/maven2/checkstyle/checkstyle/4.1/checkstyle-4.1.pom

799b downloaded
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
Downloading: 
http://repo1.maven.org/maven2/checkstyle/checkstyle/4.1/checkstyle-4.1.jar

523K downloaded
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory: 
D:\tmp\sandbox\my-app\target\surefire-reports


---
T E S T S
---
Running com.mycompany.app.AppTest
main
Hello World!
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.08 sec 
 FAILURE!


Results :
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0

[INFO] 


[ERROR] BUILD FAILURE
[INFO] 


[INFO] There are test failures.
[INFO] 


[INFO] For more information, run Maven with the -e switch
[INFO] 


[INFO] Total time: 6 seconds
[INFO] Finished at: Fri Oct 20 14:09:09 CEST 2006
[INFO] Final Memory: 4M/7M
[INFO] 



D:\tmp\sandbox\my-appmvn checkstyle:checkstyle
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'checkstyle'.
[INFO] 


[ERROR] BUILD ERROR
[INFO] 

[INFO] The plugin 'org.apache.maven.plugins:maven-checkstyle-plugin' 
does not exist or no
[INFO] 


[INFO] For more information, run Maven with the -e switch
[INFO] 


[INFO] Total time:  1 second
[INFO] Finished at: Fri Oct 20 14:09:31 CEST 2006
[INFO] Final Memory: 1M/2M
[INFO] 





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



Dummy question my first Maven project: The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist ...

2006-10-19 Thread Xavier Outhier

Hi all,

I'm sure this is not a cutting edge question.
I've just downloaded and installed Maven.

1)
Well, I simply followed the Installation instructions from page
http://maven.apache.org/download.html#installation


   Windows 2000/XP

  1. Unzip maven-2.0.3-bin.zip to the directory you wish to install
 Maven 2.0.3. These instructions assume you chose C:\Program
 Files\Apache Software Foundation\maven-2.0.3
  2. Add the bin directory to your path, by opening up the system
 properties (WinKey + Pause), selecting the Advanced tab, and the
 Environment Variables button, then editing the PATH variable in
 the user variables. eg. C:\Program Files\Apache Software
 Foundation\maven-2.0.3\bin;%PATH%
  3. In the same dialog, make sure that JAVA_HOME is set to the
 location of your JDK, eg. C:\Program Files\Java\jdk1.5.0_02
  4. Run mvn --version to verify that it is correctly installed.


And then I try the first command of the Maven Getting Started Guide
(http://maven.apache.org/guides/getting-started/index.html):

2) But here is what I get:
D:\tmp\sandboxmvn --version
Maven version: 2.0.4

D:\tmp\sandbox*mvn archetype:create -DgroupId=com.mycompany.app 
-DartifactId=myApp*

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] 


[ERROR] BUILD ERROR
[INFO] 

[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does 
not exist or no valid version could be found
[INFO] 


[INFO] For more information, run Maven with the -e switch
[INFO] 


[INFO] Total time:  1 second
[INFO] Finished at: Thu Oct 19 14:37:03 CEST 2006
[INFO] Final Memory: 1M/2M
[INFO] 



D:\tmp\sandboxmvn -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] 


[ERROR] BUILD FAILURE
[INFO] 


[INFO] You must specify at least one goal. Try 'install'
[INFO] 


[INFO] Trace
org.apache.maven.BuildFailureException: You must specify at least one 
goal. Try 'install'
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:132)

   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

   at java.lang.reflect.Method.invoke(Method.java:585)
   at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] 


[INFO] Total time:  1 second
[INFO] Finished at: Thu Oct 19 14:37:24 CEST 2006
[INFO] Final Memory: 1M/2M
[INFO] 



3) What should I do? Is it a configuration problem? How to install 
locally the plug-in?


Thanks for any help,

Xavier.


Complete offline? was: (Re: Dummy question my first Maven project[...])

2006-10-19 Thread Xavier Outhier

Wendy Smoak wrote:

On 10/19/06, Xavier Outhier [EMAIL PROTECTED] wrote:

2) But here is what I get:
D:\tmp\sandboxmvn --version
Maven version: 2.0.4


(Strange, since above you say you installed 2.0.3.)

It was just a copy/paste from the page mentionned above. So no magic here.



D:\tmp\sandbox*mvn archetype:create -DgroupId=com.mycompany.app
-DartifactId=myApp*
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does
not exist or no valid version could be found


It should look like this:
http://wiki.wsmoak.net/cgi-bin/wiki.pl?ArchetypeCreate

(Without the checksum errors, and with a lot more things downloaded,
since you're starting from an empty local repository.)

In your case, it doesn't look like it even *tries* to download
anything.  Is there a firewall or a proxy involved?


Yes. I fixed it by creating a settings.xml in the .m2 directory.
Now even without this file, I'm able to run the simple command.
Does it mean that Maven need always to access internet to work?
For me it seems like it's not a complete installation. I suppose it's
a JIT philosophy. Where can I find more information about this topic?

Maven seems a quite interesting tool. I'll continue to dig. :)
[...]

Thanks for the very fast answers. :)

Xavier.


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



Re: Complete offline? was: (Re: Dummy question my first Maven project[...])

2006-10-19 Thread Xavier Outhier

Nicolas DE LOOF wrote:


Maven is only a container for plugins. The installation includes the 
required base to run maven, but all plugin and the libs they required 
are downloaded.

This make the first maven runs long as lot's of jars are downloaded.
After a first run worked, no more internet connexion is required to 
run maven.


Nico.

OK. Thanx.

X.


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



Re: Complete offline? was: (Re: Dummy question my first Maven project[...])

2006-10-19 Thread Xavier Outhier

Nicolas DE LOOF wrote:


Maven is only a container for plugins. The installation includes the 
required base to run maven, but all plugin and the libs they required 
are downloaded.

This make the first maven runs long as lot's of jars are downloaded.
After a first run worked, no more internet connexion is required to 
run maven.


Nico.

[...]
Is there a way to download all at once?

X.


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