maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason van Zyl <ja...@takari.io>
Subject Re: [VOTE] Release Maven 3.2.5
Date Mon, 15 Dec 2014 13:38:26 GMT
At first glance that does not look like a valid OSGi version:

http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/Version.html

In Tycho something like:

1.0-SNAPSHOT in the POM and 1.0.qualifier in the MANIFEST.MF would turn into something like:

1.0.497f8c4709bea5e3656572cf527777462c1b259c

But I'm not sure how you're getting that qualifier or what your versions are like. If the
project is somewhere we can look at I'm sure Igor/Jan can point out what's wrong if there
is anything.

On Dec 14, 2014, at 10:17 PM, Mark Derricutt <mark@talios.com> wrote:

> On 15 Dec 2014, at 7:00, Jason van Zyl wrote:
> 
> Time to release Maven 3.2.5!
> 
> Just hit an interesting problem (that may not actually be a problem):
> 
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException
> Deploying  1.0.6-SNAPSHOT to staging with version 1.0-497f8c4709bea5e3656572cf527777462c1b259c
> [ERROR] Internal error: java.lang.IllegalArgumentException: Format "format(n[.n=0;[.n=0;[-S]]])"
was unable to parse 1.0-497f8c4709bea5e3656572cf527777462c1b259c -> [Help 1]
> org.apache.maven.InternalErrorException: Internal error: java.lang.IllegalArgumentException:
Format "format(n[.n=0;[.n=0;[-S]]])" was unable to parse 1.0-497f8c4709bea5e3656572cf527777462c1b259c
>   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:167)
>   at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
>   at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
>   at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:606)
>   at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>   at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>   at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>   at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: java.lang.IllegalArgumentException: Format "format(n[.n=0;[.n=0;[-S]]])" was
unable to parse 1.0-497f8c4709bea5e3656572cf527777462c1b259c
>   at org.eclipse.equinox.internal.p2.metadata.VersionFormat.parse(VersionFormat.java:275)
>   at org.eclipse.equinox.internal.p2.metadata.VersionParser.parse(VersionParser.java:177)
>   at org.eclipse.equinox.p2.metadata.Version.create(Version.java:79)
>   at org.eclipse.tycho.p2.impl.publisher.AbstractSiteDependenciesAction.createSiteVersion(AbstractSiteDependenciesAction.java:77)
>   at org.eclipse.tycho.p2.impl.publisher.AbstractSiteDependenciesAction.getVersion(AbstractSiteDependenciesAction.java:68)
>   at org.eclipse.tycho.p2.impl.publisher.AbstractDependenciesAction.perform(AbstractDependenciesAction.java:79)
>   at org.eclipse.equinox.p2.publisher.Publisher$ArtifactProcess.run(Publisher.java:207)
>   at org.eclipse.equinox.p2.publisher.Publisher.publish(Publisher.java:237)
>   at org.eclipse.tycho.p2.impl.publisher.AbstractMetadataGenerator.publish(AbstractMetadataGenerator.java:118)
>   at org.eclipse.tycho.p2.impl.publisher.AbstractMetadataGenerator.generateMetadata(AbstractMetadataGenerator.java:58)
>   at org.eclipse.tycho.p2.impl.publisher.DefaultDependencyMetadataGenerator.generateMetadata(DefaultDependencyMetadataGenerator.java:30)
>   at org.eclipse.tycho.p2.impl.publisher.DefaultDependencyMetadataGenerator.generateMetadata(DefaultDependencyMetadataGenerator.java:1)
>   at org.eclipse.tycho.p2.resolver.P2DependencyResolver.getDependencyMetadata(P2DependencyResolver.java:143)
>   at org.eclipse.tycho.p2.resolver.P2DependencyResolver.setupProjects(P2DependencyResolver.java:126)
>   at org.eclipse.tycho.core.resolver.DefaultTychoResolver.setupProject(DefaultTychoResolver.java:87)
>   at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:70)
>   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:318)
>   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
>   ... 11 more
> I have a script I use occasionally to stage binaries to an internal staging repository
using the following:
> 
> VERSION=`xml sel -N x="http://maven.apache.org/POM/4.0.0" -t -v "/x:project/x:version"
pom.xml`
> BASEVERSION=`echo $VERSION | sed -E "s/\.[0-9]+-SNAPSHOT//g"`
> ARTIFACTID=`xml sel -N x="http://maven.apache.org/POM/4.0.0" -t -v "/x:project/x:artifactId"
pom.xml`
> SHA1=`git rev-parse HEAD`
> STAGEVERSION=$BASEVERSION-$SHA1
> 
> mvn -q -o versions:set -DnewVersion=$STAGEVERSION
> 
> echo "Building $ARTIFACTID $VERSION for staging with version $STAGEVERSION"
> 
> mvn -q -o clean install
> 
> echo "Deploying $ARTIFACTID $VERSION to staging with version $STAGEVERSION"
> 
> mvn -q install deploy:deploy -DaltDeploymentRepository=staging::default::http://nexus.smxemail.com/nexus/content/repositories/staging/
> ( to be honest - I've not used this script for awhile - but it used to work, tho now
fails auth of our nexus for some reason on other projects ), but this one seems to be blowing
up inside tycho ( trying to build a third-party app that apparently uses it )?
> 
> I've never used tycho before so it could just be that my funky staging script doesn't
work with things configured with tycho....
> 
> Mark
> 
> -- 
> Mark Derricutt
> http://www.theoryinpractice.net
> http://plus.google.com/+MarkDerricutt
> http://twitter.com/talios
> http://facebook.com/mderricutt
> 

Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder,  Apache Maven
http://twitter.com/jvanzyl
http://twitter.com/takari_io
---------------------------------------------------------

believe nothing, no matter where you read it,
or who has said it,
not even if i have said it,
unless it agrees with your own reason
and your own common sense.

 -- Buddha










Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message