Re: What is the Java Version for building source code?

2007-04-01 Thread Niklas Gustavsson

Jason Dillon wrote:
I've no idea why you are not picking up newer versions.  Try to remove 
~/.m2/repository/org/apache/maven/plugins/maven-enforcer-plugin.



That most certainly did the trick. I should have thought of that myself, 
thanks for enduring!


/niklas



Re: What is the Java Version for building source code?

2007-04-01 Thread Jason Dillon

This is what I see when I run mvn -X on server/trunk:


[DEBUG] maven-enforcer-plugin: resolved to version 1.0- 
alpha-1-20070330.225649-12 from repository apache-snapshots
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-enforcer- 
plugin:1.0-alpha-1-SNAPSHOT:enforce' -->

[DEBUG]   (s) fail = true
[DEBUG]   (s) failFast = false
[DEBUG]   (s) version = [1.5,1.6)
[DEBUG]   (s) version = [2.0.5,)
[DEBUG]   (s) rules =  
[Lorg.apache.maven.shared.enforcer.rule.api.EnforcerRule;@37c77b

[DEBUG]   (s) session = [EMAIL PROTECTED]
[DEBUG]   (s) skip = false
[DEBUG] -- end configuration --
[INFO] [enforcer:enforce {execution: default}]
[DEBUG] Executing rule: RequireJavaVersion
[DEBUG] Detected Java String: 1.5.0_07
[DEBUG] Normalized Java String: 1.5.0-7
[DEBUG] Parsed Version: Major: 1 Minor: 5 Incremental: 0 Build: 7  
Qualifier: null

[INFO] Detected JDK Version: 1.5.0-7 is allowed in the range [1.5,1.6).
[DEBUG] Executing rule: RequireMavenVersion
[DEBUG] Detected Maven Version: 2.0.5
[INFO] Detected Maven Version: 2.0.5 is allowed in the range [2.0.5,).


I've no idea why you are not picking up newer versions.  Try to  
remove ~/.m2/repository/org/apache/maven/plugins/maven-enforcer-plugin.


--jason


On Apr 1, 2007, at 7:56 AM, Niklas Gustavsson wrote:


Jason Dillon wrote:

Please give me the *full* output of 'mvn -X'.
The output below does not sync up with the debug output of the  
latest maven-enforcer-plugin, which does log some more details  
about the version translation which is done to sanitize the JDK  
version before checking if it is in range.


The full output is 658 Kb so I put it here:
http://protocol7.com/tmp/build.zip

Before running this, I also tried forcing a plugin update with mvn - 
cpu test but with no progress.


/niklas





Re: What is the Java Version for building source code?

2007-04-01 Thread Niklas Gustavsson

Jason Dillon wrote:

Please give me the *full* output of 'mvn -X'.

The output below does not sync up with the debug output of the latest 
maven-enforcer-plugin, which does log some more details about the 
version translation which is done to sanitize the JDK version before 
checking if it is in range.


The full output is 658 Kb so I put it here:
http://protocol7.com/tmp/build.zip

Before running this, I also tried forcing a plugin update with mvn -cpu 
test but with no progress.


/niklas



Re: What is the Java Version for building source code?

2007-03-31 Thread Jason Dillon

Please give me the *full* output of 'mvn -X'.

The output below does not sync up with the debug output of the latest  
maven-enforcer-plugin, which does log some more details about the  
version translation which is done to sanitize the JDK version before  
checking if it is in range.


--jason


On Mar 31, 2007, at 2:52 AM, Niklas Gustavsson wrote:


Jason Dillon wrote:
Are you using the latest code from server/trunk?  I updated the  
build last night to use a previous snapshot version of the maven- 
enforcer-plugin to get around this problem until Brian can fix the  
issue with the plugin.  With the latest in server/trunk you should  
*not* see this problem.


Just updated and that did not seem to do the trick. Running mvn -X  
test tells me that the enforces plugin is resolved to 1.0- 
alpha-1-20070330.033942-10 which sounds like you'r new version. The  
maven-enforcer-rule-api is resolved to 1.0-alpha-1-20070328.035444-2.


The error part of the build log says:
[DEBUG] maven-enforcer-rule-api: resolved to version 1.0- 
alpha-1-20070328.035444-2 from repository apache.snapshots
[DEBUG] Retrieving parent-POM: org.apache.maven.shared:maven-shared- 
components::7 for project: org.apache.maven.shared:maven-enforcer- 
rule-api:jar:1.0-alpha-1-SNAPSHOT from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for  
project: org.apache.maven.shared:maven-shared-components:pom:7 from  
the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:  
org.apache.maven:maven-parent:pom:5 from the repository.
[DEBUG] org.apache.maven.shared:maven-enforcer-rule-api:jar:1.0- 
alpha-1-SNAPSHOT:runtime (selected for runtime)
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0.5:runtime  
(selected for runtime)
[DEBUG] maven-enforcer-rule-api: resolved to version 1.0- 
alpha-1-20070328.035444-2 from repository apache.snapshots
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-enforcer- 
plugin:1.0-alpha-1-SNAPSHOT:enforce' -->

[DEBUG]   (s) fail = true
[DEBUG]   (s) failFast = false
[DEBUG]   (s) version = [1.5,1.6)
[DEBUG]   (s) version = [2.0.5,)
[DEBUG]   (s) rules =  
[Lorg.apache.maven.shared.enforcer.rule.api.EnforcerRule;@557280

[DEBUG]   (s) session = [EMAIL PROTECTED]
[DEBUG]   (s) skip = false
[DEBUG] -- end configuration --
[INFO] [enforcer:enforce {execution: default}]
[DEBUG] Executing rule: RequireJavaVersion
[DEBUG] Executing rule: RequireMavenVersion
[INFO] Detected Maven Version: 2.0.5 is allowed in the range [2.0.5,).
[WARNING] Rule 0: RequireJavaVersion failed with message: Detected  
JDK Version: 1.5.0-05 is not in the allowed range [1.5,1.6).
[INFO]  
-- 
--

[ERROR] BUILD ERROR
[INFO]  
-- 
--

[INFO] Some rules have failed.
[INFO]  
-- 
--

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Some rules  
have failed.
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals 
(DefaultLifecycleExecutor.java:564)
	at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLif 
ecycle(DefaultLifecycleExecutor.java:480)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal 
(DefaultLifecycleExecutor.java:459)
	at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHand 
leFailures(DefaultLifecycleExecutor.java:311)
	at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegment 
s(DefaultLifecycleExecutor.java:278)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute 
(DefaultLifecycleExecutor.java:143)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
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.plugin.MojoExecutionException: Some  
rules have failed.
	at org.apache.maven.plugin.enforcer.EnforceMojo.execute 
(EnforceMojo.java:157)
	at org.apache.maven.plugin.DefaultPluginManager.executeMojo 
(DefaultPluginManager.java:420)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals 
(DefaultLifecycleExecutor.java:539)

... 16 more


Any help is appreciated!

/niklas







Re: What is the Java Version for building source code?

2007-03-31 Thread Niklas Gustavsson

Jason Dillon wrote:
Are you using the latest code from server/trunk?  I updated the build 
last night to use a previous snapshot version of the 
maven-enforcer-plugin to get around this problem until Brian can fix the 
issue with the plugin.  With the latest in server/trunk you should *not* 
see this problem.


Just updated and that did not seem to do the trick. Running mvn -X test 
tells me that the enforces plugin is resolved to 
1.0-alpha-1-20070330.033942-10 which sounds like you'r new version. The 
maven-enforcer-rule-api is resolved to 1.0-alpha-1-20070328.035444-2.


The error part of the build log says:
[DEBUG] maven-enforcer-rule-api: resolved to version 
1.0-alpha-1-20070328.035444-2 from repository apache.snapshots
[DEBUG] Retrieving parent-POM: 
org.apache.maven.shared:maven-shared-components::7 for project: 
org.apache.maven.shared:maven-enforcer-rule-api:jar:1.0-alpha-1-SNAPSHOT 
from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for 
project: org.apache.maven.shared:maven-shared-components:pom:7 from the 
repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project: 
org.apache.maven:maven-parent:pom:5 from the repository.
[DEBUG] 
org.apache.maven.shared:maven-enforcer-rule-api:jar:1.0-alpha-1-SNAPSHOT:runtime 
(selected for runtime)
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0.5:runtime (selected 
for runtime)
[DEBUG] maven-enforcer-rule-api: resolved to version 
1.0-alpha-1-20070328.035444-2 from repository apache.snapshots
[DEBUG] Configuring mojo 
'org.apache.maven.plugins:maven-enforcer-plugin:1.0-alpha-1-SNAPSHOT:enforce' 
-->

[DEBUG]   (s) fail = true
[DEBUG]   (s) failFast = false
[DEBUG]   (s) version = [1.5,1.6)
[DEBUG]   (s) version = [2.0.5,)
[DEBUG]   (s) rules = 
[Lorg.apache.maven.shared.enforcer.rule.api.EnforcerRule;@557280

[DEBUG]   (s) session = [EMAIL PROTECTED]
[DEBUG]   (s) skip = false
[DEBUG] -- end configuration --
[INFO] [enforcer:enforce {execution: default}]
[DEBUG] Executing rule: RequireJavaVersion
[DEBUG] Executing rule: RequireMavenVersion
[INFO] Detected Maven Version: 2.0.5 is allowed in the range [2.0.5,).
[WARNING] Rule 0: RequireJavaVersion failed with message: Detected JDK 
Version: 1.5.0-05 is not in the allowed range [1.5,1.6).
[INFO] 


[ERROR] BUILD ERROR
[INFO] 


[INFO] Some rules have failed.
[INFO] 


[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Some rules have 
failed.
	at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
	at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
	at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
	at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
	at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
	at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
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.plugin.MojoExecutionException: Some rules 
have failed.
	at 
org.apache.maven.plugin.enforcer.EnforceMojo.execute(EnforceMojo.java:157)
	at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:420)
	at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)

... 16 more


Any help is appreciated!

/niklas





Re: What is the Java Version for building source code?

2007-03-30 Thread Jason Dillon
Are you using the latest code from server/trunk?  I updated the build  
last night to use a previous snapshot version of the maven-enforcer- 
plugin to get around this problem until Brian can fix the issue with  
the plugin.  With the latest in server/trunk you should *not* see  
this problem.


--jason


On Mar 30, 2007, at 3:07 PM, Niklas Gustavsson wrote:


Lasantha Ranaweera wrote:

Hi,
What is the recommended Java version to be used with building G  
from source code?
At the moment I am having a problem of building G from source code  
(maven build fails with complaining incompatible Java version).


I'm running into the same issue with 1.5.0_05. This makes for an  
odd error message:


[INFO] [enforcer:enforce {execution: default}]
[INFO] Detected Maven Version: 2.0.5 is allowed in the range [2.0.5,).
[WARNING] Rule 0: RequireJavaVersion failed with message: Detected  
JDK Version:

1.5.0-05 is not in the allowed range [1.5,1.6).

Changing the range to [1.4,1.6) let's me pass but that's probably  
not a good idea ;-)


/niklas





Re: What is the Java Version for building source code?

2007-03-30 Thread Niklas Gustavsson

Lasantha Ranaweera wrote:

Hi,

What is the recommended Java version to be used with building G from 
source code?


At the moment I am having a problem of building G from source code 
(maven build fails with complaining incompatible Java version). 


I'm running into the same issue with 1.5.0_05. This makes for an odd 
error message:


[INFO] [enforcer:enforce {execution: default}]
[INFO] Detected Maven Version: 2.0.5 is allowed in the range [2.0.5,).
[WARNING] Rule 0: RequireJavaVersion failed with message: Detected JDK 
Version:

1.5.0-05 is not in the allowed range [1.5,1.6).

Changing the range to [1.4,1.6) let's me pass but that's probably not a 
good idea ;-)


/niklas



Re: What is the Java Version for building source code?

2007-03-29 Thread Jacek Laskowski

On 3/30/07, Lasantha Ranaweera <[EMAIL PROTECTED]> wrote:

Hi,

What is the recommended Java version to be used with building G from
source code?

At the moment I am having a problem of building G from source code
(maven build fails with complaining incompatible Java version).
Following is my JDK information.

java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
Java HotSpot(TM) Server VM (build 1.5.0_07-b03, mixed mode)


$ java -version
java version "1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)

That's what I'm using with no issues. I don't think it's the version
of Java you're using. Make sure that M2 doesn't grab other version
available on your system. 1.5.* should be fine (I haven't looked at
the plugin's code, though. It's been a while when I did).

Jacek

--
Jacek Laskowski
http://www.JacekLaskowski.pl


What is the Java Version for building source code?

2007-03-29 Thread Lasantha Ranaweera

Hi,

What is the recommended Java version to be used with building G from 
source code?


At the moment I am having a problem of building G from source code 
(maven build fails with complaining incompatible Java version). 
Following is my JDK information.


java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
Java HotSpot(TM) Server VM (build 1.5.0_07-b03, mixed mode)

Anyway I managed to build the source code after commenting out  one line 
in the pom.xml :-) .


Thanks,
Lasantha