[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-503) Generated archetype broken for any package name with dot (.) (Gustavo Fernandes)
Sanne Grinovero (JIRA)
noreply at atlassian.com
Sun Apr 11 06:58:03 EDT 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=36367#action_36367 ]
Sanne Grinovero commented on HSEARCH-503:
-----------------------------------------
Gustavo,
I'm getting a warning which doesn't seem to be a problem as it appears to work fine with your patch but your opinion would be appreciated:
{code}[WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 28,column 22] : ${pom.version} is not a valid reference.{code}
but the file having "pom.version" is being generated by {{mvn archetype:create-from-project}},
even if I switch to Maven3; you think we should change some plugin version in the parent?
Would be nice if it could work without warnings with all Maven2.0x, 2.1.x and 3
not sure if this could be a problem?
> Generated archetype broken for any package name with dot (.) (Gustavo Fernandes)
> --------------------------------------------------------------------------------
>
> Key: HSEARCH-503
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-503
> Project: Hibernate Search
> Issue Type: Patch
> Components: build
> Affects Versions: 3.2.0.Beta1
> Reporter: G Fernandes
> Assignee: Sanne Grinovero
> Priority: Minor
> Fix For: 3.2.0.CR1
>
> Attachments: archetype.diff
>
>
> Steps to reproduce:
> =====================
> $ cd hibernate-search-archetype
> $ mvn archetype:create-from-project -Darchetype.properties=src/main/archetype/archetype.properties
> ...
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 4 seconds
> [INFO] Finished at: Sat Apr 10 20:35:58 BST 2010
> [INFO] Final Memory: 16M/80M
> [INFO] ------------------------------------------------------------------------
> $ cd target/generate-sources/archetype
> $ mvn install
> ...
> [INFO] BUILD SUCCESSFUL
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 3 seconds
> [INFO] Finished at: Sat Apr 10 20:36:50 BST 2010
> [INFO] Final Memory: 18M/80M
> [INFO] ------------------------------------------------------------------------
> $ cd ~/temp
> $ mvn archetype:generate -DarchetypeGroupId=org.hibernate -DarchetypeArtifactId=hibernate-search-quickstart -DarchetypeVersion=3.2.0-SNAPSHOT -DgroupId=my.company -DartifactId=quickstart -Dversion=1.0-SNAPSHOT
> ...
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 5 seconds
> [INFO] Finished at: Sat Apr 10 20:39:17 BST 2010
> [INFO] Final Memory: 13M/79M
> [INFO] ------------------------------------------------------------------------
> $ cd quickstart
> $ mvn install
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] /Users/gustavo/temp/quickstart/src/main/java/com/mycomany/Book.java:[25,11] ';' expected
> [ERROR] /Users/gustavo/temp/quickstart/src/main/java/com/mycomany/Book.java:[37,10] '.' expected
> [ERROR] /Users/gustavo/temp/quickstart/src/main/java/com/mycomany/Book.java:[37,11] ';' expected
> [ERROR] /Users/gustavo/temp/quickstart/src/main/java/com/mycomany/Book.java:[37,19] class, interface, or enum expected
> [ERROR] /Users/gustavo/temp/quickstart/src/main/java/com/mycomany/Book.java:[37,20] class, interface, or enum expected
> [ERROR] /Users/gustavo/temp/quickstart/src/main/java/com/mycomany/Author.java:[25,11] ';' expected
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list