|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
Java versionHi 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@... For additional commands, e-mail: users-help@... |
|
|
RE: Java versionIn 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@...] Sent: donderdag 3 juli 2008 9:59 To: users@... 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@... For additional commands, e-mail: users-help@... --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Java versionHi 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@... For additional commands, e-mail: users-help@... |
|
|
Re: Java versionI 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@... For additional commands, e-mail: users-help@... |
|
|
RE: Java versionStrange 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@...] Sent: donderdag 3 juli 2008 10:43 To: users@... 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@... For additional commands, e-mail: users-help@... --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Java versionWell, 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@...] > Sent: donderdag 3 juli 2008 10:43 > To: users@... > 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@... > For additional commands, e-mail: users-help@... > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Java version;) 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@...] >> Sent: donderdag 3 juli 2008 10:43 >> To: users@... >> 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@... >> For additional commands, e-mail: users-help@... >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@... >> For additional commands, e-mail: users-help@... >> >> >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Java versionHi,
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@... For additional commands, e-mail: users-help@... |
|
|
Re: Java versionEnd 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@... > For additional commands, e-mail: users-help@... > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free Forum Powered by Nabble | Forum Help |