Getting Error in Maven

2012-03-30 Thread debashish mukherjee
Hi,

I am using maven 3.0.4 on my windows 7 machine, while running mvn
jetty:run, I am facing these errors, please provide with some solution.

Apache Maven 3.0.4 (r1232337; 2012-01-17 14:14:56+0530)
Maven home: D:\softwares\apache-maven-3.0.4
Java version: 1.7.0, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0\jre
Default locale: en_US, platform encoding: Cp1252
OS name: windows 7, version: 6.1, arch: x86, family: windows
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from
D:\softwares\apache-maven-3.0.4\conf\settings.xml
[DEBUG] Reading user settings from C:\Users\deb\.m2\settings.xml
[DEBUG] Using local repository at C:\Users\deb\.m2\repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for
C:\Users\deb\.m2\repository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project
com.mycompany:myproject:war:1.0-SNAPSHOT: (none)
[DEBUG] Looking up lifecyle mappings for packaging war from
ClassRealm[plexus.core, parent: null]
[DEBUG] Resolving plugin prefix jetty from [org.apache.maven.plugins,
org.codehaus.mojo]
[DEBUG] Resolved plugin prefix jetty to
org.mortbay.jetty:maven-jetty-plugin from POM
com.mycompany:myproject:war:1.0-SNAPSHOT
[DEBUG] === REACTOR BUILD PLAN

[DEBUG] Project: com.mycompany:myproject:war:1.0-SNAPSHOT
[DEBUG] Tasks:   [jetty:run]
[DEBUG] Style:   Regular
[DEBUG]
===
[INFO]

[INFO]

[INFO] Building AppFuse Struts 2 Application 1.0-SNAPSHOT
[INFO]

[DEBUG] Resolving plugin prefix jetty from [org.apache.maven.plugins,
org.codehaus.mojo]
[DEBUG] Resolved plugin prefix jetty to
org.mortbay.jetty:maven-jetty-plugin from POM
com.mycompany:myproject:war:1.0-SNAPSHOT
[DEBUG] Lifecycle default - [validate, initialize, generate-sources,
process-sources, generate-resources, process-resources, compile,
process-classes, generate-test-sources, process-test-sources,
generate-test-resources, process-test-resources, test-compile,
process-test-classes, test, prepare-package, package, pre-integration-test,
integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean - [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site - [pre-site, site, post-site, site-deploy]
[DEBUG] Lifecycle default - [validate, initialize, generate-sources,
process-sources, generate-resources, process-resources, compile,
process-classes, generate-test-sources, process-test-sources,
generate-test-resources, process-test-resources, test-compile,
process-test-classes, test, prepare-package, package, pre-integration-test,
integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean - [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site - [pre-site, site, post-site, site-deploy]
[DEBUG] Lifecycle default - [validate, initialize, generate-sources,
process-sources, generate-resources, process-resources, compile,
process-classes, generate-test-sources, process-test-sources,
generate-test-resources, process-test-resources, test-compile,
process-test-classes, test, prepare-package, package, pre-integration-test,
integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean - [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site - [pre-site, site, post-site, site-deploy]
[DEBUG] === PROJECT BUILD PLAN

[DEBUG] Project:   com.mycompany:myproject:1.0-SNAPSHOT
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): [runtime]
[DEBUG] Repositories (dependencies): [appfuse-snapshots (
http://oss.sonatype.org/content/repositories/appfuse-snapshots, snapshots),
central (http://repo.maven.apache.org/maven2, releases)]
[DEBUG] Repositories (plugins) : [appfuse-snapshots (
http://oss.sonatype.org/content/repositories/appfuse-snapshots, snapshots),
central (http://repo.maven.apache.org/maven2, releases)]
[DEBUG] --- init fork of com.mycompany:myproject:1.0-SNAPSHOT for
org.mortbay.jetty:maven-jetty-plugin:6.1.26:run (default-cli) ---
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): [compile, test]
[DEBUG]
---
[DEBUG] Goal:
 org.codehaus.mojo:native2ascii-maven-plugin:1.0-alpha-1:native2ascii
(native2ascii-utf8)
[DEBUG] Style: Regular
[DEBUG] Configuration: ?xml version=1.0 encoding=UTF-8?
configuration
  dest
default-value=${project.build.directory}/native2asciitarget/resources/dest
  encodingUTF8/encoding
  excludesApplicationResources.properties,
ApplicationResources_de*.properties,
ApplicationResources_fr*.properties,
ApplicationResources_nl*.properties,
  

Re: Getting Error in Maven

2012-03-30 Thread Wayne Fay
 I am using maven 3.0.4 on my windows 7 machine, while running mvn
 jetty:run, I am facing these errors, please provide with some solution.

In the future, DO NOT post your entire build debug log to this mailing
list. Instead, pull out the handful of lines that say ERROR and only
send them. Alternatively, you can post the whole debug to Gist or
Pastebin and send a link here.

 [ERROR] Failed to execute goal
 org.codehaus.mojo:native2ascii-maven-plugin:1.0-alpha-1:native2ascii
 (native2ascii-utf8) on project myproject: Execution native2ascii-utf8 of
 goal org.codehaus.mojo:native2ascii-maven-plugin:1.0-alpha-1:native2ascii
 failed: Error starting Sun's native2ascii: sun.tools.native2ascii.Main -

I have no idea why native2ascii is not working, but this is your problem.

Wayne

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



RE: Getting Error in Maven

2012-03-30 Thread Amir Gheibi
From the output it can be seen

Apache Maven 3.0.4 (r1232337; 2012-01-17 14:14:56+0530) .  vendor: Oracle 
Corporation Java home: C:\Program Files\Java\jdk1.7.0\jre ...

That is, Maven's using C:\Program Files\Java\jdk1.7.0\jre as your JAVA_HOME 
which instead should be your JDK folder


-Original Message-
From: debashish mukherjee [mailto:deba...@gmail.com]
Sent: March-30-12 6:39 AM
To: users@maven.apache.org
Subject: Getting Error in Maven

Hi,

I am using maven 3.0.4 on my windows 7 machine, while running mvn jetty:run, I 
am facing these errors, please provide with some solution.

Apache Maven 3.0.4 (r1232337; 2012-01-17 14:14:56+0530) Maven home: 
D:\softwares\apache-maven-3.0.4 Java version: 1.7.0, vendor: Oracle Corporation 
Java home: C:\Program Files\Java\jdk1.7.0\jre Default locale: en_US, platform 
encoding: Cp1252 OS name: windows 7, version: 6.1, arch: x86, family: 
windows
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from
D:\softwares\apache-maven-3.0.4\conf\settings.xml
[DEBUG] Reading user settings from C:\Users\deb\.m2\settings.xml [DEBUG] Using 
local repository at C:\Users\deb\.m2\repository [DEBUG] Using manager 
EnhancedLocalRepositoryManager with priority 10 for C:\Users\deb\.m2\repository 
[INFO] Scanning for projects...
[DEBUG] Extension realms for project
com.mycompany:myproject:war:1.0-SNAPSHOT: (none) [DEBUG] Looking up lifecyle 
mappings for packaging war from ClassRealm[plexus.core, parent: null] [DEBUG] 
Resolving plugin prefix jetty from [org.apache.maven.plugins, 
org.codehaus.mojo] [DEBUG] Resolved plugin prefix jetty to 
org.mortbay.jetty:maven-jetty-plugin from POM 
com.mycompany:myproject:war:1.0-SNAPSHOT
[DEBUG] === REACTOR BUILD PLAN

[DEBUG] Project: com.mycompany:myproject:war:1.0-SNAPSHOT
[DEBUG] Tasks:   [jetty:run]
[DEBUG] Style:   Regular
[DEBUG]
===
[INFO]

[INFO]

[INFO] Building AppFuse Struts 2 Application 1.0-SNAPSHOT [INFO]

[DEBUG] Resolving plugin prefix jetty from [org.apache.maven.plugins, 
org.codehaus.mojo] [DEBUG] Resolved plugin prefix jetty to 
org.mortbay.jetty:maven-jetty-plugin from POM 
com.mycompany:myproject:war:1.0-SNAPSHOT
[DEBUG] Lifecycle default - [validate, initialize, generate-sources, 
process-sources, generate-resources, process-resources, compile, 
process-classes, generate-test-sources, process-test-sources, 
generate-test-resources, process-test-resources, test-compile, 
process-test-classes, test, prepare-package, package, pre-integration-test, 
integration-test, post-integration-test, verify, install, deploy] [DEBUG] 
Lifecycle clean - [pre-clean, clean, post-clean] [DEBUG] Lifecycle site - 
[pre-site, site, post-site, site-deploy] [DEBUG] Lifecycle default - 
[validate, initialize, generate-sources, process-sources, generate-resources, 
process-resources, compile, process-classes, generate-test-sources, 
process-test-sources, generate-test-resources, process-test-resources, 
test-compile, process-test-classes, test, prepare-package, package, 
pre-integration-test, integration-test, post-integration-test, verify, install, 
deploy] [DEBUG] Lifecycle clean - [pre-clean, clean, post-clean] [DEBUG] 
Lifecycle site - [pre-site, site, post-site, site-deploy] [DEBUG] Lifecycle 
default - [validate, initialize, generate-sources, process-sources, 
generate-resources, process-resources, compile, process-classes, 
generate-test-sources, process-test-sources, generate-test-resources, 
process-test-resources, test-compile, process-test-classes, test, 
prepare-package, package, pre-integration-test, integration-test, 
post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean - 
[pre-clean, clean, post-clean] [DEBUG] Lifecycle site - [pre-site, site, 
post-site, site-deploy] [DEBUG] === PROJECT BUILD PLAN 

[DEBUG] Project:   com.mycompany:myproject:1.0-SNAPSHOT
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): [runtime] [DEBUG] Repositories (dependencies): 
[appfuse-snapshots ( 
http://oss.sonatype.org/content/repositories/appfuse-snapshots, snapshots), 
central (http://repo.maven.apache.org/maven2, releases)]
[DEBUG] Repositories (plugins) : [appfuse-snapshots (
http://oss.sonatype.org/content/repositories/appfuse-snapshots, snapshots), 
central (http://repo.maven.apache.org/maven2, releases)] [DEBUG] --- init fork 
of com.mycompany:myproject:1.0-SNAPSHOT for 
org.mortbay.jetty:maven-jetty-plugin:6.1.26:run (default-cli) --- [DEBUG] 
Dependencies (collect): [] [DEBUG] Dependencies (resolve): [compile, test] 
[DEBUG]
---
[DEBUG] Goal:
 org.codehaus.mojo:native2ascii-maven-plugin:1.0-alpha-1

Re: Getting Error in Maven

2012-03-30 Thread Markku Saarela
You are using  native2ascii-maven-plugin:1.0-alpha-1 with Java version: 
1.7.0 and 1.0-alpha-1 version of plugin is not compatible with JDK 7.


So you either upgrade plugin to version 1.0-beta-1 or run Maven with JDK 6

Markku

On 30.3.2012 16:39, debashish mukherjee wrote:

Hi,

I am using maven 3.0.4 on my windows 7 machine, while running mvn
jetty:run, I am facing these errors, please provide with some solution.

Apache Maven 3.0.4 (r1232337; 2012-01-17 14:14:56+0530)
Maven home: D:\softwares\apache-maven-3.0.4
Java version: 1.7.0, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0\jre
Default locale: en_US, platform encoding: Cp1252
OS name: windows 7, version: 6.1, arch: x86, family: windows
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from
D:\softwares\apache-maven-3.0.4\conf\settings.xml
[DEBUG] Reading user settings from C:\Users\deb\.m2\settings.xml
[DEBUG] Using local repository at C:\Users\deb\.m2\repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for
C:\Users\deb\.m2\repository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project
com.mycompany:myproject:war:1.0-SNAPSHOT: (none)
[DEBUG] Looking up lifecyle mappings for packaging war from
ClassRealm[plexus.core, parent: null]
[DEBUG] Resolving plugin prefix jetty from [org.apache.maven.plugins,
org.codehaus.mojo]
[DEBUG] Resolved plugin prefix jetty to
org.mortbay.jetty:maven-jetty-plugin from POM
com.mycompany:myproject:war:1.0-SNAPSHOT
[DEBUG] === REACTOR BUILD PLAN

[DEBUG] Project: com.mycompany:myproject:war:1.0-SNAPSHOT
[DEBUG] Tasks:   [jetty:run]
[DEBUG] Style:   Regular
[DEBUG]
===
[INFO]

[INFO]

[INFO] Building AppFuse Struts 2 Application 1.0-SNAPSHOT
[INFO]

[DEBUG] Resolving plugin prefix jetty from [org.apache.maven.plugins,
org.codehaus.mojo]
[DEBUG] Resolved plugin prefix jetty to
org.mortbay.jetty:maven-jetty-plugin from POM
com.mycompany:myproject:war:1.0-SNAPSHOT
[DEBUG] Lifecycle default -  [validate, initialize, generate-sources,
process-sources, generate-resources, process-resources, compile,
process-classes, generate-test-sources, process-test-sources,
generate-test-resources, process-test-resources, test-compile,
process-test-classes, test, prepare-package, package, pre-integration-test,
integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -  [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -  [pre-site, site, post-site, site-deploy]
[DEBUG] Lifecycle default -  [validate, initialize, generate-sources,
process-sources, generate-resources, process-resources, compile,
process-classes, generate-test-sources, process-test-sources,
generate-test-resources, process-test-resources, test-compile,
process-test-classes, test, prepare-package, package, pre-integration-test,
integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -  [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -  [pre-site, site, post-site, site-deploy]
[DEBUG] Lifecycle default -  [validate, initialize, generate-sources,
process-sources, generate-resources, process-resources, compile,
process-classes, generate-test-sources, process-test-sources,
generate-test-resources, process-test-resources, test-compile,
process-test-classes, test, prepare-package, package, pre-integration-test,
integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -  [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -  [pre-site, site, post-site, site-deploy]
[DEBUG] === PROJECT BUILD PLAN

[DEBUG] Project:   com.mycompany:myproject:1.0-SNAPSHOT
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): [runtime]
[DEBUG] Repositories (dependencies): [appfuse-snapshots (
http://oss.sonatype.org/content/repositories/appfuse-snapshots, snapshots),
central (http://repo.maven.apache.org/maven2, releases)]
[DEBUG] Repositories (plugins) : [appfuse-snapshots (
http://oss.sonatype.org/content/repositories/appfuse-snapshots, snapshots),
central (http://repo.maven.apache.org/maven2, releases)]
[DEBUG] --- init fork of com.mycompany:myproject:1.0-SNAPSHOT for
org.mortbay.jetty:maven-jetty-plugin:6.1.26:run (default-cli) ---
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): [compile, test]
[DEBUG]
---
[DEBUG] Goal:
  org.codehaus.mojo:native2ascii-maven-plugin:1.0-alpha-1:native2ascii
(native2ascii-utf8)
[DEBUG] Style: Regular
[DEBUG] Configuration:?xml version=1.0 encoding=UTF-8?
configuration
   dest
default-value=${project.build.directory}/native2asciitarget/resources/dest