These are the types of compile time errors I was getting:
[WARNING] repository metadata for: 'artifact org.apache.maven.plugins:maven-clean-plugin' could not be retrieved from repository: central due to an error: Specified destination directory cannot be created: /home/vm1-user/.m2/repository/org/apache/maven/plugins/maven-clean-plugin
[INFO] Repository 'central' will be blacklisted
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error executing ant tasks
Embedded error: Directory /home/vm1-user/.globus/GridPortRepository creation was not successful for an unknown reason
The reason for the above errors is that both the .m2 directory and the .globus directory are using the incorrect $HOME value. I fixed the .m2 repository directory path by modifying maven/conf/settings.xml
The incorrect globus directory is all over the place, need to fix it still
3 comments:
Problem seems to be that Java's ${user.home} system property is not being sent correctly.
Nice !!
Great. Thank you. Could get it to work because I use ~ instead of ${env.HOME}
Post a Comment