pom for amp is invalid

47 views
Skip to first unread message

Bill Young

unread,
Mar 21, 2013, 8:58:18 AM3/21/13
to maven-a...@googlegroups.com
I have an AMP I'm building for inclusion in Share.  The AMP builds fine.  In the pom.xml for the AMP, I've declared the alfresco.groupId property, and running mvn help:effective-pom, I see that the property is properly expanded.  However, the pom.xml embedded in the AMP (in META-INF/maven) has the unresolved property such as here:

   <dependencies>
      <dependency>
         <groupId>${alfresco.groupId}</groupId>
         <artifactId>alfresco-repository</artifactId>
      </dependency>
   </dependencies>

The result is the warning:

[WARNING] The POM for com.example:example-share-config:amp:1.1 is invalid, transitive dependencies (if any) will not be available: 2 problems were encountered while building the effective model for com.example:example-share-config:1.1


and with debug output on, the following additional details:

[ERROR] 'dependencies.dependency.groupId' for ${alfresco.groupId}:alfresco-repository:jar with value '${alfresco.groupId}' does not match a valid id pattern. @
[ERROR] 'dependencies.dependency.version' for ${alfresco.groupId}:alfresco-repository:jar is missing. @

The exact same issue can be reproduce using the archetypes amp project.

It seems that ${alfresco.groupId} should be replaced with the actual value so that the POM is valid standalone.

Bill Young

unread,
Mar 21, 2013, 10:23:27 AM3/21/13
to maven-a...@googlegroups.com
And I hit post before entering the questions:

Shouldn't the variable be resolved?  It is declared in the parent POM.

Is this a filtering problem in the way the AMP is being built?  (I've seen similar when using assemblies if I don't filter files.)

I'd be happy to enter this as a defect, if the conclusion is that there is a defect here, but perhaps it's my misunderstanding of the intended use.

Gabriele Columbro

unread,
Mar 25, 2013, 4:23:10 AM3/25/13
to maven-a...@googlegroups.com

Yep sounds like the Maven archiver is not filtering the pom property. I don't think it's specific to the sdk but more to some maven oddity. Were you able to find any jira googling for similar issues?

--
You received this message because you are subscribed to the Google Groups "Maven Alfresco Lifecycle Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maven-alfresc...@googlegroups.com.
To post to this group, send email to maven-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/maven-alfresco?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Bill Young

unread,
Mar 26, 2013, 10:22:30 AM3/26/13
to maven-a...@googlegroups.com
No, I didn't find any Jira issues, but I didn't look very hard.  :)  I'll do some more looking.
Reply all
Reply to author
Forward
0 new messages