Giter Club home page Giter Club logo

native2ascii-maven-plugin's Introduction

native2ascii-maven-plugin's People

Contributors

andham avatar bmarwell avatar dependabot[bot] avatar dmatej avatar krosenvold avatar slachiewicz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

native2ascii-maven-plugin's Issues

Sonatype repository checks fail to test gpg signs of javadoc and sources packages

Problem: when releasing a version, packages are signed with GPG keys, but these packages do not exist yet. That causes that uploaded jar files are not uploaded with their asc files and Sonatype repo refuses to close the repository.

Version 2.0.0 was released without javadoc and sources - it is not a problem, because in this case the files are not useful for developers, but it would be more correct to have also these files in Maven Central.

Mark all Mojos as ThreadSafe

We are trying to use this plugin with a parallel Maven build. But it seems that the threadSafe Annotation is missing in the native2ascii Mojos.

image

Using in Windows ends with PatternSyntaxException

In Windows plugin throws PatternSyntaxException.
Native2AsciiMojoTest.testFile failed.

Caused by: java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 3
C:\Users\krpata\workspace\cz.aura.isl.mcc.i18n-TRUNK\src\main\resources
^
at java.util.regex.Pattern.error(Pattern.java:1955)
at java.util.regex.Pattern.escape(Pattern.java:2471)
at java.util.regex.Pattern.atom(Pattern.java:2198)
at java.util.regex.Pattern.sequence(Pattern.java:2130)
at java.util.regex.Pattern.expr(Pattern.java:1996)
at java.util.regex.Pattern.compile(Pattern.java:1696)
at java.util.regex.Pattern.(Pattern.java:1351)
at java.util.regex.Pattern.compile(Pattern.java:1028)
at java.lang.String.replaceFirst(String.java:2178)
at org.codehaus.mojo.native2ascii.mojo.Native2AsciiMojo.executeTransformation(Native2AsciiMojo.java:75)
at org.codehaus.mojo.native2ascii.mojo.AbstractNative2AsciiMojo.execute(AbstractNative2AsciiMojo.java:61)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)

Security Vulnerabilities

There are security vulnerabilities with the following transitive dependencies
• Group: org.apache.struts Artifact: struts-core Version: 1.3.8
• Group: org.apache.velocity Artifact: velocity Version: 1.7

Unfortunately, there is no way to override with a higher version of these dependencies since there isn't one available. Is there a suggested workaround so I can avoid using these dependencies?

It looks like to fix the issue, you need to switch to struts2-core and velocity-engine-core.

Make output more clean and readable or add an option for that

Hi, thank you for supporting this plugin!

I'd like to suggest a little improvement: could we make make the output is more readable/easy to understand from the first sight?

Compare the output from the old plugin:

[INFO] --- native2ascii-maven-plugin:1.0-beta-1:native2ascii (default) @ mystamps ---
[INFO] Includes: [**/*.properties]
[INFO] Excludes: []
[INFO] Processing /home/travis/build/php-coder/mystamps/target/classes/ru/mystamps/i18n/SpringSecurityMessages_ru.properties
[INFO] Processing /home/travis/build/php-coder/mystamps/target/classes/ru/mystamps/i18n/MailTemplates_ru.properties
[INFO] Processing /home/travis/build/php-coder/mystamps/target/classes/ru/mystamps/i18n/SpringSecurityMessages.properties
[INFO] Processing /home/travis/build/php-coder/mystamps/target/classes/ru/mystamps/i18n/MailTemplates.properties
[INFO] Processing /home/travis/build/php-coder/mystamps/target/classes/ru/mystamps/i18n/ValidationMessages.properties
[INFO] Processing /home/travis/build/php-coder/mystamps/target/classes/ru/mystamps/i18n/ValidationMessages_ru.properties
[INFO] Processing /home/travis/build/php-coder/mystamps/target/classes/ru/mystamps/i18n/Messages_ru.properties
[INFO] Processing /home/travis/build/php-coder/mystamps/target/classes/ru/mystamps/i18n/Messages.properties

and the new one:

[INFO] --- native2ascii-maven-plugin:2.0.1:resources (utf8-to-latin1) @ mystamps ---
[INFO] Includes: [**/*.properties]
[INFO] Excludes: []
[INFO] Processing /home/travis/build/php-coder/mystamps/src/main/resources/ru/mystamps/i18n/ValidationMessages_ru.properties
[INFO] Converting: '/home/travis/build/php-coder/mystamps/src/main/resources/ru/mystamps/i18n/ValidationMessages_ru.properties' to: '/home/travis/build/php-coder/mystamps/target/classes/classes/ru/mystamps/i18n/ValidationMessages_ru.properties'
[INFO] Processing /home/travis/build/php-coder/mystamps/src/main/resources/ru/mystamps/i18n/MailTemplates.properties
[INFO] Converting: '/home/travis/build/php-coder/mystamps/src/main/resources/ru/mystamps/i18n/MailTemplates.properties' to: '/home/travis/build/php-coder/mystamps/target/classes/classes/ru/mystamps/i18n/MailTemplates.properties'
[INFO] Processing /home/travis/build/php-coder/mystamps/src/main/resources/ru/mystamps/i18n/ValidationMessages.properties
[INFO] Converting: '/home/travis/build/php-coder/mystamps/src/main/resources/ru/mystamps/i18n/ValidationMessages.properties' to: '/home/travis/build/php-coder/mystamps/target/classes/classes/ru/mystamps/i18n/ValidationMessages.properties'
[INFO] Processing /home/travis/build/php-coder/mystamps/src/main/resources/ru/mystamps/i18n/MailTemplates_ru.properties
[INFO] Converting: '/home/travis/build/php-coder/mystamps/src/main/resources/ru/mystamps/i18n/MailTemplates_ru.properties' to: '/home/travis/build/php-coder/mystamps/target/classes/classes/ru/mystamps/i18n/MailTemplates_ru.properties'
[INFO] Processing /home/travis/build/php-coder/mystamps/src/main/resources/ru/mystamps/i18n/SpringSecurityMessages_ru.properties
[INFO] Converting: '/home/travis/build/php-coder/mystamps/src/main/resources/ru/mystamps/i18n/SpringSecurityMessages_ru.properties' to: '/home/travis/build/php-coder/mystamps/target/classes/classes/ru/mystamps/i18n/SpringSecurityMessages_ru.properties'
[INFO] Processing /home/travis/build/php-coder/mystamps/src/main/resources/ru/mystamps/i18n/Messages.properties
[INFO] Converting: '/home/travis/build/php-coder/mystamps/src/main/resources/ru/mystamps/i18n/Messages.properties' to: '/home/travis/build/php-coder/mystamps/target/classes/classes/ru/mystamps/i18n/Messages.properties'
[INFO] Processing /home/travis/build/php-coder/mystamps/src/main/resources/ru/mystamps/i18n/SpringSecurityMessages.properties
[INFO] Converting: '/home/travis/build/php-coder/mystamps/src/main/resources/ru/mystamps/i18n/SpringSecurityMessages.properties' to: '/home/travis/build/php-coder/mystamps/target/classes/classes/ru/mystamps/i18n/SpringSecurityMessages.properties'
[INFO] Processing /home/travis/build/php-coder/mystamps/src/main/resources/ru/mystamps/i18n/Messages_ru.properties
[INFO] Converting: '/home/travis/build/php-coder/mystamps/src/main/resources/ru/mystamps/i18n/Messages_ru.properties' to: '/home/travis/build/php-coder/mystamps/target/classes/classes/ru/mystamps/i18n/Messages_ru.properties'

The differences are:

  • more messages
  • messages are longer

I'd suggest something like that:

[INFO] --- native2ascii-maven-plugin:2.0.1:resources (utf8-to-latin1) @ mystamps ---
[INFO] Includes: [**/*.properties]
[INFO] Excludes: []
[INFO] Source Dir: src/main/resources/ru/mystamps/i18n
[INFO] Target Dir: target/classes/ru/mystamps/i18n
[INFO] Converting: Messages.properties
[INFO] Converting: Messages_ru.properties

WDYT?

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.