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

SPipes module generator minor adjustments #145

Open
blcham opened this issue Feb 7, 2023 · 2 comments · Fixed by #165
Open

SPipes module generator minor adjustments #145

blcham opened this issue Feb 7, 2023 · 2 comments · Fixed by #165

Comments

@blcham
Copy link
Contributor

blcham commented Feb 7, 2023

New module generator has issues to generate new module.

  • When a new module is generated the pom.xml looks like this (I guess there is a problem with the sed in script, it adds newline after every line)
    image

  • It would be good to set the version in pom.xml to ${project.parent.project}, now it is 1.0-SNAPSHOT

  • Regarding registering a new module, I have to add info about it to repository s-pipes-modules to modules.sms.ttl. Including the file module-text-analysis-generated.ttl into SPipes scriptPath does not work because my script does not import it.

kbss-module:extract-term-occurrences
    rdf:type sm:Module ;
    rdfs:comment "Automatically generated s-pipes module. For more information, see ExtractTermOccurrencesModule.java." ;
    rdfs:label "s-pipes-modules-text-analysis" ;
.
@blcham
Copy link
Contributor Author

blcham commented May 3, 2023

New adjustment from #155 does not work now as i get error when running .../s-pipes-modules-utils/s-pipes-module-archetype/bin/generate-test-module.sh:

Step 4: Cleaning up in pom in /home/blcha/projects/kbss/git/s-pipes/s-pipes-modules-utils/s-pipes-module-archetype/../../../s-pipes-modules
sed: can't read /\<module\>test-own-artifact\<\/module\>/d: No such file or directory
sed: can't read pom.xml: No such file or directory

Fixed by #165

@blcham
Copy link
Contributor Author

blcham commented May 3, 2023

Last issue to solve seems to be:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate (default-cli) on project s-pipes-modules: The desired archetype does not exist (cz.cvut.kbss:s-pipes-modules-utils:0.4.0) -> [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/MojoFailureException

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

Successfully merging a pull request may close this issue.

1 participant