Re: Maven & Github codespaces

2024-04-01 Thread Gary Gregory
How about XInclude?

Gary

On Mon, Apr 1, 2024, 7:40 AM Tommy Svensson  wrote:

> Hello Tamás,
>
> The problem is in mixin-maven-plugin which I found on GitHub and is 5
> years old! In this world that is a lot :-). It suddenly fails to find a
> "StringUtils" package that does not seem to exist in Maven Central. I
> suspect that StringUtils is something that should never have been submitted
> to maven-central, and have now been removed.
>
> So I'm looking for some other solution to re-use pom segments, in a future
> compatible way.
>
> /Tommy
> __
> Tommy Svensson
> to...@natusoft.se
>
>
>
> Från: Tamás Cservenák 
> Svara: Maven Users List 
> Datum: 1 april 2024 at 13:02:43
> Till: Maven Users List 
> Cc: Bernd Eckenfels 
> Ämne:  Re: Maven & Github codespaces
>
> Hi Tommy,
>
> would be good for reference (maybe someone else hits a similar issue) to
> have on ML the "solution" as well. At least some description of what
> exactly made you think "forgett maven on GitHub codespaces" and what you
> did to fix this.
>
> Thanks
> T
>
> On Mon, Apr 1, 2024 at 12:40 PM Tommy Svensson 
> wrote:
>
> > My brain screwed upp here! I incorrectly took this to be a maven issue!
> I
> > have just figured out that Maven has nothing to do with this problem!
> > Sorry!
> >
> > When I came to that conclusion things made much more sense :-).
> > __
> > Tommy Svensson
> > to...@natusoft.se
> >
> >
> >
> > Från: Bernd Eckenfels 
> > Svara: Maven Users List 
> > Datum: 31 mars 2024 at 23:59:20
> > Till: users@maven.apache.org 
> > Ämne: Re: Maven & Github codespaces
> >
> > Tommy Svensson wrote on 31. Mar 2024 14:52 (GMT +02:00):
> >
> > > …I have old jars somewhere! I should clean my
> > > ~/.m2/repository!
> >
> > It should work regardless what you have on your local reponczche since
> > it’s versioned. But other question how is that related to what’s in a
> fresh
> > codespace? Something goes not check out. Or are you saying it does
> never
> > work?
> >
> > Gruß
> > Bernd
> > —
> > https://bernd.eckenfels.net
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
>


Re: Maven & Github codespaces

2024-04-01 Thread Tamás Cservenák
Ok,

I _assumed this_ but hushed away when you said "works on my workstation".
Obviously NOT with 3.9.6, but some older Maven, as all Maven 3.9.x release
notes have this entry:
https://maven.apache.org/docs/3.9.6/release-notes.html#potentially-breaking-core-changes-if-migrating-from-3-8-x
(2nd bullet).

So if plugin is not fixed, you can fix it by adding explicitly dependency
onto plexus-utils in plugin dependencies entry

HTH
T

On Mon, Apr 1, 2024 at 1:39 PM Tommy Svensson  wrote:

> Hello Tamás,
>
> The problem is in mixin-maven-plugin which I found on GitHub and is 5
> years old! In this world that is a lot :-). It suddenly fails to find a
> "StringUtils" package that does not seem to exist in Maven Central. I
> suspect that StringUtils is something that should never have been submitted
> to maven-central, and have now been removed.
>
> So I'm looking for some other solution to re-use pom segments, in a future
> compatible way.
>
> /Tommy
>
> __
>
> Tommy Svensson
>
> to...@natusoft.se
>
>
>
>
> Från: Tamás Cservenák  
> Svara: Maven Users List  
> Datum: 1 april 2024 at 13:02:43
> Till: Maven Users List  
> Cc: Bernd Eckenfels  
> Ämne:  Re: Maven & Github codespaces
>
> Hi Tommy,
>
> would be good for reference (maybe someone else hits a similar issue) to
> have on ML the "solution" as well. At least some description of what
> exactly made you think "forgett maven on GitHub codespaces" and what you
> did to fix this.
>
> Thanks
> T
>
> On Mon, Apr 1, 2024 at 12:40 PM Tommy Svensson  wrote:
>
> > My brain screwed upp here! I incorrectly took this to be a maven issue!
> I
> > have just figured out that Maven has nothing to do with this problem!
> > Sorry!
> >
> > When I came to that conclusion things made much more sense :-).
> > __________
> > Tommy Svensson
> > to...@natusoft.se
> >
> >
> >
> > Från: Bernd Eckenfels 
> > Svara: Maven Users List 
> > Datum: 31 mars 2024 at 23:59:20
> > Till: users@maven.apache.org 
> > Ämne: Re: Maven & Github codespaces
> >
> > Tommy Svensson wrote on 31. Mar 2024 14:52 (GMT +02:00):
> >
> > > …I have old jars somewhere! I should clean my
> > > ~/.m2/repository!
> >
> > It should work regardless what you have on your local reponczche since
> > it’s versioned. But other question how is that related to what’s in a
> fresh
> > codespace? Something goes not check out. Or are you saying it does never
> > work?
> >
> > Gruß
> > Bernd
> > —
> > https://bernd.eckenfels.net
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Maven & Github codespaces

2024-04-01 Thread Tommy Svensson
Hello Tamás,

The problem is in mixin-maven-plugin which I found on GitHub and is 5 years 
old! In this world that is a lot :-). It suddenly fails to find a "StringUtils" 
package that does not seem to exist in Maven Central. I suspect that 
StringUtils is something that should never have been submitted to 
maven-central, and have now been removed.

So I'm looking for some other solution to re-use pom segments, in a future 
compatible way.

/Tommy
__
Tommy Svensson
to...@natusoft.se



Från: Tamás Cservenák 
Svara: Maven Users List 
Datum: 1 april 2024 at 13:02:43
Till: Maven Users List 
Cc: Bernd Eckenfels 
Ämne:  Re: Maven & Github codespaces

Hi Tommy,  

would be good for reference (maybe someone else hits a similar issue) to  
have on ML the "solution" as well. At least some description of what  
exactly made you think "forgett maven on GitHub codespaces" and what you  
did to fix this.  

Thanks  
T  

On Mon, Apr 1, 2024 at 12:40 PM Tommy Svensson  wrote:  

> My brain screwed upp here! I incorrectly took this to be a maven issue! I  
> have just figured out that Maven has nothing to do with this problem!  
> Sorry!  
>  
> When I came to that conclusion things made much more sense :-).  
> __  
> Tommy Svensson  
> to...@natusoft.se  
>  
>  
>  
> Från: Bernd Eckenfels   
> Svara: Maven Users List   
> Datum: 31 mars 2024 at 23:59:20  
> Till: users@maven.apache.org   
> Ämne: Re: Maven & Github codespaces  
>  
> Tommy Svensson wrote on 31. Mar 2024 14:52 (GMT +02:00):  
>  
> > …I have old jars somewhere! I should clean my  
> > ~/.m2/repository!  
>  
> It should work regardless what you have on your local reponczche since  
> it’s versioned. But other question how is that related to what’s in a fresh  
> codespace? Something goes not check out. Or are you saying it does never  
> work?  
>  
> Gruß  
> Bernd  
> —  
> https://bernd.eckenfels.net  
> -  
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org  
> For additional commands, e-mail: users-h...@maven.apache.org


Re: Maven & Github codespaces

2024-04-01 Thread Tamás Cservenák
Hi Tommy,

would be good for reference (maybe someone else hits a similar issue) to
have on ML the "solution" as well. At least some description of what
exactly made you think "forgett maven on GitHub codespaces" and what you
did to fix this.

Thanks
T

On Mon, Apr 1, 2024 at 12:40 PM Tommy Svensson  wrote:

> My brain screwed upp here! I incorrectly took this to be a maven issue! I
> have just figured out that Maven has nothing to do with this problem!
> Sorry!
>
> When I came to that conclusion things made much more sense :-).
> __
> Tommy Svensson
> to...@natusoft.se
>
>
>
> Från: Bernd Eckenfels 
> Svara: Maven Users List 
> Datum: 31 mars 2024 at 23:59:20
> Till: users@maven.apache.org 
> Ämne:  Re: Maven & Github codespaces
>
> Tommy Svensson wrote on 31. Mar 2024 14:52 (GMT +02:00):
>
> > …I have old jars somewhere! I should clean my
> > ~/.m2/repository!
>
> It should work regardless what you have on your local reponczche since
> it’s versioned. But other question how is that related to what’s in a fresh
> codespace? Something goes not check out. Or are you saying it does never
> work?
>
> Gruß
> Bernd
> —
> https://bernd.eckenfels.net
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org


Re: Maven & Github codespaces

2024-04-01 Thread Tommy Svensson
My brain screwed upp here! I incorrectly took this to be a maven issue! I have 
just figured out that Maven has nothing to do with this problem! Sorry! 

When I came to that conclusion things made much more sense :-).
__
Tommy Svensson
to...@natusoft.se



Från: Bernd Eckenfels 
Svara: Maven Users List 
Datum: 31 mars 2024 at 23:59:20
Till: users@maven.apache.org 
Ämne:  Re: Maven & Github codespaces

Tommy Svensson wrote on 31. Mar 2024 14:52 (GMT +02:00):  

> …I have old jars somewhere! I should clean my  
> ~/.m2/repository!   

It should work regardless what you have on your local reponczche since it’s 
versioned. But other question how is that related to what’s in a fresh 
codespace? Something goes not check out. Or are you saying it does never work?  

Gruß  
Bernd  
—  
https://bernd.eckenfels.net  
-  
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org  
For additional commands, e-mail: users-h...@maven.apache.org

Re: Maven & Github codespaces

2024-03-31 Thread Bernd Eckenfels
Tommy Svensson wrote on 31. Mar 2024 14:52 (GMT +02:00):

> …I have old jars somewhere! I should clean my
> ~/.m2/repository! 

It should work regardless what you have on your local reponczche since it’s 
versioned. But other question how is that related to what’s in a fresh 
codespace? Something goes not check out. Or are you saying it does never work?

Gruß
Bernd
— 
https://bernd.eckenfels.netOops! 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
to...@natusoft.se



Från: Tamás Cservenák 
Svara: Maven Users List 
Datum: 28 mars 2024 at 13:15:24
Till: Maven Users List 
Ä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  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  
> to...@natusoft.se (mailto:to...@natusoft.se)  
>  
> På 27 mars 2024 till 18:05:18, Mantas Gridinas (mgridi...@gmail.com  
> (mailto:mgridi...@gmail.com)) 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  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  
> > > to...@natusoft.se (mailto:to...@natusoft.se)  
> > >  
> > >  
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Re: Maven & Github codespaces

2024-03-31 Thread Tommy Svensson
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
to...@natusoft.se



Från: Tamás Cservenák 
Svara: Maven Users List 
Datum: 28 mars 2024 at 13:15:24
Till: Maven Users List 
Ä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  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  
> to...@natusoft.se (mailto:to...@natusoft.se)  
>  
> På 27 mars 2024 till 18:05:18, Mantas Gridinas (mgridi...@gmail.com  
> (mailto:mgridi...@gmail.com)) 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  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  
> > > to...@natusoft.se (mailto:to...@natusoft.se)  
> > >  
> > >  
>


Re: Maven & Github codespaces

2024-03-28 Thread Tamás Cservenák
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  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
> to...@natusoft.se (mailto:to...@natusoft.se)
>
> På 27 mars 2024 till 18:05:18, Mantas Gridinas (mgridi...@gmail.com
> (mailto:mgridi...@gmail.com)) 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  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
> > > to...@natusoft.se (mailto:to...@natusoft.se)
> > >
> > >
>


Re: Maven & Github codespaces

2024-03-28 Thread Tommy Svensson
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
to...@natusoft.se (mailto:to...@natusoft.se)

På 27 mars 2024 till 18:05:18, Mantas Gridinas (mgridi...@gmail.com 
(mailto:mgridi...@gmail.com)) 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  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
> > to...@natusoft.se (mailto:to...@natusoft.se)
> >
> >


Re: Maven & Github codespaces

2024-03-27 Thread Tommy Svensson
Yes, Im sure. I have deleted and recreated and still get JDK 21, with an 
optional JDK 17 being avilable, but the "java" command is a link to 21.

BR / Tommy

__
Tommy Svensson
to...@natusoft.se (mailto:to...@natusoft.se)

På 27 mars 2024 till 18:05:18, Mantas Gridinas (mgridi...@gmail.com 
(mailto:mgridi...@gmail.com)) 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  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
> > to...@natusoft.se (mailto:to...@natusoft.se)
> >
> >


Re: Maven & Github codespaces

2024-03-27 Thread Mantas Gridinas
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  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
> to...@natusoft.se (mailto:to...@natusoft.se)
>
>


Re: Maven & Github codespaces

2024-03-27 Thread Tamás Cservenák
Howdy,

Am using 3.9.6 on 21 on a regular basis, and Maven per se does nor have
this issue.
How did you install Maven 3.9.6? Did you verify that the download is not
damaged for example?

T

On Wed, Mar 27, 2024 at 6:00 PM Tommy Svensson  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
> to...@natusoft.se (mailto:to...@natusoft.se)
>
>