On Tue, Mar 25, 2008 at 10:18 AM, Kevin Brown <[EMAIL PROTECTED]> wrote:
> The default build already does produce a jar. You'll still get some
> non-reusable pieces, but you can safely ignore those. When we start doing
> production releases these will be included in the apache maven repository
> as
> well.
>
I'm wary of making a hard-wired dependency to the build's JAR that might not
be present on everyone's setup.
I've tried a local: mvn install - which generates:
[INFO] Building jar: d:\workspace\shindig\java\gadgets\target\gadgets-
sources.jar
[INFO] [jar:jar {execution: default}]
[INFO] Building jar: d:\workspace\shindig\java\gadgets\target\gadgets.jar
[INFO] [install:install]
[INFO] Installing d:\workspace\shindig\java\gadgets\target\gadgets.jar to
d:\.m2\repository\org\apache\shindig\gadgets\1-SNAPSHOT\gadgets-
1-SNAPSHOT.war
[INFO] Installing d:\workspace\shindig\java\gadgets\target\gadgets-
sources.jar to
d:\.m2\repository\org\apache\shindig\gadgets\1-SNAPSHOT\gadgets-
1-SNAPSHOT-sources.jar
And then added a dependency to my gadget container:
<dependency>
<groupId>org.apache.shindig</groupId>
<artifactId>gadgets</artifactId>
<version>1-SNAPSHOT</version>
</dependency>
Which results in the error:
Project 'container' is missing required library:
'D:\.m2\repository\org\apache\shindig\gadgets\1-SNAPSHOT\gadgets-
1-SNAPSHOT.jar'
I can see that the local mvn install created: gadgets-1-SNAPSHOT.war and
gadgets-1-SNAPSHOT-sources.jar, but not a gadgets-1-SNAPSHOT.jar
Is it possible to amend the shindig pom.xml in some way to generate and
locally publish the jar now when doing an install?
--
Internet Related Technologies - http://www.irt.org