Oops! My bad! I assumed that org.codehaus.plexus.utils.StringUtils was part of 
maven! I'm building Groovy code and org.codehaus... is where Groovy used to be, 
until CodeHaus closed down and Groovy moved to apache.org! I have old jars 
somewhere! I should clean my ~/.m2/repository! 

/Tommy
______________________
Tommy Svensson
[email protected]



Från: Tamás Cservenák <[email protected]>
Svara: Maven Users List <[email protected]>
Datum: 28 mars 2024 at 13:15:24
Till: Maven Users List <[email protected]>
Ämne:  Re: Maven & Github codespaces

Yes, it works! I just said a few emails ago that I am using Maven 3.9.6 on  
Java 21 since that Java was out.  

T  

On Thu, Mar 28, 2024 at 12:47 PM Tommy Svensson <[email protected]> wrote:  

> I can add that on my computer I can do "mvn wrapper:wrapper" to install  
> mvnw, and then build using that problems, but on github codespaces the  
> wrapper instalation fails due to the same "StringUtils" failure!  
>  
> Do maven support the higher number versions of the JDK ?  
>  
> ______________________  
> Tommy Svensson  
> [email protected] (mailto:[email protected])  
>  
> På 27 mars 2024 till 18:05:18, Mantas Gridinas ([email protected]  
> (mailto:[email protected])) skrev:  
>  
> > Are you sure jdk21 is default on codespaces? An hour ago i cloned a java  
> > repository only to find that codespaces comes with 11 by default. Whats  
> > your output of java -version?  
> >  
> > Regardless, you can download your needed jdk from adoptium, and setup  
> both  
> > $PATH and $JAVA_HOME to point to the downloaded jdk just as you would on  
> > normal machine.  
> >  
> >  
> > On Wed, Mar 27, 2024, 19:01 Tommy Svensson <[email protected]> wrote:  
> >  
> > > Hello Maven users!  
> > >  
> > > I am having problem building with maven on a GitHub codespace!  
> > >  
> > > It complains about; Caused by: java.lang.ClassNotFoundException:  
> > > org.codehaus.plexus.util.StringUtils  
> > >  
> > > I believe this is due to only JD17 and JDK21 is available with JDK21  
> being  
> > > the default.  
> > >  
> > > My problem is that locally on my private machine it builds fine, but on  
> > > GitHub spaces I get:  
> > >  
> > > Caused by: java.lang.ClassNotFoundException:  
> > > org.codehaus.plexus.util.StringUtils  
> > > at  
> > >  
> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
>   
> > > at  
> > >  
> org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
>   
> > > at  
> > >  
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
>   
> > > at  
> > >  
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
>   
> > >  
> > > The maven version is:  
> > > Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)  
> > >  
> > > Is there any known solution for this combination / situation or is it  
> just  
> > > "forgett maven on GitHub codespaces" ?  
> > >  
> > > Best Regards,  
> > > Tommy Svensson  
> > > ______________________  
> > > Tommy Svensson  
> > > [email protected] (mailto:[email protected])  
> > >  
> > >  
>

Reply via email to