tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

how to use it?

Open liudaolunboluo opened this issue 3 years ago • 2 comments

https://github.com/eugenp/tutorials/tree/master/lombok-modules/lombok-custom

after I configure it in the POM file in my own project:

Could not find artifact com.sun:tools:jar:11.0.12 at specified path /Library/Java/JavaVirtualMachines/jdk-11.0.12.jdk/Contents/Home/../lib/tools.jar -> [Help 1]

So how do I use this annotation?

liudaolunboluo avatar Jul 08 '22 10:07 liudaolunboluo

I removed it:

<profiles>
    <profile>
        <id>default-profile</id>
        <activation>
            <activeByDefault>true</activeByDefault>
            <file>
                <exists>${java.home}/../lib/tools.jar</exists>
            </file>
        </activation>
        <dependencies>
            <dependency>
                <groupId>com.sun</groupId>
                <artifactId>tools</artifactId>
                <version>${java.version}</version>
                <scope>system</scope>
                <systemPath>${java.home}/../lib/tools.jar</systemPath>
            </dependency>
        </dependencies>
    </profile>
</profiles>

No more error reporting when mvn install,but class file don't have Singleton code

liudaolunboluo avatar Jul 08 '22 10:07 liudaolunboluo

Hi @liudaolunboluo , Note that vast majority of our modules are still JDK8 based. I see you use JDK11. Please try with JDK8. Hope this helps.

kwoyke avatar Jul 14 '22 13:07 kwoyke

Closed due to lack of activity.

ulisseslima avatar Aug 09 '22 14:08 ulisseslima