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

VoiceCompiler fails #207

Closed
183amir opened this issue Aug 28, 2014 · 17 comments
Closed

VoiceCompiler fails #207

183amir opened this issue Aug 28, 2014 · 17 comments

Comments

@183amir
Copy link

183amir commented Aug 28, 2014

Hello,
I am trying to run the voice building example from the wiki. Everything runs successfully except for the VoiceCompiler part.
I have followed:
https://github.com/marytts/marytts/wiki/VoiceImportToolsTutorial
and
https://github.com/marytts/marytts/wiki/UnitSelectionVoiceCreation

But I get this error:

INFO  VoiceCompiler: Creating directories
INFO  VoiceCompiler: Copying template files
INFO  VoiceCompiler: Copying voice files
INFO  VoiceCompiler: Compiling with Maven
maven out>[INFO] Scanning for projects...
maven out>[ERROR] The build could not read 1 project -> [Help 1]
maven out>[ERROR]   
maven out>[ERROR]   The project marytts:voice-cmu_voice:5.1 (/media/sdc2/USS/cmu_voice/mary/voice-cmu_voice/pom.xml) has 1 error
maven out>[ERROR]     Non-resolvable parent POM: Failure to find marytts:marytts:pom:5.1 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 4, column 10 -> [Help 2]
maven out>[ERROR] 
maven out>[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
maven out>[ERROR] Re-run Maven using the -X switch to enable full debug logging.
maven out>[ERROR] 
maven out>[ERROR] For more information about the errors and possible solutions, please read the following articles:
maven out>[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
maven out>[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
java.lang.Exception: The component VoiceCompiler produced the following exception: 
    at marytts.tools.voiceimport.DatabaseImportMain$8.run(DatabaseImportMain.java:297)
Caused by: java.io.IOException: Maven compilation did not succeed -- check console for details.
    at marytts.tools.voiceimport.VoiceCompiler$MavenVoiceCompiler.compileWithMaven(VoiceCompiler.java:343)
    at marytts.tools.voiceimport.VoiceCompiler.compute(VoiceCompiler.java:94)
    at marytts.tools.voiceimport.DatabaseImportMain$8.run(DatabaseImportMain.java:294)

This is my mvn version:

mvn -version
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 15:51:28 0200)
Maven home: /opt/maven-3.0.5
Java version: 1.7.0_65, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.16.1-1-arch", arch: "amd64", family: "unix"

Could you please help me? I don't know how can I provide the parent pom.

@psibre
Copy link
Member

psibre commented Aug 28, 2014

Sorry, my comments were supposed to end up in another issue... deleting.

@psibre
Copy link
Member

psibre commented Aug 28, 2014

Did you run mvn install first?

@183amir
Copy link
Author

183amir commented Aug 28, 2014

Unfortunately, I don't know how to run it. I am just using the "marytts-builder-5.1/bin/voiceimport.sh" GUI and I don't know how I can run custom commands.
Sorry for the inconvenience.
EDIT:
OK. I ran mvn install in /media/sdc2/USS/cmu_voice/mary/voice-cmu_voice directory. Here is the log:

mvn install -e -X
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 15:51:28 0200)
Maven home: /opt/maven-3.0.5
Java version: 1.7.0_65, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.16.1-1-arch", arch: "amd64", family: "unix"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from /opt/maven-3.0.5/conf/settings.xml
[DEBUG] Reading user settings from /home/amir/.m2/settings.xml
[DEBUG] Using local repository at /home/amir/.m2/repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for /home/amir/.m2/repository
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM: Failure to find marytts:marytts:pom:5.1 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 4, column 10

    at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:363)
    at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
    at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:585)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:234)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
[ERROR]   
[ERROR]   The project marytts:voice-cmu_voice:5.1 (/media/sdc2/USS/cmu_voice/mary/voice-cmu_voice/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Failure to find marytts:marytts:pom:5.1 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 4, column 10 -> [Help 2]
org.apache.maven.model.resolution.UnresolvableModelException: Failure to find marytts:marytts:pom:5.1 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
    at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:159)
    at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:813)
    at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:664)
    at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:310)
    at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232)
    at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:410)
    at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:379)
    at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:343)
    at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
    at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:585)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:234)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Failure to find marytts:marytts:pom:5.1 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)
    at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:286)
    at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:155)
    ... 22 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to find marytts:marytts:pom:5.1 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
    at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:230)
    at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:204)
    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:427)
    ... 26 more
[ERROR] 
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

@psibre
Copy link
Member

psibre commented Aug 28, 2014

Did you build MaryTTS from source, or did you download one of the distribution packages?
The VoiceCompiler is unfortunately documented with the assumption that the MaryTTS artifacts have been installed in the local Maven repository.
Two possible workarounds:

  1. You could go and install MaryTTS from source by running mvn install. After that this error should go away; or
  2. You can provide an alternate remote Maven repository to resolve the missing artifacts. They're not in Maven Central, but you can find them in jCenter. Just add this XML snippet into your voice's pom.xml:
<repositories>
  <repository>
    <id>central</id>
    <name>jcenter</name>
    <url>http://jcenter.bintray.com/</url>
    <snapshots>
      <enabled>false</enabled>
    </snapshots>
  </repository>
</repositories>

Alternatively, you might be able to accomplish this by adding it as a command line property, running the command as mvn package -Dmaven.repo.remote=http://jcenter.bintray.com/.

@183amir
Copy link
Author

183amir commented Aug 29, 2014

i fixed this issue by downloading the needed file and putting them in ~/.m2 folder like:
~/.m2/repository/marytts/marytts/5.1/marytts-5.1.pom
I put a lot of other required .pom and .jar files in there too.
Thanks.

@psibre
Copy link
Member

psibre commented Aug 29, 2014

OK, that would have been solution 3.
Glad it's solved, good luck with your voice!

@psibre psibre closed this as completed Aug 29, 2014
@183amir
Copy link
Author

183amir commented Aug 29, 2014

Your second solution was not working.
And as for your first solution, I was installing marytts in v5.1 branch while I was supposed to do it in origin/5.1.x branch :)
now that I am on origin/5.1.x branch your first solution is working :D

@psibre
Copy link
Member

psibre commented Aug 29, 2014

You're right -- my bad! Deploying to Bintray/jCenter required changing the groupId from marytts to de.dfki.mary. This of course is not reflected in the template used by the VoiceCompiler...
To be honest, there are so many problems with the current voicebuilding tools that we've been rewriting them as Gradle plugins. But they are still under development... Expect this to improve very soon! =)

psibre added a commit to psibre/marytts that referenced this issue Aug 29, 2014
@posttool
Copy link

posttool commented Oct 7, 2014

I had this issue, even though I ran mvn install on the latest just moments ago. I always have to change groupId to de.dfki. Looking forward to continued development.

@psibre
Copy link
Member

psibre commented Oct 8, 2014

You're right -- this was also related to #218 -- fixed in upstream/master

@posttool
Copy link

posttool commented Oct 8, 2014

Thanks again! I will run a complete build w/ different features very soon and even try to use the new project for import.

@Georgakopoulos
Copy link

@183amir : It seems I face the same problem, but I don't fully understand what you mean with the solution: 'i fixed this issue by downloading the needed file and putting them in ~/.m2 folder like:
~/.m2/repository/marytts/marytts/5.1/marytts-5.1.pom'
and how to aplly it.
I would be greatful for a further explanation on where to find the .pom files and which to take.

@psibre
Copy link
Member

psibre commented Oct 21, 2014

@Georgakopoulos please see #222 (comment)

@Georgakopoulos
Copy link

I checked the issue #222 but did not come very far after trying a few things:

  1. I changed the files recommended in 7b8413a and c6c1e96 .
  2. I used 'mvn install' on the marytts-builder pom-file (had only done it to the marytts-5.1 pom-file) --> worked fine
  3. I also tried editing my /myvoice/marytts.latest/marytts/my_voice/mary/voice-my_voice-hsmm/pom.xml as suggested but did not see any improvement and the editing was always gone after trying to compile the voice.

I am problably missing sth., but I can't see what tight now...

@183amir
Copy link
Author

183amir commented Oct 21, 2014

I suggest that you checkout to the 'origin/5.1.x' git branch and run 'mvn install'. This worked perfectly for me.

@psibre
Copy link
Member

psibre commented Oct 21, 2014

Actually, the commits in question have already been merged into master.

@Georgakopoulos
Copy link

got it, thanks!

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

4 participants