You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Johannes Hoechstaedter <j....@memocomp.de> on 2008/07/03 09:58:41 UTC
Java version
Hi everybody,
I noticed, that my compiled block has always java version 1.5. I need it
with 1.4. What should I do? I build my block by "mvn install".
cheers
Johannes
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Java version
Posted by Johannes Hoechstaedter <j....@memocomp.de>.
End of thred is, that I have
Error creating bean with name 'de.memocomp.myBlock1.service' running my
webapp on Tomcat 5.0 with java 1.4.
Everything was fine with Tomact 5.5 and java 1.5.
Johannes Hoechstaedter schrieb:
> Hi,
>
> now here is a solution I can live with:
>
> I have edited: the maven-jar-plugin and simply added
> <Build-Jdk>1.4</Build-Jdk> to the manifest. That works for me.
>
> bye
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Java version
Posted by Johannes Hoechstaedter <j....@memocomp.de>.
Hi,
now here is a solution I can live with:
I have edited: the maven-jar-plugin and simply added
<Build-Jdk>1.4</Build-Jdk> to the manifest. That works for me.
bye
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Java version
Posted by Johannes Hoechstaedter <j....@memocomp.de>.
;) Yes, and you can't say that it is solved twice because tomcat 5.0
with 1.4 doesn't want to start the application...
cheers
Johannes Hoechstaedter schrieb:
> Well, you can't say that it is solved. When I want to build my webapp,
> I have to switch to 1.5 again. Otherwise I get fatal errors.
>
> What I am wondering is, that cocoon hasn't a maven-compiler-plugin by
> default, so it doesn't need this, or?
>
> Robby Pelssers schrieb:
>> Strange that the compiler-plugin failed to do the job...
>>
>>
>> http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compi
>> ler-source-and-target.html
>>
>> Well, anyway. Glad you managed to solve your problem.
>>
>> Cheers,
>> Robby
>>
>> -----Original Message-----
>> From: Johannes Hoechstaedter [mailto:j.hoechstaedter@memocomp.de]
>> Sent: donderdag 3 juli 2008 10:43
>> To: users@cocoon.apache.org
>> Subject: Re: Java version
>>
>> I did it. I changed my environment variable JAVA_HOME to 1.4.
>>
>> Nevertheless I would be happy if some one knows another solution how
>> to configure the maven build.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Java version
Posted by Johannes Hoechstaedter <j....@memocomp.de>.
Well, you can't say that it is solved. When I want to build my webapp, I
have to switch to 1.5 again. Otherwise I get fatal errors.
What I am wondering is, that cocoon hasn't a maven-compiler-plugin by
default, so it doesn't need this, or?
Robby Pelssers schrieb:
> Strange that the compiler-plugin failed to do the job...
>
>
> http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compi
> ler-source-and-target.html
>
> Well, anyway. Glad you managed to solve your problem.
>
> Cheers,
> Robby
>
> -----Original Message-----
> From: Johannes Hoechstaedter [mailto:j.hoechstaedter@memocomp.de]
> Sent: donderdag 3 juli 2008 10:43
> To: users@cocoon.apache.org
> Subject: Re: Java version
>
> I did it. I changed my environment variable JAVA_HOME to 1.4.
>
> Nevertheless I would be happy if some one knows another solution how to
> configure the maven build.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: Java version
Posted by Robby Pelssers <ro...@ciber.nl>.
Strange that the compiler-plugin failed to do the job...
http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compi
ler-source-and-target.html
Well, anyway. Glad you managed to solve your problem.
Cheers,
Robby
-----Original Message-----
From: Johannes Hoechstaedter [mailto:j.hoechstaedter@memocomp.de]
Sent: donderdag 3 juli 2008 10:43
To: users@cocoon.apache.org
Subject: Re: Java version
I did it. I changed my environment variable JAVA_HOME to 1.4.
Nevertheless I would be happy if some one knows another solution how to
configure the maven build.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Java version
Posted by Johannes Hoechstaedter <j....@memocomp.de>.
I did it. I changed my environment variable JAVA_HOME to 1.4.
Nevertheless I would be happy if some one knows another solution how to
configure the maven build.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Java version
Posted by Johannes Hoechstaedter <j....@memocomp.de>.
Hi Robby,
thank you for your quick reply, but It doesn't work. I added:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0</version>
<configuration>
<source>1.4</source>
<target>1.4</target>
</configuration>
</plugin>
to my pom.xml of myBlock, did a "mvn clean install", and looked into my
newly generated jar file in the target directory, but the version in the
manifets file ist still the same. 1.5.0_... Could it be path issue?
cheers
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: Java version
Posted by Robby Pelssers <ro...@ciber.nl>.
In the pom, You can define a the plugin below and just set the
<source> and <target> to your needs.
Cheers,
Robby Pelssers
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
...
-----Original Message-----
From: Johannes Hoechstaedter [mailto:j.hoechstaedter@memocomp.de]
Sent: donderdag 3 juli 2008 9:59
To: users@cocoon.apache.org
Subject: Java version
Hi everybody,
I noticed, that my compiled block has always java version 1.5. I need it
with 1.4. What should I do? I build my block by "mvn install".
cheers
Johannes
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org