Maven compilation error is not within its bound

2013-12-02 Thread Adrien Ruffié
Hello all, 

I have my webapp projet in Eclipse which compile correctly but when I try to
perform mvn clean compile, several following logs appears: 

[ERROR]
\Java\Workspaces\Indigo\mycompanycrm4\mycompany-webapp\src\main\java\com\myc
ompany\frontline\display\render\custom\ImageHandleBarRenderBoolCustom.java:[
16,95] type parameter
com.mycompany.frontline.property.display.valuable.bean.BooleanMonoValueBean
is not within its bound 

My class implements correctly generic, inteface, inheritance tree ... the
application work correctly in my tomcat launched by Eclipse, but when I try
to package it the compiler block ... 
I'm not able to change the code, do you know a solution to force Maven to
compile correctly ? Have you ever faced the problem ?

I attach the log file, if it can be help

Thank you very much 

Best regards, 

Adrien


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

Re: Maven compilation error is not within its bound

2013-12-02 Thread Alexander Kriegisch
Do Eclipse and Maven use the same compiler source/target versions? Which is you 
Maven version?

To me it looks like you do have a problem with generics there. Maybe you use a 
new feature from a Java version greater than the one used by Maven. Hard to 
speculate without source code and pom.xml though.

-- 
Alexander Kriegisch


 Am 02.12.2013 um 10:13 schrieb Adrien Ruffié adriennolar...@hotmail.fr:
 
 Hello all, 
 
 I have my webapp projet in Eclipse which compile correctly but when I try to
 perform mvn clean compile, several following logs appears: 
 
 [ERROR]
 \Java\Workspaces\Indigo\mycompanycrm4\mycompany-webapp\src\main\java\com\myc
 ompany\frontline\display\render\custom\ImageHandleBarRenderBoolCustom.java:[
 16,95] type parameter
 com.mycompany.frontline.property.display.valuable.bean.BooleanMonoValueBean
 is not within its bound 
 
 My class implements correctly generic, inteface, inheritance tree ... the
 application work correctly in my tomcat launched by Eclipse, but when I try
 to package it the compiler block ... 
 I'm not able to change the code, do you know a solution to force Maven to
 compile correctly ? Have you ever faced the problem ?
 
 I attach the log file, if it can be help
 
 Thank you very much 
 
 Best regards, 
 
 Adrien
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org

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



RE: Maven compilation error is not within its bound

2013-12-02 Thread Adrien Ruffié
Hello Alexander,

Thank you very much for your response,

For maven version is 3.0.4, the property java.version is set to 1.6 and my 
Eclipse project is 1.6 in compiler properties tab.
I cannot use Maven+Eclipse to package my webapp because, it is Jenkins with 
maven which package, but maven doesn't compile correctly ...
The generics doesn't cause problem in the webapp (we have make several 
testcases), but were I can see which compiler source/target is used by 
Eclipse/Maven ?

Great thank again

Adrien

-Message d'origine-
De : Alexander Kriegisch [mailto:alexan...@kriegisch.name] 
Envoyé : lundi 2 décembre 2013 10:24
À : Maven Users List
Objet : Re: Maven compilation error is not within its bound

Do Eclipse and Maven use the same compiler source/target versions? Which is you 
Maven version?

To me it looks like you do have a problem with generics there. Maybe you use a 
new feature from a Java version greater than the one used by Maven. Hard to 
speculate without source code and pom.xml though.

-- 
Alexander Kriegisch


 Am 02.12.2013 um 10:13 schrieb Adrien Ruffié adriennolar...@hotmail.fr:
 
 Hello all, 
 
 I have my webapp projet in Eclipse which compile correctly but when I try to
 perform mvn clean compile, several following logs appears: 
 
 [ERROR]
 \Java\Workspaces\Indigo\mycompanycrm4\mycompany-webapp\src\main\java\com\myc
 ompany\frontline\display\render\custom\ImageHandleBarRenderBoolCustom.java:[
 16,95] type parameter
 com.mycompany.frontline.property.display.valuable.bean.BooleanMonoValueBean
 is not within its bound 
 
 My class implements correctly generic, inteface, inheritance tree ... the
 application work correctly in my tomcat launched by Eclipse, but when I try
 to package it the compiler block ... 
 I'm not able to change the code, do you know a solution to force Maven to
 compile correctly ? Have you ever faced the problem ?
 
 I attach the log file, if it can be help
 
 Thank you very much 
 
 Best regards, 
 
 Adrien
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org

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



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



Re: Maven compilation error is not within its bound

2013-12-02 Thread Alexander Kriegisch
Maven does not compile anything, the Java compiler does. The Maven Compiler 
Plugin is used to configure compilation according to your needs:
http://maven.apache.org/plugins/maven-compiler-plugin/

Maven default source/target version is 1.5, as you can see in the parent POM:
http://svn.apache.org/viewvc/maven/pom/tags/maven-parent-23/pom.xml?view=corevision=1434744content-type=text%2Fplain

If you want 1.6, please override like this:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
version3.0/version
configuration
source1.6/source
target1.6/target
/configuration
/plugin

-- 
Alexander Kriegisch


Adrien Ruffié schrieb am 02.12.2013 10:36:

 Hello Alexander,
 
 Thank you very much for your response,
 
 For maven version is 3.0.4, the property java.version is set to 1.6 and my
 Eclipse project is 1.6 in compiler properties tab.
 I cannot use Maven+Eclipse to package my webapp because, it is Jenkins
 with maven which package, but maven doesn#039;t compile correctly ...
 The generics doesn#039;t cause problem in the webapp (we have make
 several testcases), but were I can see which compiler source/target is
 used by Eclipse/Maven ?
 
 Great thank again
 
 Adrien
 
 -Message d#039;origine-
 De : Alexander Kriegisch [mailto:alexan...@kriegisch.name] 
 Envoyé : lundi 2 décembre 2013 10:24
 À : Maven Users List
 Objet : Re: Maven compilation error quot;is not within its boundquot;
 
 Do Eclipse and Maven use the same compiler source/target versions? Which
 is you Maven version?
 
 To me it looks like you do have a problem with generics there. Maybe you
 use a new feature from a Java version greater than the one used by Maven.
 Hard to speculate without source code and pom.xml though.
 
 -- 
 Alexander Kriegisch
 
 
 gt; Am 02.12.2013 um 10:13 schrieb Adrien Ruffié
 lt;adriennolar...@hotmail.frgt;:
 gt; 
 gt; Hello all, 
 gt; 
 gt; I have my webapp projet in Eclipse which compile correctly but when I
 try to
 gt; perform quot;mvn clean compilequot;, several following logs
 appears: 
 gt; 
 gt; [ERROR]
 gt;
 \Java\Workspaces\Indigo\mycompanycrm4\mycompany-webapp\src\main\java\com\myc
 gt;
 ompany\frontline\display\render\custom\ImageHandleBarRenderBoolCustom.java:[
 gt; 16,95] type parameter
 gt;
 com.mycompany.frontline.property.display.valuable.bean.BooleanMonoValueBean
 gt; is not within its bound 
 gt; 
 gt; My class implements correctly generic, inteface, inheritance tree ...
 the
 gt; application work correctly in my tomcat launched by Eclipse, but when
 I try
 gt; to package it the compiler block ... 
 gt; I#039;m not able to change the code, do you know a solution to force
 Maven to
 gt; compile correctly ? Have you ever faced the problem ?
 gt; 
 gt; I attach the log file, if it can be help
 gt; 
 gt; Thank you very much 
 gt; 
 gt; Best regards, 
 gt; 
 gt; Adrien
 gt; 
 gt; 
 gt; -
 gt; To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 gt; For additional commands, e-mail: users-h...@maven.apache.org
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 

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



RE: Maven compilation error is not within its bound

2013-12-02 Thread Adrien Ruffié
Well,

Sorry I have try with 2 following plugin setting but nothing work correctly:

Java.version property = 1.6

!--plugin --
!--groupIdorg.apache.maven.plugins/groupId
--
!--
artifactIdmaven-compiler-plugin/artifactId --
!--version3.1/version --
!--configuration --
!--source${java.version}/source --
!--target${java.version}/target --
!--
encoding${encoding.format}/encoding --
!--/configuration --
!--/plugin --
plugin
groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-compiler-plugin/artifactId
version3.1/version
configuration
  verbosetrue/verbose
  forktrue/fork

executable${JAVA_HOME}/bin/javac/executable

compilerVersion${java.version}/compilerVersion

source${java.version}/source
target${java.version}/target

encoding${encoding.format}/encoding
/configuration
  /plugin

-Message d'origine-
De : Alexander Kriegisch [mailto:alexan...@kriegisch.name] 
Envoyé : lundi 2 décembre 2013 10:55
À : users@maven.apache.org
Objet : Re: Maven compilation error is not within its bound

Maven does not compile anything, the Java compiler does. The Maven Compiler
Plugin is used to configure compilation according to your needs:
http://maven.apache.org/plugins/maven-compiler-plugin/

Maven default source/target version is 1.5, as you can see in the parent
POM:
http://svn.apache.org/viewvc/maven/pom/tags/maven-parent-23/pom.xml?view=co;
revision=1434744content-type=text%2Fplain

If you want 1.6, please override like this:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
version3.0/version
configuration
source1.6/source
target1.6/target
/configuration
/plugin

-- 
Alexander Kriegisch


Adrien Ruffié schrieb am 02.12.2013 10:36:

 Hello Alexander,
 
 Thank you very much for your response,
 
 For maven version is 3.0.4, the property java.version is set to 1.6 and my
 Eclipse project is 1.6 in compiler properties tab.
 I cannot use Maven+Eclipse to package my webapp because, it is Jenkins
 with maven which package, but maven doesn#039;t compile correctly ...
 The generics doesn#039;t cause problem in the webapp (we have make
 several testcases), but were I can see which compiler source/target is
 used by Eclipse/Maven ?
 
 Great thank again
 
 Adrien
 
 -Message d#039;origine-
 De : Alexander Kriegisch [mailto:alexan...@kriegisch.name] 
 Envoyé : lundi 2 décembre 2013 10:24
 À : Maven Users List
 Objet : Re: Maven compilation error quot;is not within its boundquot;
 
 Do Eclipse and Maven use the same compiler source/target versions? Which
 is you Maven version?
 
 To me it looks like you do have a problem with generics there. Maybe you
 use a new feature from a Java version greater than the one used by Maven.
 Hard to speculate without source code and pom.xml though.
 
 -- 
 Alexander Kriegisch
 
 
 gt; Am 02.12.2013 um 10:13 schrieb Adrien Ruffié
 lt;adriennolar...@hotmail.frgt;:
 gt; 
 gt; Hello all, 
 gt; 
 gt; I have my webapp projet in Eclipse which compile correctly but when I
 try to
 gt; perform quot;mvn clean compilequot;, several following logs
 appears: 
 gt; 
 gt; [ERROR]
 gt;

\Java\Workspaces\Indigo\mycompanycrm4\mycompany-webapp\src\main\java\com\myc
 gt;

ompany\frontline\display\render\custom\ImageHandleBarRenderBoolCustom.java:[
 gt; 16,95] type parameter
 gt;

com.mycompany.frontline.property.display.valuable.bean.BooleanMonoValueBean
 gt; is not within its bound 
 gt; 
 gt; My class implements correctly generic, inteface, inheritance tree ...
 the
 gt; application work correctly in my tomcat launched by Eclipse, but when
 I try
 gt; to package it the compiler block ... 
 gt; I#039;m not able to change the code, do you know a solution to force
 Maven to
 gt; compile correctly ? Have you ever faced the problem ?
 gt; 
 gt; I attach the log file, if it can be help
 gt; 
 gt; Thank you very much 
 gt; 
 gt; Best regards, 
 gt; 
 gt; Adrien
 gt; 
 gt; 
 gt; -
 gt; To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 gt; For additional commands, e-mail: users-h...@maven.apache.org
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 -
 To unsubscribe

Re: Maven compilation error is not within its bound

2013-12-02 Thread Stuart McCulloch
On 2 Dec 2013, at 11:15, Adrien Ruffié adriennolar...@hotmail.fr wrote:

 I have found more information here:
 
 http://stackoverflow.com/questions/19266797/different-compilation-behavior-w
 ith-type-cast-between-eclipse-and-maven/19267547#19267547
 
 that say:
 
 Eclipse comes with its own Java compiler; Maven uses javac. Most of the
 time, both accept the same code but generics are complicated and compiler do
 have bugs. There are a couple of known bugs in javac of Java 6 which cause
 problems, for example.
 
 Oracle will not fix them. The solution is to use Java 7 to run Maven and
 configure the maven-compiler-plugin the generate Java 6 byte code (see Kumar
 Sambhav's answer).
 
 
 But how I can use Eclipse to compile in Maven ?

See 
http://maven.apache.org/plugins/maven-compiler-plugin/non-javac-compilers.html 
- to use the eclipse compiler:

  plugin
artifactIdmaven-compiler-plugin/artifactId
version3.1/version
configuration
  compilerIdeclipse/compilerId
/configuration
dependencies
  dependency
groupIdorg.codehaus.plexus/groupId
artifactIdplexus-compiler-eclipse/artifactId
version2.3/version
  /dependency
/dependencies
  /plugin

 Because I try this:
 
 plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
version2.0.2/version
configuration
source1.6/source
target1.6/target
compilerVersion1.6/compilerVersion
forktrue/fork
executablejava -classpath
 ${env.M2_REPO}/org/eclipse/jdt/${org.eclipse.jdt.core.version}/core-${or
 g.eclipse.jdt.core.version}.jar
 org.eclipse.jdt.internal.compiler.batch.Main -classpath rt.jar
 -sourcepath src/main/executable
/configuration
dependencies
dependency
groupIdorg.eclipse.jdt/groupId
artifactIdcore/artifactId
version3.3.0-v_771/version 
/dependency
/dependencies
 /plugin
 
 But I get the following error I attached file
 
 Do you know how I can correctly build my project ?
 
 
 
 
 -Message d'origine-
 De : Alexander Kriegisch [mailto:alexan...@kriegisch.name] 
 Envoyé : lundi 2 décembre 2013 10:55
 À : users@maven.apache.org
 Objet : Re: Maven compilation error is not within its bound
 
 Maven does not compile anything, the Java compiler does. The Maven Compiler
 Plugin is used to configure compilation according to your needs:
 http://maven.apache.org/plugins/maven-compiler-plugin/
 
 Maven default source/target version is 1.5, as you can see in the parent
 POM:
 http://svn.apache.org/viewvc/maven/pom/tags/maven-parent-23/pom.xml?view=co;
 revision=1434744content-type=text%2Fplain
 
 If you want 1.6, please override like this:
 
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-compiler-plugin/artifactId
   version3.0/version
   configuration
   source1.6/source
   target1.6/target
   /configuration
 /plugin
 
 -- 
 Alexander Kriegisch
 
 
 Adrien Ruffié schrieb am 02.12.2013 10:36:
 
 Hello Alexander,
 
 Thank you very much for your response,
 
 For maven version is 3.0.4, the property java.version is set to 1.6 and my
 Eclipse project is 1.6 in compiler properties tab.
 I cannot use Maven+Eclipse to package my webapp because, it is Jenkins
 with maven which package, but maven doesn#039;t compile correctly ...
 The generics doesn#039;t cause problem in the webapp (we have make
 several testcases), but were I can see which compiler source/target is
 used by Eclipse/Maven ?
 
 Great thank again
 
 Adrien
 
 -Message d#039;origine-
 De : Alexander Kriegisch [mailto:alexan...@kriegisch.name] 
 Envoyé : lundi 2 décembre 2013 10:24
 À : Maven Users List
 Objet : Re: Maven compilation error quot;is not within its boundquot;
 
 Do Eclipse and Maven use the same compiler source/target versions? Which
 is you Maven version?
 
 To me it looks like you do have a problem with generics there. Maybe you
 use a new feature from a Java version greater than the one used by Maven.
 Hard to speculate without source code and pom.xml though.
 
 -- 
 Alexander Kriegisch
 
 
 gt; Am 02.12.2013 um 10:13 schrieb Adrien Ruffié
 lt;adriennolar...@hotmail.frgt;:
 gt; 
 gt; Hello all, 
 gt; 
 gt; I have my webapp projet in Eclipse which compile correctly but when I
 try to
 gt; perform quot;mvn clean compilequot;, several following logs
 appears: 
 gt; 
 gt; [ERROR]
 gt;
 
 \Java\Workspaces\Indigo\mycompanycrm4\mycompany-webapp\src\main\java\com\myc
 gt;
 
 ompany\frontline\display\render\custom\ImageHandleBarRenderBoolCustom.java:[
 gt; 16,95] type parameter
 gt;
 
 com.mycompany.frontline.property.display.valuable.bean.BooleanMonoValueBean
 gt; is not within its bound 
 gt; 
 gt; My class implements correctly generic, inteface

RE: Maven compilation error is not within its bound

2013-12-02 Thread Adrien Ruffié
Not very well ... sorry it is  a very bad problem because I'm cannot upgrade
to Java 1.7 and all not give me satisfaction in compilation, so Eclipse work
well ... I don't have idea

-Message d'origine-
De : Stuart McCulloch [mailto:mccu...@gmail.com] 
Envoyé : lundi 2 décembre 2013 15:35
À : Maven Users List
Objet : Re: Maven compilation error is not within its bound

On 2 Dec 2013, at 11:15, Adrien Ruffié adriennolar...@hotmail.fr wrote:

 I have found more information here:
 
 http://stackoverflow.com/questions/19266797/different-compilation-beha
 vior-w
 ith-type-cast-between-eclipse-and-maven/19267547#19267547
 
 that say:
 
 Eclipse comes with its own Java compiler; Maven uses javac. Most of 
 the time, both accept the same code but generics are complicated and 
 compiler do have bugs. There are a couple of known bugs in javac of 
 Java 6 which cause problems, for example.
 
 Oracle will not fix them. The solution is to use Java 7 to run Maven 
 and configure the maven-compiler-plugin the generate Java 6 byte code 
 (see Kumar Sambhav's answer).
 
 
 But how I can use Eclipse to compile in Maven ?

See
http://maven.apache.org/plugins/maven-compiler-plugin/non-javac-compilers.ht
ml - to use the eclipse compiler:

  plugin
artifactIdmaven-compiler-plugin/artifactId
version3.1/version
configuration
  compilerIdeclipse/compilerId
/configuration
dependencies
  dependency
groupIdorg.codehaus.plexus/groupId
artifactIdplexus-compiler-eclipse/artifactId
version2.3/version
  /dependency
/dependencies
  /plugin

 Because I try this:
 
 plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
version2.0.2/version
configuration
source1.6/source
target1.6/target
compilerVersion1.6/compilerVersion
forktrue/fork
executablejava -classpath 
 ${env.M2_REPO}/org/eclipse/jdt/${org.eclipse.jdt.core.version}/core-${
 or
 g.eclipse.jdt.core.version}.jar
 org.eclipse.jdt.internal.compiler.batch.Main -classpath rt.jar 
 -sourcepath src/main/executable
/configuration
dependencies
dependency
groupIdorg.eclipse.jdt/groupId
artifactIdcore/artifactId
version3.3.0-v_771/version 
/dependency
/dependencies
 /plugin
 
 But I get the following error I attached file
 
 Do you know how I can correctly build my project ?
 
 
 
 
 -Message d'origine-
 De : Alexander Kriegisch [mailto:alexan...@kriegisch.name] Envoyé : 
 lundi 2 décembre 2013 10:55 À : users@maven.apache.org Objet : Re: 
 Maven compilation error is not within its bound
 
 Maven does not compile anything, the Java compiler does. The Maven 
 Compiler Plugin is used to configure compilation according to your needs:
 http://maven.apache.org/plugins/maven-compiler-plugin/
 
 Maven default source/target version is 1.5, as you can see in the 
 parent
 POM:
 http://svn.apache.org/viewvc/maven/pom/tags/maven-parent-23/pom.xml?vi
 ew=co revision=1434744content-type=text%2Fplain
 
 If you want 1.6, please override like this:
 
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-compiler-plugin/artifactId
   version3.0/version
   configuration
   source1.6/source
   target1.6/target
   /configuration
 /plugin
 
 --
 Alexander Kriegisch
 
 
 Adrien Ruffié schrieb am 02.12.2013 10:36:
 
 Hello Alexander,
 
 Thank you very much for your response,
 
 For maven version is 3.0.4, the property java.version is set to 1.6 
 and my Eclipse project is 1.6 in compiler properties tab.
 I cannot use Maven+Eclipse to package my webapp because, it is 
 Jenkins with maven which package, but maven doesn#039;t compile
correctly ...
 The generics doesn#039;t cause problem in the webapp (we have make 
 several testcases), but were I can see which compiler source/target 
 is used by Eclipse/Maven ?
 
 Great thank again
 
 Adrien
 
 -Message d#039;origine-
 De : Alexander Kriegisch [mailto:alexan...@kriegisch.name] Envoyé : 
 lundi 2 décembre 2013 10:24 À : Maven Users List Objet : Re: Maven 
 compilation error quot;is not within its boundquot;
 
 Do Eclipse and Maven use the same compiler source/target versions? 
 Which is you Maven version?
 
 To me it looks like you do have a problem with generics there. Maybe 
 you use a new feature from a Java version greater than the one used by
Maven.
 Hard to speculate without source code and pom.xml though.
 
 --
 Alexander Kriegisch
 
 
 gt; Am 02.12.2013 um 10:13 schrieb Adrien Ruffié
 lt;adriennolar...@hotmail.frgt;:
 gt;
 gt; Hello all,
 gt;
 gt; I have my webapp projet in Eclipse which compile correctly but 
 when I try to gt; perform quot;mvn clean compilequot;, several 
 following logs

Re: Maven compilation error is not within its bound

2013-12-02 Thread Stuart McCulloch
On 2 Dec 2013, at 15:31, Adrien Ruffié adriennolar...@hotmail.fr wrote:

 Not very well ... sorry it is  a very bad problem because I'm cannot upgrade
 to Java 1.7 and all not give me satisfaction in compilation, so Eclipse work
 well ... I don't have idea

You shouldn't need to upgrade to Java 1.7 to use the eclipse compiler in Maven, 
just use the plugin configuration shown below and Maven will compile your code 
using the eclipse compiler (also known as ecj).

 -Message d'origine-
 De : Stuart McCulloch [mailto:mccu...@gmail.com] 
 Envoyé : lundi 2 décembre 2013 15:35
 À : Maven Users List
 Objet : Re: Maven compilation error is not within its bound
 
 On 2 Dec 2013, at 11:15, Adrien Ruffié adriennolar...@hotmail.fr wrote:
 
 I have found more information here:
 
 http://stackoverflow.com/questions/19266797/different-compilation-beha
 vior-w
 ith-type-cast-between-eclipse-and-maven/19267547#19267547
 
 that say:
 
 Eclipse comes with its own Java compiler; Maven uses javac. Most of 
 the time, both accept the same code but generics are complicated and 
 compiler do have bugs. There are a couple of known bugs in javac of 
 Java 6 which cause problems, for example.
 
 Oracle will not fix them. The solution is to use Java 7 to run Maven 
 and configure the maven-compiler-plugin the generate Java 6 byte code 
 (see Kumar Sambhav's answer).
 
 
 But how I can use Eclipse to compile in Maven ?
 
 See
 http://maven.apache.org/plugins/maven-compiler-plugin/non-javac-compilers.ht
 ml - to use the eclipse compiler:
 
  plugin
artifactIdmaven-compiler-plugin/artifactId
version3.1/version
configuration
  compilerIdeclipse/compilerId
/configuration
dependencies
  dependency
groupIdorg.codehaus.plexus/groupId
artifactIdplexus-compiler-eclipse/artifactId
version2.3/version
  /dependency
/dependencies
  /plugin
 
 Because I try this:
 
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-compiler-plugin/artifactId
   version2.0.2/version
   configuration
   source1.6/source
   target1.6/target
   compilerVersion1.6/compilerVersion
   forktrue/fork
   executablejava -classpath 
 ${env.M2_REPO}/org/eclipse/jdt/${org.eclipse.jdt.core.version}/core-${
 or
 g.eclipse.jdt.core.version}.jar
 org.eclipse.jdt.internal.compiler.batch.Main -classpath rt.jar 
 -sourcepath src/main/executable
   /configuration
   dependencies
   dependency
   groupIdorg.eclipse.jdt/groupId
   artifactIdcore/artifactId
   version3.3.0-v_771/version 
   /dependency
   /dependencies
 /plugin
 
 But I get the following error I attached file
 
 Do you know how I can correctly build my project ?
 
 
 
 
 -Message d'origine-
 De : Alexander Kriegisch [mailto:alexan...@kriegisch.name] Envoyé : 
 lundi 2 décembre 2013 10:55 À : users@maven.apache.org Objet : Re: 
 Maven compilation error is not within its bound
 
 Maven does not compile anything, the Java compiler does. The Maven 
 Compiler Plugin is used to configure compilation according to your needs:
 http://maven.apache.org/plugins/maven-compiler-plugin/
 
 Maven default source/target version is 1.5, as you can see in the 
 parent
 POM:
 http://svn.apache.org/viewvc/maven/pom/tags/maven-parent-23/pom.xml?vi
 ew=co revision=1434744content-type=text%2Fplain
 
 If you want 1.6, please override like this:
 
 plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-compiler-plugin/artifactId
  version3.0/version
  configuration
  source1.6/source
  target1.6/target
  /configuration
 /plugin
 
 --
 Alexander Kriegisch
 
 
 Adrien Ruffié schrieb am 02.12.2013 10:36:
 
 Hello Alexander,
 
 Thank you very much for your response,
 
 For maven version is 3.0.4, the property java.version is set to 1.6 
 and my Eclipse project is 1.6 in compiler properties tab.
 I cannot use Maven+Eclipse to package my webapp because, it is 
 Jenkins with maven which package, but maven doesn#039;t compile
 correctly ...
 The generics doesn#039;t cause problem in the webapp (we have make 
 several testcases), but were I can see which compiler source/target 
 is used by Eclipse/Maven ?
 
 Great thank again
 
 Adrien
 
 -Message d#039;origine-
 De : Alexander Kriegisch [mailto:alexan...@kriegisch.name] Envoyé : 
 lundi 2 décembre 2013 10:24 À : Maven Users List Objet : Re: Maven 
 compilation error quot;is not within its boundquot;
 
 Do Eclipse and Maven use the same compiler source/target versions? 
 Which is you Maven version?
 
 To me it looks like you do have a problem with generics there. Maybe 
 you use a new feature from a Java version greater than the one used by
 Maven.
 Hard to speculate without source code and pom.xml though.
 
 --
 Alexander

RE: Maven compilation error is not within its bound

2013-12-02 Thread Adrien Ruffié
No sorry with this configuration I have again generic compilation problem
like following in attached file, I don't have this problem if I use general
javac compiler and also in Eclipse, why these appears with mvn/eclipse
compiler ... ?

-Message d'origine-
De : Stuart McCulloch [mailto:mccu...@gmail.com] 
Envoyé : lundi 2 décembre 2013 16:47
À : Maven Users List
Objet : Re: Maven compilation error is not within its bound

On 2 Dec 2013, at 15:31, Adrien Ruffié adriennolar...@hotmail.fr wrote:

 Not very well ... sorry it is  a very bad problem because I'm cannot 
 upgrade to Java 1.7 and all not give me satisfaction in compilation, 
 so Eclipse work well ... I don't have idea

You shouldn't need to upgrade to Java 1.7 to use the eclipse compiler in
Maven, just use the plugin configuration shown below and Maven will compile
your code using the eclipse compiler (also known as ecj).

 -Message d'origine-
 De : Stuart McCulloch [mailto:mccu...@gmail.com] Envoyé : lundi 2 
 décembre 2013 15:35 À : Maven Users List Objet : Re: Maven compilation 
 error is not within its bound
 
 On 2 Dec 2013, at 11:15, Adrien Ruffié adriennolar...@hotmail.fr wrote:
 
 I have found more information here:
 
 http://stackoverflow.com/questions/19266797/different-compilation-beh
 a
 vior-w
 ith-type-cast-between-eclipse-and-maven/19267547#19267547
 
 that say:
 
 Eclipse comes with its own Java compiler; Maven uses javac. Most of 
 the time, both accept the same code but generics are complicated and 
 compiler do have bugs. There are a couple of known bugs in javac of 
 Java 6 which cause problems, for example.
 
 Oracle will not fix them. The solution is to use Java 7 to run Maven 
 and configure the maven-compiler-plugin the generate Java 6 byte code 
 (see Kumar Sambhav's answer).
 
 
 But how I can use Eclipse to compile in Maven ?
 
 See
 http://maven.apache.org/plugins/maven-compiler-plugin/non-javac-compil
 ers.ht
 ml - to use the eclipse compiler:
 
  plugin
artifactIdmaven-compiler-plugin/artifactId
version3.1/version
configuration
  compilerIdeclipse/compilerId
/configuration
dependencies
  dependency
groupIdorg.codehaus.plexus/groupId
artifactIdplexus-compiler-eclipse/artifactId
version2.3/version
  /dependency
/dependencies
  /plugin
 
 Because I try this:
 
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-compiler-plugin/artifactId
   version2.0.2/version
   configuration
   source1.6/source
   target1.6/target
   compilerVersion1.6/compilerVersion
   forktrue/fork
   executablejava -classpath 
 ${env.M2_REPO}/org/eclipse/jdt/${org.eclipse.jdt.core.version}/core-$
 {
 or
 g.eclipse.jdt.core.version}.jar
 org.eclipse.jdt.internal.compiler.batch.Main -classpath rt.jar 
 -sourcepath src/main/executable
   /configuration
   dependencies
   dependency
   groupIdorg.eclipse.jdt/groupId
   artifactIdcore/artifactId
   version3.3.0-v_771/version 
   /dependency
   /dependencies
 /plugin
 
 But I get the following error I attached file
 
 Do you know how I can correctly build my project ?
 
 
 
 
 -Message d'origine-
 De : Alexander Kriegisch [mailto:alexan...@kriegisch.name] Envoyé : 
 lundi 2 décembre 2013 10:55 À : users@maven.apache.org Objet : Re: 
 Maven compilation error is not within its bound
 
 Maven does not compile anything, the Java compiler does. The Maven 
 Compiler Plugin is used to configure compilation according to your needs:
 http://maven.apache.org/plugins/maven-compiler-plugin/
 
 Maven default source/target version is 1.5, as you can see in the 
 parent
 POM:
 http://svn.apache.org/viewvc/maven/pom/tags/maven-parent-23/pom.xml?v
 i ew=co revision=1434744content-type=text%2Fplain
 
 If you want 1.6, please override like this:
 
 plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-compiler-plugin/artifactId
  version3.0/version
  configuration
  source1.6/source
  target1.6/target
  /configuration
 /plugin
 
 --
 Alexander Kriegisch
 
 
 Adrien Ruffié schrieb am 02.12.2013 10:36:
 
 Hello Alexander,
 
 Thank you very much for your response,
 
 For maven version is 3.0.4, the property java.version is set to 1.6 
 and my Eclipse project is 1.6 in compiler properties tab.
 I cannot use Maven+Eclipse to package my webapp because, it is 
 Jenkins with maven which package, but maven doesn#039;t compile
 correctly ...
 The generics doesn#039;t cause problem in the webapp (we have make 
 several testcases), but were I can see which compiler source/target 
 is used by Eclipse/Maven ?
 
 Great thank again
 
 Adrien
 
 -Message d#039;origine-
 De : Alexander Kriegisch [mailto:alexan...@kriegisch.name] Envoyé : 
 lundi 2

Re: Maven compilation error is not within its bound

2013-12-02 Thread Ron Wheeler
Find out what compiler Eclipse uses and install a copy on your 
workstation and tell maven to use that.


(I think that setting JAVA_HOME might do the trick.)

Ron



On 02/12/2013 10:31 AM, Adrien Ruffié wrote:

Not very well ... sorry it is  a very bad problem because I'm cannot upgrade
to Java 1.7 and all not give me satisfaction in compilation, so Eclipse work
well ... I don't have idea

-Message d'origine-
De : Stuart McCulloch [mailto:mccu...@gmail.com]
Envoyé : lundi 2 décembre 2013 15:35
À : Maven Users List
Objet : Re: Maven compilation error is not within its bound

On 2 Dec 2013, at 11:15, Adrien Ruffié adriennolar...@hotmail.fr wrote:


I have found more information here:

http://stackoverflow.com/questions/19266797/different-compilation-beha
vior-w
ith-type-cast-between-eclipse-and-maven/19267547#19267547

that say:

Eclipse comes with its own Java compiler; Maven uses javac. Most of
the time, both accept the same code but generics are complicated and
compiler do have bugs. There are a couple of known bugs in javac of
Java 6 which cause problems, for example.

Oracle will not fix them. The solution is to use Java 7 to run Maven
and configure the maven-compiler-plugin the generate Java 6 byte code
(see Kumar Sambhav's answer).


But how I can use Eclipse to compile in Maven ?

See
http://maven.apache.org/plugins/maven-compiler-plugin/non-javac-compilers.ht
ml - to use the eclipse compiler:

   plugin
 artifactIdmaven-compiler-plugin/artifactId
 version3.1/version
 configuration
   compilerIdeclipse/compilerId
 /configuration
 dependencies
   dependency
 groupIdorg.codehaus.plexus/groupId
 artifactIdplexus-compiler-eclipse/artifactId
 version2.3/version
   /dependency
 /dependencies
   /plugin


Because I try this:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
version2.0.2/version
configuration
source1.6/source
target1.6/target
compilerVersion1.6/compilerVersion
forktrue/fork
executablejava -classpath
${env.M2_REPO}/org/eclipse/jdt/${org.eclipse.jdt.core.version}/core-${
or
g.eclipse.jdt.core.version}.jar
org.eclipse.jdt.internal.compiler.batch.Main -classpath rt.jar
-sourcepath src/main/executable
/configuration
dependencies
dependency
groupIdorg.eclipse.jdt/groupId
artifactIdcore/artifactId
version3.3.0-v_771/version
/dependency
/dependencies
/plugin

But I get the following error I attached file

Do you know how I can correctly build my project ?




-Message d'origine-
De : Alexander Kriegisch [mailto:alexan...@kriegisch.name] Envoyé :
lundi 2 décembre 2013 10:55 À : users@maven.apache.org Objet : Re:
Maven compilation error is not within its bound

Maven does not compile anything, the Java compiler does. The Maven
Compiler Plugin is used to configure compilation according to your needs:
http://maven.apache.org/plugins/maven-compiler-plugin/

Maven default source/target version is 1.5, as you can see in the
parent
POM:
http://svn.apache.org/viewvc/maven/pom/tags/maven-parent-23/pom.xml?vi
ew=co revision=1434744content-type=text%2Fplain

If you want 1.6, please override like this:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
version3.0/version
configuration
source1.6/source
target1.6/target
/configuration
/plugin

--
Alexander Kriegisch


Adrien Ruffié schrieb am 02.12.2013 10:36:


Hello Alexander,

Thank you very much for your response,

For maven version is 3.0.4, the property java.version is set to 1.6
and my Eclipse project is 1.6 in compiler properties tab.
I cannot use Maven+Eclipse to package my webapp because, it is
Jenkins with maven which package, but maven doesn#039;t compile

correctly ...

The generics doesn#039;t cause problem in the webapp (we have make
several testcases), but were I can see which compiler source/target
is used by Eclipse/Maven ?

Great thank again

Adrien

-Message d#039;origine-
De : Alexander Kriegisch [mailto:alexan...@kriegisch.name] Envoyé :
lundi 2 décembre 2013 10:24 À : Maven Users List Objet : Re: Maven
compilation error quot;is not within its boundquot;

Do Eclipse and Maven use the same compiler source/target versions?
Which is you Maven version?

To me it looks like you do have a problem with generics there. Maybe
you use a new feature from a Java version greater than the one used by

Maven.

Hard to speculate without source code and pom.xml though.

--
Alexander Kriegisch


gt; Am 02.12.2013 um 10:13 schrieb Adrien Ruffié
lt;adriennolar...@hotmail.frgt;:
gt;
gt; Hello all,
gt;
gt; I have my webapp projet

Re: Maven compilation error is not within its bound

2013-12-02 Thread Wayne Fay
Try again but specify mvn -X clean compile so we can see that Maven
is actually using the Eclipse compiler as you say that you have
specified.

And don't attach log files to you email - they are oftentimes
stripped. Please post the text to pastebin or gist and send us a link.

Wayne

On Mon, Dec 2, 2013 at 10:23 AM, Adrien Ruffié
adriennolar...@hotmail.fr wrote:
 No sorry with this configuration I have again generic compilation problem
 like following in attached file, I don't have this problem if I use general
 javac compiler and also in Eclipse, why these appears with mvn/eclipse
 compiler ... ?

 -Message d'origine-
 De : Stuart McCulloch [mailto:mccu...@gmail.com]
 Envoyé : lundi 2 décembre 2013 16:47
 À : Maven Users List
 Objet : Re: Maven compilation error is not within its bound

 On 2 Dec 2013, at 15:31, Adrien Ruffié adriennolar...@hotmail.fr wrote:

 Not very well ... sorry it is  a very bad problem because I'm cannot
 upgrade to Java 1.7 and all not give me satisfaction in compilation,
 so Eclipse work well ... I don't have idea

 You shouldn't need to upgrade to Java 1.7 to use the eclipse compiler in
 Maven, just use the plugin configuration shown below and Maven will compile
 your code using the eclipse compiler (also known as ecj).

 -Message d'origine-
 De : Stuart McCulloch [mailto:mccu...@gmail.com] Envoyé : lundi 2
 décembre 2013 15:35 À : Maven Users List Objet : Re: Maven compilation
 error is not within its bound

 On 2 Dec 2013, at 11:15, Adrien Ruffié adriennolar...@hotmail.fr wrote:

 I have found more information here:

 http://stackoverflow.com/questions/19266797/different-compilation-beh
 a
 vior-w
 ith-type-cast-between-eclipse-and-maven/19267547#19267547

 that say:

 Eclipse comes with its own Java compiler; Maven uses javac. Most of
 the time, both accept the same code but generics are complicated and
 compiler do have bugs. There are a couple of known bugs in javac of
 Java 6 which cause problems, for example.

 Oracle will not fix them. The solution is to use Java 7 to run Maven
 and configure the maven-compiler-plugin the generate Java 6 byte code
 (see Kumar Sambhav's answer).


 But how I can use Eclipse to compile in Maven ?

 See
 http://maven.apache.org/plugins/maven-compiler-plugin/non-javac-compil
 ers.ht
 ml - to use the eclipse compiler:

  plugin
artifactIdmaven-compiler-plugin/artifactId
version3.1/version
configuration
  compilerIdeclipse/compilerId
/configuration
dependencies
  dependency
groupIdorg.codehaus.plexus/groupId
artifactIdplexus-compiler-eclipse/artifactId
version2.3/version
  /dependency
/dependencies
  /plugin

 Because I try this:

 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-compiler-plugin/artifactId
   version2.0.2/version
   configuration
   source1.6/source
   target1.6/target
   compilerVersion1.6/compilerVersion
   forktrue/fork
   executablejava -classpath
 ${env.M2_REPO}/org/eclipse/jdt/${org.eclipse.jdt.core.version}/core-$
 {
 or
 g.eclipse.jdt.core.version}.jar
 org.eclipse.jdt.internal.compiler.batch.Main -classpath rt.jar
 -sourcepath src/main/executable
   /configuration
   dependencies
   dependency
   groupIdorg.eclipse.jdt/groupId
   artifactIdcore/artifactId
   version3.3.0-v_771/version
   /dependency
   /dependencies
 /plugin

 But I get the following error I attached file

 Do you know how I can correctly build my project ?




 -Message d'origine-
 De : Alexander Kriegisch [mailto:alexan...@kriegisch.name] Envoyé :
 lundi 2 décembre 2013 10:55 À : users@maven.apache.org Objet : Re:
 Maven compilation error is not within its bound

 Maven does not compile anything, the Java compiler does. The Maven
 Compiler Plugin is used to configure compilation according to your needs:
 http://maven.apache.org/plugins/maven-compiler-plugin/

 Maven default source/target version is 1.5, as you can see in the
 parent
 POM:
 http://svn.apache.org/viewvc/maven/pom/tags/maven-parent-23/pom.xml?v
 i ew=co revision=1434744content-type=text%2Fplain

 If you want 1.6, please override like this:

 plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-compiler-plugin/artifactId
  version3.0/version
  configuration
  source1.6/source
  target1.6/target
  /configuration
 /plugin

 --
 Alexander Kriegisch


 Adrien Ruffié schrieb am 02.12.2013 10:36:

 Hello Alexander,

 Thank you very much for your response,

 For maven version is 3.0.4, the property java.version is set to 1.6
 and my Eclipse project is 1.6 in compiler properties tab.
 I cannot use Maven+Eclipse to package my webapp because, it is
 Jenkins with maven which package, but maven doesn#039;t compile

Re: maven compilation error

2012-06-26 Thread Belhadj abdessalem
Make sure that you have the pom.xml file in the root of your maven project
Le 26 juin 2012 00:54, mbb216 mbb@gmail.com a écrit :

 Build error
 Reason:cannot execute mojjo:it requires a project with an existing pom.xml
 but the build is not in use
 What is the reason for this erroe in maven.

 --
 View this message in context:
 http://maven.40175.n5.nabble.com/maven-compilation-error-tp5711968.html
 Sent from the Maven - Users mailing list archive at Nabble.com.

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




maven compilation error

2012-06-25 Thread mbb216
Build error
Reason:cannot execute mojjo:it requires a project with an existing pom.xml
but the build is not in use
What is the reason for this erroe in maven.

--
View this message in context: 
http://maven.40175.n5.nabble.com/maven-compilation-error-tp5711968.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: maven compilation error

2012-06-25 Thread Wayne Fay
 Build error
 Reason:cannot execute mojjo:it requires a project with an existing pom.xml
 but the build is not in use
 What is the reason for this erroe in maven.

What mojo are you trying to execute? No one can help you without more
information.

Wayne

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



Confluence Atlas-Maven Compilation error

2010-04-16 Thread Raghuveer

When I tried to convert the classes in java files through decompile and run
atlas-compile command,
 I get following
error.com.atlassian.confluence.plugin.base:confluence-plugin-base:pom:27

 

I have my SDK at E:\atlassian-plugin-sdk-3.0.4\apache-maven.

 

 

 

Logs:

 

D:\dec_test\pageapproval-1[1].12atlas-compile

Executing: E:\atlassian-plugin-sdk-3.0.4\apache-maven\bin\mvn.bat compile

[INFO] Scanning for projects...

Downloading:
https://m2proxy.atlassian.com/repository/public/com/atlassian/confluence/plu
gin/base/co

nfluence-plugin-base/27/confluence-plugin-base-27.pom

[WARNING] Unable to get resource
'com.atlassian.confluence.plugin.base:confluence-plugin-base:pom:27

' from repository atlassian-public
(https://m2proxy.atlassian.com/repository/public): Error transfer

ring file: m2proxy.atlassian.com

Downloading:
file://E:\atlassian-plugin-sdk-3.0.4/repository/com/atlassian/confluence/plu
gin/base/co

nfluence-plugin-base/27/confluence-plugin-base-27.pom

[INFO] Unable to find resource
'com.atlassian.confluence.plugin.base:confluence-plugin-base:pom:27'

in repository atlassian-plugin-sdk
(file://E:\atlassian-plugin-sdk-3.0.4/repository)

Downloading:
http://repo1.maven.org/maven2/com/atlassian/confluence/plugin/base/confluenc
e-plugin-ba

se/27/confluence-plugin-base-27.pom

[WARNING] Unable to get resource
'com.atlassian.confluence.plugin.base:confluence-plugin-base:pom:27

' from repository central (http://repo1.maven.org/maven2): Error
transferring file: repo1.maven.org

[INFO]


[ERROR] FATAL ERROR

[INFO]


[INFO] Failed to resolve artifact.

 

GroupId: com.atlassian.confluence.plugin.base

ArtifactId: confluence-plugin-base

Version: 27

 

Reason: Unable to download the artifact from any repository

 

  com.atlassian.confluence.plugin.base:confluence-plugin-base:pom:27

 

from the specified remote repositories:

  central (http://repo1.maven.org/maven2),

  atlassian-plugin-sdk (file://E:\atlassian-plugin-sdk-3.0.4/repository),

  atlassian-public (https://m2proxy.atlassian.com/repository/public)

 

 

 

[INFO]


[INFO] Trace

org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
com.atlassian.confluence.plugi

n.base:confluence-plugin-base for project:
net.customware.confluence.plugin.pageapproval:pageapprova

l:atlassian-plugin:1.12 for project
net.customware.confluence.plugin.pageapproval:pageapproval:atlas

sian-plugin:1.12

at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:432)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:300)

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)

at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)

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)

Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find
parent: com.atlassian.conf

luence.plugin.base:confluence-plugin-base for project:
net.customware.confluence.plugin.pageapproval

:pageapproval:atlassian-plugin:1.12 for project
net.customware.confluence.plugin.pageapproval:pageap

proval:atlassian-plugin:1.12

at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultM
avenProjectBu

ilder.java:1398)

at
org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMav
enProjectBuil

der.java:823)

at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInter
nal(DefaultMa

venProjectBuilder.java:508)

at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjec
tBuilder.java

:200)

at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:632)

at
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:515)

at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:419)

... 11 more

Caused by: org.apache.maven.project.ProjectBuildingException: POM
'com.atlassian.confluence.plugin.b

ase:confluence-plugin-base' not found in repository: Unable to download the
artifact from any reposi

tory

 

  com.atlassian.confluence.plugin.base:confluence-plugin-base:pom:27

 

from the specified remote repositories:

  central (http://repo1.maven.org/maven2),

  

Re: Confluence Atlas-Maven Compilation error

2010-04-16 Thread Justin Edelson
This looks like Atlassian's issue. Their repository server is down. See
http://forums.atlassian.com/thread.jspa?threadID=43075tstart=0

Justin

On 4/16/10 10:01 AM, Raghuveer wrote:
 
 When I tried to convert the classes in java files through decompile and run
 atlas-compile command,
  I get following
 error.com.atlassian.confluence.plugin.base:confluence-plugin-base:pom:27
 
  
 
 I have my SDK at E:\atlassian-plugin-sdk-3.0.4\apache-maven.
 
  
 
  
 
  
 
 Logs:
 
  
 
 D:\dec_test\pageapproval-1[1].12atlas-compile
 
 Executing: E:\atlassian-plugin-sdk-3.0.4\apache-maven\bin\mvn.bat compile
 
 [INFO] Scanning for projects...
 
 Downloading:
 https://m2proxy.atlassian.com/repository/public/com/atlassian/confluence/plu
 gin/base/co
 
 nfluence-plugin-base/27/confluence-plugin-base-27.pom
 
 [WARNING] Unable to get resource
 'com.atlassian.confluence.plugin.base:confluence-plugin-base:pom:27
 
 ' from repository atlassian-public
 (https://m2proxy.atlassian.com/repository/public): Error transfer
 
 ring file: m2proxy.atlassian.com
 
 Downloading:
 file://E:\atlassian-plugin-sdk-3.0.4/repository/com/atlassian/confluence/plu
 gin/base/co
 
 nfluence-plugin-base/27/confluence-plugin-base-27.pom
 
 [INFO] Unable to find resource
 'com.atlassian.confluence.plugin.base:confluence-plugin-base:pom:27'
 
 in repository atlassian-plugin-sdk
 (file://E:\atlassian-plugin-sdk-3.0.4/repository)
 
 Downloading:
 http://repo1.maven.org/maven2/com/atlassian/confluence/plugin/base/confluenc
 e-plugin-ba
 
 se/27/confluence-plugin-base-27.pom
 
 [WARNING] Unable to get resource
 'com.atlassian.confluence.plugin.base:confluence-plugin-base:pom:27
 
 ' from repository central (http://repo1.maven.org/maven2): Error
 transferring file: repo1.maven.org
 
 [INFO]
 
 
 [ERROR] FATAL ERROR
 
 [INFO]
 
 
 [INFO] Failed to resolve artifact.
 
  
 
 GroupId: com.atlassian.confluence.plugin.base
 
 ArtifactId: confluence-plugin-base
 
 Version: 27
 
  
 
 Reason: Unable to download the artifact from any repository
 
  
 
   com.atlassian.confluence.plugin.base:confluence-plugin-base:pom:27
 
  
 
 from the specified remote repositories:
 
   central (http://repo1.maven.org/maven2),
 
   atlassian-plugin-sdk (file://E:\atlassian-plugin-sdk-3.0.4/repository),
 
   atlassian-public (https://m2proxy.atlassian.com/repository/public)
 
  
 
  
 
  
 
 [INFO]
 
 
 [INFO] Trace
 
 org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
 com.atlassian.confluence.plugi
 
 n.base:confluence-plugin-base for project:
 net.customware.confluence.plugin.pageapproval:pageapprova
 
 l:atlassian-plugin:1.12 for project
 net.customware.confluence.plugin.pageapproval:pageapproval:atlas
 
 sian-plugin:1.12
 
 at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:432)
 
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:300)
 
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
 
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
 
 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)
 
 Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find
 parent: com.atlassian.conf
 
 luence.plugin.base:confluence-plugin-base for project:
 net.customware.confluence.plugin.pageapproval
 
 :pageapproval:atlassian-plugin:1.12 for project
 net.customware.confluence.plugin.pageapproval:pageap
 
 proval:atlassian-plugin:1.12
 
 at
 org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultM
 avenProjectBu
 
 ilder.java:1398)
 
 at
 org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMav
 enProjectBuil
 
 der.java:823)
 
 at
 org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInter
 nal(DefaultMa
 
 venProjectBuilder.java:508)
 
 at
 org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjec
 tBuilder.java
 
 :200)
 
 at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:632)
 
 at
 org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:515)
 
 at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:419)
 
 ... 11 more
 
 

Re: Maven compilation error

2008-11-12 Thread neptune_pluto
Thanks man Mathus :)

- Original Message -
From: Baptiste MATHUS [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Sent: Sat, 8 Nov 2008 19:42:05 +0530 (IST)
Subject: Re: Maven compilation error

Hi,

See the maven-compiler-plugin:
http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#encodingadd
the encoding tag inside the configuration one.

Cheers.

2008/11/8 [EMAIL PROTECTED]

 Hi,

 When i am compiling the classes using

 mvn com[ile,I am gettin the followiug exceptions...

 INFO] Compilation failure


 error: IO exception sun.io.MalformedInputException
 error: IO exception sun.io.MalformedInputException
 error: IO exception sun.io.MalformedInputException
 error: IO exception sun.io.MalformedInputException


 Earlier when we had used ant scripts,this was resolved with

 javac encoding=iso-8859-1 srcdir=.


 How to specify the same in maven??

 THanks

 Regards


 --
 Hyundai to launch the i20 in India. Catch the exclusive preview on
 ZigWheels.com

 http://www.zigwheels.com/b2cam/newsDetails.action?name=Emb11_20080731path=/INDT/News/Emb11_20080731page=1pagecount=2utm_source=indmailutm_medium=footerutm_content=trackingutm_campaign=Nletter_07oct2008_ZW

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




-- 
Baptiste Batmat MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !



--
Hyundai to launch the i20 in India. Catch the exclusive preview on ZigWheels.com
http://www.zigwheels.com/b2cam/newsDetails.action?name=Emb11_20080731path=/INDT/News/Emb11_20080731page=1pagecount=2utm_source=indmailutm_medium=footerutm_content=trackingutm_campaign=Nletter_07oct2008_ZW

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



Re: Maven compilation error

2008-11-08 Thread Baptiste MATHUS
Hi,

See the maven-compiler-plugin:
http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#encodingadd
the encoding tag inside the configuration one.

Cheers.

2008/11/8 [EMAIL PROTECTED]

 Hi,

 When i am compiling the classes using

 mvn com[ile,I am gettin the followiug exceptions...

 INFO] Compilation failure


 error: IO exception sun.io.MalformedInputException
 error: IO exception sun.io.MalformedInputException
 error: IO exception sun.io.MalformedInputException
 error: IO exception sun.io.MalformedInputException


 Earlier when we had used ant scripts,this was resolved with

 javac encoding=iso-8859-1 srcdir=.


 How to specify the same in maven??

 THanks

 Regards


 --
 Hyundai to launch the i20 in India. Catch the exclusive preview on
 ZigWheels.com

 http://www.zigwheels.com/b2cam/newsDetails.action?name=Emb11_20080731path=/INDT/News/Emb11_20080731page=1pagecount=2utm_source=indmailutm_medium=footerutm_content=trackingutm_campaign=Nletter_07oct2008_ZW

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




-- 
Baptiste Batmat MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !


Maven compilation error

2008-11-07 Thread neptune_pluto
Hi,

When i am compiling the classes using

mvn com[ile,I am gettin the followiug exceptions...

INFO] Compilation failure


error: IO exception sun.io.MalformedInputException
error: IO exception sun.io.MalformedInputException
error: IO exception sun.io.MalformedInputException
error: IO exception sun.io.MalformedInputException


Earlier when we had used ant scripts,this was resolved with

javac encoding=iso-8859-1 srcdir=.


How to specify the same in maven??

THanks

Regards


--
Hyundai to launch the i20 in India. Catch the exclusive preview on ZigWheels.com
http://www.zigwheels.com/b2cam/newsDetails.action?name=Emb11_20080731path=/INDT/News/Emb11_20080731page=1pagecount=2utm_source=indmailutm_medium=footerutm_content=trackingutm_campaign=Nletter_07oct2008_ZW

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