Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling error (maven) #2

Closed
brescia123 opened this issue Nov 21, 2013 · 9 comments
Closed

Compiling error (maven) #2

brescia123 opened this issue Nov 21, 2013 · 9 comments

Comments

@brescia123
Copy link

Hi, when I run mvn assembly:single I get this error:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.171s
[INFO] Finished at: Thu Nov 21 18:45:59 CET 2013
[INFO] Final Memory: 7M/108M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single (default-cli) on project android_contentprovider_generator: Error reading assemblies: Descriptor with ID 'bundle' not found -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Can you help me?
Thanks!

@BoD
Copy link
Owner

BoD commented Nov 21, 2013

I just pushed an update to the pom.xml that should fix the issue. Please tell me if it works for you.

@brescia123
Copy link
Author

Thank you very much! I'll try later and I'll let you know if it works!
Il 21/nov/2013 20:06 "Benoit Lubek" notifications@github.com ha scritto:

I just pushed an update to the pom.xml that should fix the issue. Please
tell me if it works for you.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-29013384
.

@brescia123
Copy link
Author

I can now compile, but when I run the application it returns me this error:

mbp-di-giacomo:etc bear$ java -jar
android-contentprovider-generator-1.2-bundle.jar -i sample -o source

Errore: impossibile trovare o caricare la classe principale
org.jraf.androidcontentprovidergenerator.Main

meaning that it can't find the main class!

Giacomo Bresciani
brescia123@gmail.com

2013/11/21 Giacomo Bresciani brescia123@gmail.com

Thank you very much! I'll try later and I'll let you know if it works!
Il 21/nov/2013 20:06 "Benoit Lubek" notifications@github.com ha scritto:

I just pushed an update to the pom.xml that should fix the issue. Please

tell me if it works for you.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-29013384
.

@brescia123
Copy link
Author

Solved! compiling it with eclipse instead of using "mvn assembly:single"
returns a jar that works!
Thank you so much for your help! It was fundamental!

Giacomo Bresciani
brescia123@gmail.com

2013/11/21 Giacomo Bresciani brescia123@gmail.com

I can now compile, but when I run the application it returns me this error:

mbp-di-giacomo:etc bear$ java -jar
android-contentprovider-generator-1.2-bundle.jar -i sample -o source

Errore: impossibile trovare o caricare la classe principale
org.jraf.androidcontentprovidergenerator.Main

meaning that it can't find the main class!

Giacomo Bresciani
brescia123@gmail.com

2013/11/21 Giacomo Bresciani brescia123@gmail.com

Thank you very much! I'll try later and I'll let you know if it works!
Il 21/nov/2013 20:06 "Benoit Lubek" notifications@github.com ha
scritto:

I just pushed an update to the pom.xml that should fix the issue. Please

tell me if it works for you.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-29013384
.

@brescia123
Copy link
Author

Sorry, I'll annoy you for the last time: I can't use double or float as
types for the fields?
Thanks!

Giacomo Bresciani
brescia123@gmail.com

2013/11/21 Giacomo Bresciani brescia123@gmail.com

Solved! compiling it with eclipse instead of using "mvn assembly:single"
returns a jar that works!
Thank you so much for your help! It was fundamental!

Giacomo Bresciani
brescia123@gmail.com

2013/11/21 Giacomo Bresciani brescia123@gmail.com

I can now compile, but when I run the application it returns me this
error:

mbp-di-giacomo:etc bear$ java -jar
android-contentprovider-generator-1.2-bundle.jar -i sample -o source

Errore: impossibile trovare o caricare la classe principale
org.jraf.androidcontentprovidergenerator.Main

meaning that it can't find the main class!

Giacomo Bresciani
brescia123@gmail.com

2013/11/21 Giacomo Bresciani brescia123@gmail.com

Thank you very much! I'll try later and I'll let you know if it works!
Il 21/nov/2013 20:06 "Benoit Lubek" notifications@github.com ha
scritto:

I just pushed an update to the pom.xml that should fix the issue. Please

tell me if it works for you.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-29013384
.

@BoD
Copy link
Owner

BoD commented Nov 22, 2013

1/ You can use "float" as a type in the json files (they will be mapped to the Double type in the generated Java files) - I will update the readme file to reflect that.

2/ About your maven problem, I will check it out ASAP, because it should definitely work without needing Eclipse.

@brescia123
Copy link
Author

Ok thanks, I also noticed that you use Config that is deprecated.

Giacomo Bresciani
brescia123@gmail.com

2013/11/22 Benoit Lubek notifications@github.com

1/ You can use "float" as a type in the json files (they will be mapped to
the Double type in the generated Java files) - I will update the readme
file to reflect that.

2/ About your maven problem, I will check it out ASAP, because it should
definitely work without needing Eclipse.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-29058100
.

@BoD
Copy link
Owner

BoD commented Nov 23, 2013

I now see what the problem is, you should use mvn package and not mvn assembly:single as the readme says. I will fix the readme right now.

@BoD BoD closed this as completed Nov 23, 2013
@brescia123
Copy link
Author

Thank you very much!

Giacomo Bresciani
brescia123@gmail.com

2013/11/23 Benoit Lubek notifications@github.com

Closed #2#2
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants