Code Monkey home page Code Monkey logo

Comments (7)

pmwmedia avatar pmwmedia commented on May 20, 2024 1

Thank you! I will analyze the behavior of Netbeans. Maybe I'm going to remove the ZIP archive from Maven Central Repository.

from tinylog.

pmwmedia avatar pmwmedia commented on May 20, 2024 1

I just tested it on my computer with Netbeans 8.2. Fresh download from: https://netbeans.org/downloads/start.html?platform=zip&lang=en&option=javase. On my computer, Netbeans leaves the type empty and downloads the tinylog JAR.

Update: Netbeans uses ZIP type, if you use the search, but the default JAR type, if you use the autocomplete function in the form itself.

from tinylog.

pmwmedia avatar pmwmedia commented on May 20, 2024 1

Solved with release of tinylog 1.3 rc1.

from tinylog.

nureyev avatar nureyev commented on May 20, 2024

Doing a manual install to the local repository works, but might not be the best solution.

Update: The following workaround fetches the artifact from Maven Central and installs correctly:

Add the dependency to pom.xml but change <type>zip</type> to <type>jar</type>

<dependency>
    <groupId>org.tinylog</groupId>
    <artifactId>tinylog</artifactId>
    <version>1.2</version>
    <type>jar</type>
</dependency>

from tinylog.

pmwmedia avatar pmwmedia commented on May 20, 2024

Which IDE and Maven version are you using? I have tried to reproduce the problem with a clean and empty Maven repository. Maven 3.3.3 on Eclipse has automatically fetched and downloaded the tinylog JAR and no ZIP file.

My POM:

<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>
  <groupId>example</groupId>
  <artifactId>app</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <dependencies>
  	<dependency>
  		<groupId>org.tinylog</groupId>
  		<artifactId>tinylog</artifactId>
  		<version>1.2</version>
  	</dependency>
  </dependencies>
</project>

tinylog files downloaded by Maven:

tinylog-1.2.jar
tinylog-1.2.jar.sha1
tinylog-1.2.pom
tinylog-1.2.pom.sha1

Did you write <type>zip</type> in your pom.xml before? In this case it would be correct that Maven has downloaded a ZIP file as it was requested. Usually I don't define the type, because Maven chooses JAR by default.

from tinylog.

nureyev avatar nureyev commented on May 20, 2024

Thanks for the reply.

NetBeans 8.2 (all plugins updated as of today)
Maven 3.5.0
maven-dependency-plugin:2.6
maven-resources-plugin:2.6
maven-compiler-plugin:3.1

When you right-click on Dependencies in the Project window and click Add Dependency... to add in Tinylog, it is possible NetBeans is filling in an inappropriate <type>, which Eclipse does not do.

My workaround was to change the type in the Add dependency dialog from the default of zip to jar after I ran the query to download Tinylog from the Maven Central remote repository.

add_dependency

from tinylog.

github-actions avatar github-actions commented on May 20, 2024

This closed issue has been locked automatically. However, please feel free to file a new issue.

from tinylog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.