javaee-bce-archetype icon indicating copy to clipboard operation
javaee-bce-archetype copied to clipboard

Package and/or groupId are not honored by the archetype

Open atlasloewenherz opened this issue 10 years ago • 1 comments

yassine@mcwords ~/projects/labs: mvn archetype:generate -Dfilter=com.airhacks:javaee-bce-archetype [INFO] Scanning for projects... [INFO] [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Stub Project (No POM) 1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom >>> [INFO] [INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom <<< [INFO] [INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom --- [INFO] Generating project in Interactive mode [INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0) Choose archetype: 1: remote -> com.airhacks:javaee-bce-archetype (Maven Archetype (wizard) for the javaee-bce-pom project) Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : 1 Choose com.airhacks:javaee-bce-archetype version: 1: 0.0.1 2: 0.0.2 Choose a number: 2: 2 Define value for property 'groupId': : com.wordstobytes Define value for property 'artifactId': : sampleapp Define value for property 'version': 1.0-SNAPSHOT: : Define value for property 'package': com.wordstobytes: : com.wordstobytes.labs Confirm properties configuration: groupId: com.wordstobytes artifactId: sampleapp version: 1.0-SNAPSHOT package: com.wordstobytes.labs Y: : Y [INFO] ---------------------------------------------------------------------------- [INFO] Using following parameters for creating project from Archetype: javaee-bce-archetype:0.0.2 [INFO] ---------------------------------------------------------------------------- [INFO] Parameter: groupId, Value: com.wordstobytes [INFO] Parameter: artifactId, Value: sampleapp [INFO] Parameter: version, Value: 1.0-SNAPSHOT [INFO] Parameter: package, Value: com.wordstobytes.labs [INFO] Parameter: packageInPathFormat, Value: com/wordstobytes/labs [INFO] Parameter: package, Value: com.wordstobytes.labs [INFO] Parameter: version, Value: 1.0-SNAPSHOT [INFO] Parameter: groupId, Value: com.wordstobytes [INFO] Parameter: artifactId, Value: sampleapp [INFO] project created from Archetype in dir: /Users/yassine/projects/labs/sampleapp [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 53.232 s [INFO] Finished at: 2014-07-09T22:04:40+01:00 [INFO] Final Memory: 13M/314M [INFO] ------------------------------------------------------------------------ yassine@mcwords ~/projects/labs:

checking the packages created are not the one specified

yassine@mcwords ~/projects/labs: head sampleapp/src/main/java/com/airhacks/workshops/business/JAXRSConfiguration.java

--- snip ---

package com.airhacks.workshops.business;

import javax.ws.rs.ApplicationPath; import javax.ws.rs.core.Application;

/** *

  • @author airhacks.com */ @ApplicationPath("resources")

--- snap ---

yassine@mcwords ~/projects/labs:

atlasloewenherz avatar Jul 09 '14 20:07 atlasloewenherz

Thanks!

I thought about that. The BCE archetype is more an example. I would have to rename all the packages etc. after installation which could be counter-productive. I would expect the project to introduce own classes and then remove the com.airhacks package over time. (after all copy and paste work was done :-))

Agreed?

AdamBien avatar Jul 10 '14 06:07 AdamBien