>
> It is configured on the maven-compiler-plugin [1].

Do you mean archetype depends on maven-compiler-plugin? So, how can I use a
specific JDK version when I create a new project with archetype?

Bruce Wen

On Mon, Sep 10, 2018 at 2:20 PM Anders Hammar <[email protected]> wrote:

> The Java version is decided by the archetype you use. It is configured on
> the maven-compiler-plugin [1]. If not configured there is a default for
> maven-compiler-plugin. The default depends on which version of
> maven-compiler-plugin is used.
>
> When you import in Eclipse this configuration is read to configure the
> Eclipse project.
>
> [1]
>
> https://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html
>
> /Anders
>
> On Mon, Sep 10, 2018 at 2:09 PM Bruce Wen <[email protected]> wrote:
>
> > Hi,
> >
> > I used Maven 3.3.1. I created a new project with below commands:
> >
> > mvn archetype:generate -DgroupId=my.company.project
> -DartifactId=my-project
> > -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
> >
> > Then, I imported the generated project into eclipse and found it uses
> J2SE
> > -1.5.
> >
> > My question:
> > How is J2SE-1.5 decided?
> > Can we specify JDK version for new project?
> >
> > Thanks!
> > --
> > Bruce Wen (GuangMing)
> >
>


-- 
Bruce Wen (GuangMing)
-----------------------------------------------------------------------------------------------------------------
"Undertake not what you cannot perform, but be careful to keep your promise
- George Washington"
-----------------------------------------------------------------------------------------------------------------
Internet Email:[email protected]
LinkedIn:cn.linkedin.com/in/wengm
Blog:crest-boy.livejournal.com
MSN:[email protected]

Reply via email to