Thanks for the reply ... Fair enough! I thought maybe just by chance
someone might have known about the warning without additional text noise.

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
    <modelVersion>4.0.0</modelVersion>
    <artifactId>helloworld</artifactId>
    <version>0.0.0-SNAPSHOT</version>
    <packaging>jar</packaging>
    <groupId>com.snippet</groupId>
    <name>helloworld</name>
    <properties>
        <executable.name>helloworld</executable.name>
        <entrypoint.class>com.snippet.EntryPoint</entrypoint.class>
        <jdk.version>1.8</jdk.version>
        <maven.compiler.version>3.8.1</maven.compiler.version>
        <maven.shade.version>3.2.4</maven.shade.version>

        <encoding>UTF-8</encoding>
        <project.build.sourceEncoding>${encoding}</project.build.sourceEncoding>
        
<project.reporting.outputEncoding>${encoding}</project.reporting.outputEncoding>
        
<project.resources.sourceEncoding>${encoding}</project.resources.sourceEncoding>
    </properties>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>${maven.compiler.version}</version>
                <configuration>
                    <compilerArgs>
                        <arg>-Xlint:all</arg>
                    </compilerArgs>
                    <source>${jdk.version}</source>
                    <target>${jdk.version}</target>
                    <debug>true</debug>
                    <debuglevel>lines,vars,source</debuglevel>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>${maven.shade.version}</version>
                <executions>
                    <execution>
                        <id>second-shade</id>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <minimizeJar>true</minimizeJar>

<outputFile>${project.build.directory}/${executable.name}.jar</outputFile>
                            <transformers>
                                <transformer

implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                                    <manifestEntries>

<Main-Class>${entrypoint.class}</Main-Class>

<Build-Number>${project.version}</Build-Number>
                                    </manifestEntries>
                                </transformer>
                            </transformers>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
    <dependencies>
    </dependencies>
</project>


What is "[WARNING] /Users/aguedeney/Workspace/snippet/target/classes
(Is a directory)"?  How do I get rid of it?

[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ helloworld ---
[INFO] Building jar:
/Users/aguedeney/Workspace/snippet/target/helloworld-0.0.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-shade-plugin:3.2.4:shade (second-shade) @ helloworld ---
[INFO] Minimizing jar com.snippet:helloworld:jar:0.0.0-SNAPSHOT
[WARNING] /Users/aguedeney/Workspace/snippet/target/classes (Is a directory)
[INFO] Minimized 7 -> 7 (100%)
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ helloworld ---
[INFO] Installing
/Users/aguedeney/Workspace/vfy-snippet/target/helloworld-0.0.0-SNAPSHOT.jar
to 
/Users/aguedeney/.m2/repository/com/snippet/helloworld/0.0.0-SNAPSHOT/helloworld-0.0.0-SNAPSHOT.jar
[INFO] Installing /Users/aguedeney/Workspace/vfy-snippet/pom.xml to
/Users/aguedeney/.m2/repository/com/snippet/helloworld/0.0.0-SNAPSHOT/helloworld-0.0.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.816 s
[INFO] Finished at: 2020-09-20T22:13:44-03:00
[INFO] ------------------------------------------------------------------------


On Sun, Sep 20, 2020 at 9:40 PM Alexander Kriegisch <
[email protected]> wrote:

> I think it would be helpful to share some more information, ideally your
> full "hello world" project, so we can all see what you are talking
> about. Thank you.
> --
> Alexander Kriegisch
> https://scrum-master.de
>
> Alan Guedeney schrieb am 18.09.2020 05:56 (GMT +07:00):
>
> > WARNING …/myproject/target/classes (Is a directory) when
> > <minimizeJar>true</minimizeJar> is set ...
> >
> > This is a nuisance more than a bug (I hope). I see this warning even
> > when I do a simple "Helloworld" executable uber.jar using the
> > maven-shaded-plugin (latest to date).
> >
> > I want to get rid of this warning or correct my configuration. Does
> > anyone have any insight to this warning? Is anyone else getting this
> > warning.
> >
> >
> > Thanks -Alan
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to